MCPcopy Create free account
hub / github.com/kiibohd/controller / errorLED

Function errorLED

Debug/led/led.c:51–78  ·  view source on GitHub ↗

Error LED Control

Source from the content-addressed store, hash-verified

49
50// Error LED Control
51inline void errorLED( uint8_t on )
52{
53#if DebugLED_Inverse_define == 0
54 // Drive high to enable LED
55 // Error LED On
56 if (on)
57 {
58 GPIO_Ctrl( led_pin, GPIO_Type_DriveHigh, GPIO_Config_None );
59 }
60 // Error LED Off
61 else
62 {
63 GPIO_Ctrl( led_pin, GPIO_Type_DriveLow, GPIO_Config_None );
64 }
65#else
66 // Pull low to enable LED
67 // Error LED On
68 if (on)
69 {
70 GPIO_Ctrl( led_pin, GPIO_Type_DriveLow, GPIO_Config_None );
71 }
72 // Error LED Off
73 else
74 {
75 GPIO_Ctrl( led_pin, GPIO_Type_DriveHigh, GPIO_Config_None );
76 }
77#endif
78}
79
80// Error LED Toggle
81inline void errorLEDToggle()

Callers 11

mainFunction · 0.85
keyPressBufferReadFunction · 0.85
ResetHandlerFunction · 0.85
ResetHandlerFunction · 0.85
processKeyValueFunction · 0.85
processKeyValueFunction · 0.85
processKeyValueFunction · 0.85
Scan_loopFunction · 0.85
Scan_resetKeyboardFunction · 0.85
removeKeyValueFunction · 0.85
cliFunc_ledFunction · 0.85

Calls 1

GPIO_CtrlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…