boards/stm32l476g-disco/include/periph_conf.h

Peripheral MCU configuration for the STM32L476G-DISCO board.

CLOCK_HSE
1
(0)
CLOCK_LSE
1
(1)
CLOCK_MSI_ENABLE
1
(1)
CLOCK_MSI_LSE_PLL
1
(1)
CLOCK_CORECLOCK
1
(80000000U)
CLOCK_PLL_M
1
(6)
CLOCK_PLL_N
1
(20)
CLOCK_PLL_R
1
(2)
CLOCK_AHB_DIV
1
RCC_CFGR_HPRE_DIV1
CLOCK_AHB
1
(CLOCK_CORECLOCK / 1)
CLOCK_APB1_DIV
1
RCC_CFGR_PPRE1_DIV4
CLOCK_APB1
1
(CLOCK_CORECLOCK / 4)
CLOCK_APB2_DIV
1
RCC_CFGR_PPRE2_DIV2
CLOCK_APB2
1
(CLOCK_CORECLOCK / 2)
TIMER_0_ISR
1
isr_tim5
TIMER_NUMOF
1
(sizeof(timer_config) / sizeof(timer_config[0]))
const timer_conf_t timer_config()
1
2
3
4
5
6
7
8
9
= {
    {
        .dev      = TIM5,
        .max      = 0xffffffff,
        .rcc_mask = RCC_APB1ENR1_TIM5EN,
        .bus      = APB1,
        .irqn     = TIM5_IRQn
    }
}
UART_0_ISR
1
(isr_usart2)
UART_NUMOF
1
(sizeof(uart_config) / sizeof(uart_config[0]))
const uart_conf_t uart_config()
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
= {
    {
        .dev        = USART2,
        .rcc_mask   = RCC_APB1ENR1_USART2EN,
        .rx_pin     = GPIO_PIN(PORT_D, 6),
        .tx_pin     = GPIO_PIN(PORT_D, 5),
        .rx_af      = GPIO_AF7,
        .tx_af      = GPIO_AF7,
        .bus        = APB1,
        .irqn       = USART2_IRQn,




    }
}
ADC_NUMOF
1
(0)
RTT_NUMOF
1
(1)
RTT_FREQUENCY
1
(1024U)             /* 32768 / 2^n */
RTT_MAX_VALUE
1
(0x0000ffff)        /* 16-bit timer */
RTC_NUMOF
1
(1)