相关代码 |
|
#include "system.h" void initTimer() { *pTIMER_DISABLE = TIMDIS3; // disable timer 3 *pTIMER3_PERIOD = 525; *pTIMER3_WIDTH = 1; *pTIMER3_CONFIG = PWM_OUT | PULSE_HI | PERIOD_CNT | CLK_SEL | TIN_SEL | IRQ_ENA | EMU_RUN; *pTIMER_ENABLE = TIMEN3; asm("ssync;"); }
相关资源 |
|