19 #ifndef CPU_LPC54114J256BD64_cm4    27 #define N   0x00                // No color    28 #define R   0x04                // Red LED    29 #define G   0x02                // Green LED    30 #define B   0x01                // Blue LED    55     uint8_t blink = 
false;
    82     if ((!blink) | (status != pStatus->
previous))
   172     pStatus->
set(pStatus, 
OFF);
   180 #ifndef CPU_LPC54114J256BD64_cm4 ssUpdateStatus_t * test
unit test which simply increments to next state 
void ssSetLeds(int8_t RGB)
void ssQueueStatus(StatusSubsystem *pStatus, fusion_status_t status)
Recoverable FAULT = something went wrong, but we can keep going. 
Provides function prototypes for driver level interfaces. 
#define BOARD_LED_RED_GPIO_PIN
ssUpdateStatus_t * update
make pending status active/visible 
Application-specific status subsystem. 
void ssUpdateStatus(StatusSubsystem *pStatus)
Receiving commands over wireless interface (momentary) 
uint8_t toggle
This implementation can change LED color and have either solid/toggle. 
void ssSetStatusNow(StatusSubsystem *pStatus, fusion_status_t status)
Non-recoverable FAULT = something went very wrong. 
fusion_status_t status
Current status. 
The sensor_fusion.h file implements the top level programming interface. 
#define BOARD_LED_RED_GPIO_PORT
ssSetStatus_t * queue
queue status change for next regular interval 
Initializing sensors and algorithms. 
ssSetStatus_t * set
change status immediately - no delay 
#define BOARD_LED_GREEN_GPIO_PORT
clock_ip_name_t clockName
fusion_status_t next
Pending status change. 
fusion_status_t previous
Previous status state - fusion_status_t is defined in sensor_fusion.h. 
Receiving commands over wired interface (momentary) 
fusion_status_t
Application-specific serial communications system. 
#define BOARD_LED_GREEN_GPIO_PIN
void ssTest(StatusSubsystem *pStatus)
Running in reduced power mode. 
void ssSetStatus(StatusSubsystem *pStatus, fusion_status_t status)
gpioHandleKSDK_t GREEN_LED
void initializeStatusSubsystem(StatusSubsystem *pStatus)
#define LED_GREEN_INIT(output)
These are the state definitions for the status subsystem. 
#define LED_RED_INIT(output)
StatusSubsystem() provides an object-like interface for communicating status to the user...