1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 09:21:19 +01:00

boards/stm32: add default tim2 config for stm32g4

This commit is contained in:
Alexandre Abadie 2020-09-25 15:56:43 +02:00
parent ef742cddb2
commit b06c252a33
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -37,7 +37,8 @@ static const timer_conf_t timer_config[] = {
#else
.max = 0xffffffff,
#endif
#if defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32WB)
#if defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32WB) || \
defined(CPU_FAM_STM32G4)
.rcc_mask = RCC_APB1ENR1_TIM2EN,
#else
.rcc_mask = RCC_APB1ENR_TIM2EN,