int main() { //Low level init: Clock and Interrupt controller prvClockInit(); nvicInit(); initUsecTimer(); //Launch the system task that will initialize and start everything systemLaunch(); //Start the FreeRTOS scheduler vTaskStartScheduler(); //Should never reach this point! while(1); return 0; }
void i2cdrvInit(I2cDrv* i2c) { i2cdrvInitBus(i2c); #ifdef I2CDRV_DEBUG_LOG_EVENTS initUsecTimer(); #endif }