예제 #1
0
파일: TFC.c 프로젝트: AOURAGHE/frdm-tfc
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);
	
}
예제 #2
0
파일: TFC.c 프로젝트: Efekkt/freescale-cali
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();
}