1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

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

This commit is contained in:
Loïc Dauphin 2017-03-02 14:50:45 +01:00
parent 1af1727759
commit e7b9104e03

View File

@ -34,6 +34,9 @@ void board_init(void)
/* disable bootloader's USB */
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 */
SCB->VTOR = LOCATION_VTABLE;
}