예제 #1
0
파일: timers.cpp 프로젝트: QuadMan/buk
bool Timers::stop(u_int16 tNum) {
	if (tNum == 0) {
		StopCpuTimer0();
	}
	else {
		StopCpuTimer1();
	}

	return true;
}
예제 #2
0
void DisablePeripherals(void)
{
    SysCtlPeripheralDisable(SYSCTL_PERIPH_USB0);
    SysCtlPeripheralDisable(SYSCTL_PERIPH_SPI0);
    SysCtlPeripheralDisable(SYSCTL_PERIPH_SPI1);
    SysCtrlRegs.PCLKCR0.bit.I2CAENCLK = 0;
    EALLOW;
    SysCtrlRegs.PCLKCR0.bit.ECANAENCLK= 0;
    SysCtrlRegs.PCLKCR1.bit.EQEP1ENCLK = 0;
    SysCtrlRegs.PCLKCR1.bit.EPWM1ENCLK = 0;
    SysCtrlRegs.PCLKCR1.bit.EPWM2ENCLK = 0;
    SysCtrlRegs.PCLKCR1.bit.EPWM3ENCLK = 0;
    SysCtrlRegs.PCLKCR1.bit.EPWM4ENCLK = 0;
    SysCtrlRegs.PCLKCR1.bit.EPWM5ENCLK = 0;
    SysCtrlRegs.PCLKCR1.bit.EPWM6ENCLK = 0;
    EDIS;
    StopCpuTimer0();
    StopCpuTimer1();
    StopCpuTimer2();
}