You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
595 B

3 years ago
  1. #pragma once
  2. #include "freertos/FreeRTOS.h"
  3. #include "freertos/queue.h"
  4. #include "freertos/task.h"
  5. #include "driver/gpio.h"
  6. #ifdef __cplusplus
  7. extern "C"
  8. {
  9. #endif
  10. #if CONFIG_LED_ILLUMINATOR_ENABLED
  11. void app_led_init();
  12. void app_led_duty(int duty)
  13. #endif
  14. typedef enum
  15. {
  16. LED_ALWAYS_OFF = 0,
  17. LED_ALWAYS_ON,
  18. LED_OFF_1S,
  19. LED_OFF_2S,
  20. LED_OFF_4S,
  21. LED_ON_1S,
  22. LED_ON_2S,
  23. LED_ON_4S,
  24. LED_BLINK_1S,
  25. LED_BLINK_2S,
  26. LED_BLINK_4S,
  27. } led_state_t;
  28. void register_led(const gpio_num_t led_io_num, const QueueHandle_t control_i);
  29. #ifdef __cplusplus
  30. }
  31. #endif