mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards: enable CAN bus on nucleo-f446re & nucleo-f446ze
Changed the pinout for the CAN bus: CAN RX: PB8 CAN TX: PB9 And added periph_can to FEATURES_PROVIDED and to Kconfig files
This commit is contained in:
parent
42eb044ec6
commit
69858916c7
@ -18,6 +18,7 @@ config BOARD_NUCLEO_F446RE
|
||||
select HAS_PERIPH_ADC
|
||||
select HAS_PERIPH_DMA
|
||||
select HAS_PERIPH_I2C
|
||||
select HAS_PERIPH_CAN
|
||||
select HAS_PERIPH_PWM
|
||||
select HAS_PERIPH_RTC
|
||||
select HAS_PERIPH_SPI
|
||||
|
@ -5,6 +5,7 @@ CPU_MODEL = stm32f446re
|
||||
FEATURES_PROVIDED += periph_adc
|
||||
FEATURES_PROVIDED += periph_dma
|
||||
FEATURES_PROVIDED += periph_i2c
|
||||
FEATURES_PROVIDED += periph_can
|
||||
FEATURES_PROVIDED += periph_pwm
|
||||
FEATURES_PROVIDED += periph_rtc
|
||||
FEATURES_PROVIDED += periph_spi
|
||||
|
@ -17,6 +17,7 @@ config BOARD_NUCLEO_F446ZE
|
||||
# Put defined MCU peripherals here (in alphabetical order)
|
||||
select HAS_PERIPH_DMA
|
||||
select HAS_PERIPH_I2C
|
||||
select HAS_PERIPH_CAN
|
||||
select HAS_PERIPH_PWM
|
||||
select HAS_PERIPH_RTC
|
||||
select HAS_PERIPH_SPI
|
||||
|
@ -4,6 +4,7 @@ CPU_MODEL = stm32f446ze
|
||||
# Put defined MCU peripherals here (in alphabetical order)
|
||||
FEATURES_PROVIDED += periph_dma
|
||||
FEATURES_PROVIDED += periph_i2c
|
||||
FEATURES_PROVIDED += periph_can
|
||||
FEATURES_PROVIDED += periph_pwm
|
||||
FEATURES_PROVIDED += periph_rtc
|
||||
FEATURES_PROVIDED += periph_spi
|
||||
|
@ -51,7 +51,7 @@ static const can_conf_t candev_conf[] = {
|
||||
#if defined(CPU_FAM_STM32F1)
|
||||
.rx_pin = GPIO_PIN(PORT_A, 11),
|
||||
.tx_pin = GPIO_PIN(PORT_A, 12),
|
||||
#elif defined(CPU_FAM_STM32L4)
|
||||
#elif defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32F4)
|
||||
.rx_pin = GPIO_PIN(PORT_B, 8),
|
||||
.tx_pin = GPIO_PIN(PORT_B, 9),
|
||||
.af = GPIO_AF9,
|
||||
|
Loading…
Reference in New Issue
Block a user