diff options
author | root <root@lab.panaceas.james.local> | 2018-04-17 10:35:31 +0100 |
---|---|---|
committer | root <root@lab.panaceas.james.local> | 2018-04-17 10:35:31 +0100 |
commit | 6cab91b0ab0b538cd63d94c1afd38e3fd287efec (patch) | |
tree | 053ffa705f3c3416b3c708092bcf0e7ad5fa200f /app/main.c | |
parent | 25e6afd831b94b9735cc6691ee19c8edc921aca7 (diff) | |
download | clock-6cab91b0ab0b538cd63d94c1afd38e3fd287efec.tar.gz clock-6cab91b0ab0b538cd63d94c1afd38e3fd287efec.tar.bz2 clock-6cab91b0ab0b538cd63d94c1afd38e3fd287efec.zip |
happy dcf77 better pll, and stamps for long term stability
Diffstat (limited to 'app/main.c')
-rw-r--r-- | app/main.c | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -12,10 +12,11 @@ board_setup (void) rcc_periph_clock_enable (RCC_GPIOD); rcc_periph_clock_enable (RCC_USART6); - nvic_set_priority (NVIC_USART6_IRQ, 0xff); - nvic_set_priority (NVIC_EXTI0_IRQ, 0x80); - nvic_set_priority (NVIC_ETH_IRQ, 0x40); - nvic_set_priority (NVIC_SYSTICK_IRQ, 0x40); + nvic_set_priority (NVIC_EXTI0_IRQ, 0); + nvic_set_priority (NVIC_EXTI15_10_IRQ, 1); + nvic_set_priority (NVIC_USART6_IRQ, 2); + nvic_set_priority (NVIC_ETH_IRQ, 3); + nvic_set_priority (NVIC_SYSTICK_IRQ, 4) ; } @@ -28,7 +29,8 @@ system_init (void) ticker_init(); usart_init(); - radio_init(); + msf_init(); + dcf77_init(); start_lwip(); steth_init(); @@ -42,10 +44,13 @@ main (void) system_init(); - printf ("Fish\r\n"); + printf ("Boot\r\n"); while (1) { + msf_dispatch(); + dcf77_dispatch(); + dispatch_lwip(); steth_dispatch(); |