user_sensor.h 873 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __USER_SENSOR_H__
  2. #define __USER_SENSOR_H__
  3. #include "user_config.h"
  4. #include "driver/key.h"
  5. #define SENSOR_KEY_NUM 1
  6. #define SENSOR_KEY_IO_MUX PERIPHS_IO_MUX_MTCK_U
  7. #define SENSOR_KEY_IO_NUM 13
  8. #define SENSOR_KEY_IO_FUNC FUNC_GPIO13
  9. #define SENSOR_WIFI_LED_IO_MUX PERIPHS_IO_MUX_GPIO0_U
  10. #define SENSOR_WIFI_LED_IO_NUM 0
  11. #define SENSOR_WIFI_LED_IO_FUNC FUNC_GPIO0
  12. #define SENSOR_LINK_LED_IO_MUX PERIPHS_IO_MUX_MTDI_U
  13. #define SENSOR_LINK_LED_IO_NUM 12
  14. #define SENSOR_LINK_LED_IO_FUNC FUNC_GPIO12
  15. #define SENSOR_UNUSED_LED_IO_MUX PERIPHS_IO_MUX_MTDO_U
  16. #define SENSOR_UNUSED_LED_IO_NUM 15
  17. #define SENSOR_UNUSED_LED_IO_FUNC FUNC_GPIO15
  18. #if HUMITURE_SUB_DEVICE
  19. bool user_mvh3004_read_th(uint8 *data);
  20. void user_mvh3004_init(void);
  21. #endif
  22. void user_sensor_init(uint8 active);
  23. #endif