X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstm32f1%2Fao_timer.c;h=37c4e1df50cf9bd3e134538dcc26ab7f952fa83f;hb=87b64a15f55ecb20a0f8bb2556e77b45a4d82b82;hp=116d33ace1981bf2a96b37257f5fcab6f4720b34;hpb=d2cb18542f4f6071232bd046fd1b257228c17a25;p=fw%2Faltos diff --git a/src/stm32f1/ao_timer.c b/src/stm32f1/ao_timer.c index 116d33ac..37c4e1df 100644 --- a/src/stm32f1/ao_timer.c +++ b/src/stm32f1/ao_timer.c @@ -51,7 +51,7 @@ void stm_systick_isr(void) { if (stm_systick.ctrl & (1 << STM_SYSTICK_CTRL_COUNTFLAG)) { ++ao_tick_count; -// ao_task_check_alarm(); + ao_task_check_alarm(); #ifdef AO_TIMER_HOOK AO_TIMER_HOOK; #endif @@ -68,5 +68,5 @@ ao_timer_init(void) stm_systick.ctrl = ((1 << STM_SYSTICK_CTRL_ENABLE) | (1 << STM_SYSTICK_CTRL_TICKINT) | (STM_SYSTICK_CTRL_CLKSOURCE_HCLK_8 << STM_SYSTICK_CTRL_CLKSOURCE)); -// stm_nvic.shpr15_12 |= (uint32_t) AO_STM_NVIC_CLOCK_PRIORITY << 24; + stm_scb.shpr3 |= (uint32_t) AO_STM_NVIC_CLOCK_PRIORITY << 24; }