boards/spark-core/include/periph_conf.h¶
Peripheral MCU configuration for the spark-core 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_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
= { { .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 } }
-
SPI_NUMOF
¶ 1
(sizeof(spi_config) / sizeof(spi_config[0]))
-
const uint8_t
spi_divtable
()¶ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
= { { 7, 6, 4, 2, 1 }, { 7, 7, 5, 3, 2 } }
-
const spi_conf_t
spi_config
()¶ 1 2 3 4 5 6 7 8 9 10 11
= { { .dev = SPI1, .mosi_pin = GPIO_PIN(PORT_B, 17), .miso_pin = GPIO_PIN(PORT_B, 16), .sclk_pin = GPIO_PIN(PORT_B, 15), .cs_pin = GPIO_UNDEF, .rccmask = RCC_APB2ENR_SPI1EN, .apbbus = APB2 } }