Skip to content
Snippets Groups Projects
Commit e7b9104e authored by Loïc Dauphin's avatar Loïc Dauphin
Browse files

boards/opencm9-04: disable bootloader's timer interrupt

parent 1af17277
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,9 @@ void board_init(void) ...@@ -34,6 +34,9 @@ void board_init(void)
/* disable bootloader's USB */ /* disable bootloader's USB */
RCC->APB1ENR &= ~RCC_APB1ENR_USBEN; RCC->APB1ENR &= ~RCC_APB1ENR_USBEN;
/* disable bootloader's TIMER update interrupt */
TIM2->DIER &= ~(TIM_DIER_UIE);
/* configure the RIOT vector table location to internal flash + bootloader offset */ /* configure the RIOT vector table location to internal flash + bootloader offset */
SCB->VTOR = LOCATION_VTABLE; SCB->VTOR = LOCATION_VTABLE;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment