void TFC_Init() { TFC_InitClock(); TFC_InitSysTick(); TFC_InitGPIO(); TFC_InitServos(); TFC_InitMotorPWM(); TFC_InitADCs(); TFC_InitLineScanCamera(); TFC_InitTerminal(); TFC_InitUARTs(); TFC_HBRIDGE_DISABLE; TFC_SetMotorPWM(0,0); }
void TFC_Init() { InitClock(); /* Initialize clock system for 48 MHz */ InitSysTick(); /* Configure the timer and the interrupt to be used to generate the tick of the scheduler */ TFC_InitGPIO(); TFC_InitServos(); TFC_InitMotorPWM(); TFC_InitADCs(); TFC_InitLineScanCamera(); TFC_InitTerminal(); TFC_InitUARTs(); TFC_HBRIDGE_DISABLE; TFC_SetMotorPWM(0,0); TFC_RGB_Init(); TFC_Accel_Init(); }
/************************************************************** * Name : periodic_tasks_init_SysDrvs * Description : Initialize needed system drivers (system elements) before start application * Parameters : none * Return : none * Critical/explanation : no **************************************************************/ void periodic_tasks_init_SysDrvs(void) { init_Ports(); TFC_InitADCs(); }