/************************************************************************* NAME InitEarlyUserFeatures DESCRIPTION This function initialises the configureation that is required early on in the start-up sequence. RETURNS */ void InitEarlyUserFeatures ( void ) { ChargerConfigure(CHARGER_SUPPRESS_LED0, TRUE); /* Initialise the Button Manager */ buttonManagerInit() ; /* Once system Managers are initialised, load up the configuration */ configManagerInit(TRUE); /* Init wired before USB or wired audio gets routed before init */ wiredAudioInit(); /* USB init can be done once power lib initialised */ usbInit(); /* initialise the display */ displayInit(); /* initialise DUT */ dutInit(); /*configure the audio Pre amp if enabled */ initPreAmp( AUDIO_CHANNEL_A) ; initPreAmp( AUDIO_CHANNEL_B) ; /* Enter the limbo state as we may be ON due to a charger being plugged in */ stateManagerEnterLimboState(); }
int main(void) { #if BC5_MODULE /* Prevent the LED0 flashing during charging */ ChargerConfigure(CHARGER_SUPPRESS_LED0, 1); #endif MessageSend( &led_controller1_task, 0 , 0 ); MessageLoop(); return 0; }