Add NVIC_SetVector function

pull/1218/head
hjjeon0608 2015-07-07 10:31:46 +09:00
parent 995cfb479d
commit 85efeff0cf
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ void rtc_init(void) {
/* PWM channel 0 start */
PWM_CHn_Start(PWM_CH3);
NVIC_EnableIRQ(PWM3_IRQn);
NVIC_SetVector(PWM3_IRQn, (uint32_t)PWM3_Handler);
NVIC_EnableIRQ(PWM3_IRQn);
rtc_enabled = 1;
}