优化H桥PWM并增加平滑调光
This commit is contained in:
@@ -171,7 +171,7 @@ void xc_timer_stop(uint8_t reg_idx)
|
||||
timer_tcr__tes__setf(reg_idx, TIMER_TCR_TES_DISABLE);
|
||||
}
|
||||
|
||||
void TIMER0_Handler(void)
|
||||
__RAM_CODE void TIMER0_Handler(void)
|
||||
{
|
||||
(void)timer_tic_get(TIMER0_IDX);
|
||||
if (timer_n_callback[0] != NULL)
|
||||
@@ -192,7 +192,7 @@ void TIMER2_Handler(void)
|
||||
timer_n_callback[2](NULL);
|
||||
}
|
||||
|
||||
void TIMER3_Handler(void)
|
||||
__RAM_CODE void TIMER3_Handler(void)
|
||||
{
|
||||
(void)timer_tic_get(TIMER3_IDX);
|
||||
if (timer_n_callback[3] != NULL)
|
||||
|
||||
Reference in New Issue
Block a user