boards/opencm904/include/periph_conf.h¶
Peripheral MCU configuration for the opencm904 board.
-
CLOCK_HSE¶ 1
(8000000U)
-
CLOCK_LSE¶ 1
(0)
-
CLOCK_CORECLOCK¶ 1
(72000000U)
-
CLOCK_PLL_DIV¶ 1
(1)
-
CLOCK_PLL_MUL¶ 1
(9)
-
CLOCK_AHB_DIV¶ 1
RCC_CFGR_HPRE_DIV1
-
CLOCK_AHB¶ 1
(CLOCK_CORECLOCK / 1)
-
CLOCK_APB2_DIV¶ 1
RCC_CFGR_PPRE2_DIV1
-
CLOCK_APB2¶ 1
(CLOCK_CORECLOCK / 1)
-
CLOCK_APB1_DIV¶ 1
RCC_CFGR_PPRE1_DIV2
-
CLOCK_APB1¶ 1
(CLOCK_CORECLOCK / 2)
-
ADC_NUMOF¶ 1
(0)
-
TIMER_0_ISR¶ 1
isr_tim2
-
TIMER_1_ISR¶ 1
isr_tim3
-
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 10 11 12 13 14 15 16
= { { .dev = TIM2, .max = 0x0000ffff, .rcc_mask = RCC_APB1ENR_TIM2EN, .bus = APB1, .irqn = TIM2_IRQn }, { .dev = TIM3, .max = 0x0000ffff, .rcc_mask = RCC_APB1ENR_TIM3EN, .bus = APB1, .irqn = TIM3_IRQn } }
-
UART_0_ISR¶ 1
isr_usart2
-
UART_1_ISR¶ 1
isr_usart1
-
UART_2_ISR¶ 1
isr_usart3
-
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 17 18 19 20 21 22 23 24 25 26
= { { .dev = USART2, .rcc_mask = RCC_APB1ENR_USART2EN, .rx_pin = GPIO_PIN(PORT_A, 3), .tx_pin = GPIO_PIN(PORT_A, 2), .bus = APB1, .irqn = USART2_IRQn }, { .dev = USART1, .rcc_mask = RCC_APB2ENR_USART1EN, .rx_pin = GPIO_PIN(PORT_B, 7), .tx_pin = GPIO_PIN(PORT_B, 6), .bus = APB2, .irqn = USART1_IRQn }, { .dev = USART3, .rcc_mask = RCC_APB1ENR_USART3EN, .rx_pin = GPIO_PIN(PORT_B, 11), .tx_pin = GPIO_PIN(PORT_B, 10), .bus = APB1, .irqn = USART3_IRQn } }
-
I2C_NUMOF¶ 1
(0)