GCC Code Coverage Report


Directory: D:/ateliere/spledy/components/spled/src/
File: spled.c
Date: 2025-10-25 23:12:31
Coverage Exec Excl Total
Lines: 47.1% 8 0 17
Functions: 25.0% 1 0 4
Branches: -% 0 0 0

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 1 void spled(void)
15 {
16 1 powerButton();
17 1 powerSignalProcessing();
18 1 mainControlKnob();
19 #if defined(CONFIG_BRIGHTNESS_ADJUSTMENT_ENABLED) && CONFIG_BRIGHTNESS_ADJUSTMENT_ENABLED == 1
20 1 brightnessController();
21 #endif
22 1 lightController();
23 1 ledInterface();
24 1 }
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