| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "autoconf.h" | ||
| 2 | #include "spled.h" | ||
| 3 | |||
| 4 | #include "power_button.h" | ||
| 5 | #include "power_signal_processing.h" | ||
| 6 | #include "light_controller.h" | ||
| 7 | #include "main_control_knob.h" | ||
| 8 | #include "led_interface.h" | ||
| 9 | #include "button_interface.h" | ||
| 10 | #if defined(CONFIG_BRIGHTNESS_ADJUSTMENT_ENABLED) && CONFIG_BRIGHTNESS_ADJUSTMENT_ENABLED == 1 | ||
| 11 | #include "brightness_controller.h" | ||
| 12 | #endif | ||
| 13 | |||
| 14 | 12 | void spled(void) | |
| 15 | { | ||
| 16 | 12 | powerButton(); | |
| 17 | 12 | powerSignalProcessing(); | |
| 18 | 12 | mainControlKnob(); | |
| 19 | #if defined(CONFIG_BRIGHTNESS_ADJUSTMENT_ENABLED) && CONFIG_BRIGHTNESS_ADJUSTMENT_ENABLED == 1 | ||
| 20 | 1 | brightnessController(); | |
| 21 | #endif | ||
| 22 | 12 | lightController(); | |
| 23 | 12 | ledInterface(); | |
| 24 | 12 | } | |
| 25 | |||
| 26 | ✗ | void Task_Init(void) | |
| 27 | { | ||
| 28 | ✗ | ledInterface_init(); | |
| 29 | ✗ | buttonInterface_init(); | |
| 30 | ✗ | } | |
| 31 | |||
| 32 | ✗ | void Task_100ms(void) | |
| 33 | { | ||
| 34 | #if (defined(CONFIG_OS_TASK_PERIOD) && CONFIG_OS_TASK_PERIOD == 100) | ||
| 35 | // Call the main application function every 100ms | ||
| 36 | spled(); | ||
| 37 | #endif | ||
| 38 | ✗ | } | |
| 39 | |||
| 40 | ✗ | void Task_10ms(void) | |
| 41 | { | ||
| 42 | #if (defined(CONFIG_OS_TASK_PERIOD) && CONFIG_OS_TASK_PERIOD == 10) | ||
| 43 | // Call the main application function every 10ms | ||
| 44 | ✗ | spled(); | |
| 45 | #endif | ||
| 46 | ✗ | } | |
| 47 |