devicetree: remove DT_HAS_NODE_STATUS_OKAY
Several reviewers agreed that DT_HAS_NODE_STATUS_OKAY(...) was an undesirable API for the following reasons: - it's inconsistent with the rest of the DT_NODE_HAS_FOO names - DT_NODE_HAS_FOO_BAR_BAZ(node) was agreed upon as a shorthand for macros which are equivalent to DT_NODE_HAS_FOO(node) && DT_NODE_HAS_BAR(node) && - DT_NODE_HAS_BAZ(node), and DT_HAS_NODE_STATUS_OKAY is an odd duck - DT_NODE_HAS_STATUS(..., okay) was viewed as more readable anyway - it is seen as a somewhat aesthetically challenged name Replace all users with DT_NODE_HAS_STATUS(..., okay), which is semantically equivalent. This is mostly done with sed, but a few remaining cases were done by hand, along with whitespace, docs, and comment changes. These special cases include the Nordic SOC static assert files. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
4f16b419e8
commit
6e8775ff84
|
@ -14,39 +14,39 @@
|
|||
|
||||
/* pin assignments for board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PD5, STM32F4_PINMUX_FUNC_PD5_USART2_TX},
|
||||
{STM32_PIN_PD6, STM32F4_PINMUX_FUNC_PD6_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
||||
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart7))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart7), okay)
|
||||
{STM32_PIN_PE8, STM32F4_PINMUX_FUNC_PE8_UART7_TX},
|
||||
{STM32_PIN_PE7, STM32F4_PINMUX_FUNC_PE7_UART7_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart8))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart8), okay)
|
||||
{STM32_PIN_PE1, STM32F4_PINMUX_FUNC_PE1_UART8_TX},
|
||||
{STM32_PIN_PE0, STM32F4_PINMUX_FUNC_PE0_UART8_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm4), okay)
|
||||
{STM32_PIN_PD12, STM32F4_PINMUX_FUNC_PD12_PWM4_CH1},
|
||||
{STM32_PIN_PD13, STM32F4_PINMUX_FUNC_PD13_PWM4_CH2},
|
||||
{STM32_PIN_PD14, STM32F4_PINMUX_FUNC_PD14_PWM4_CH3},
|
||||
{STM32_PIN_PD15, STM32F4_PINMUX_FUNC_PD15_PWM4_CH4},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm5))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm5), okay)
|
||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM5_CH1},
|
||||
{STM32_PIN_PA1, STM32F4_PINMUX_FUNC_PA1_PWM5_CH2},
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_PWM5_CH3},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_PWM5_CH4},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS |
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
|
@ -56,7 +56,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F4_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32F4_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32F4_PINMUX_FUNC_PB12_SPI2_NSS |
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
|
@ -66,13 +66,13 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB14, STM32F4_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32F4_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi3), okay)
|
||||
{STM32_PIN_PC10, STM32F4_PINMUX_FUNC_PC10_SPI3_SCK |
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
{STM32_PIN_PC11, STM32F4_PINMUX_FUNC_PC11_SPI3_MISO},
|
||||
{STM32_PIN_PC12, STM32F4_PINMUX_FUNC_PC12_SPI3_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi4), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PE11, STM32F4_PINMUX_FUNC_PE11_SPI4_NSS |
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
|
@ -82,11 +82,11 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PE13, STM32F4_PINMUX_FUNC_PE13_SPI4_MISO},
|
||||
{STM32_PIN_PE14, STM32F4_PINMUX_FUNC_PE14_SPI4_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{STM32_PIN_PC0, STM32F4_PINMUX_FUNC_PC0_ADC123_IN10},
|
||||
{STM32_PIN_PC1, STM32F4_PINMUX_FUNC_PC1_ADC123_IN11},
|
||||
{STM32_PIN_PC2, STM32F4_PINMUX_FUNC_PC2_ADC123_IN12},
|
||||
|
|
|
@ -14,23 +14,23 @@
|
|||
|
||||
/* pin assignments for 96boards Argonkey board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
{STM32_PIN_PA8, STM32F4_PINMUX_FUNC_PA8_I2C3_SCL},
|
||||
{STM32_PIN_PB4, STM32F4_PINMUX_FUNC_PB4_I2C3_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS |
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
|
@ -40,7 +40,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F4_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32F4_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32F4_PINMUX_FUNC_PB12_SPI2_NSS |
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
|
@ -50,7 +50,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB14, STM32F4_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32F4_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2s5))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2s5), okay)
|
||||
{STM32_PIN_PB0, STM32F4_PINMUX_FUNC_PB0_I2S5_CK},
|
||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2S5_SD},
|
||||
#endif
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
/* pin assignments for Avenger96 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart4), okay)
|
||||
{ STM32_PIN_PB2, STM32MP1X_PINMUX_FUNC_PB2_UART4_RX },
|
||||
{ STM32_PIN_PD1, STM32MP1X_PINMUX_FUNC_PD1_UART4_TX },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart7))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart7), okay)
|
||||
{ STM32_PIN_PE7, STM32MP1X_PINMUX_FUNC_PE7_UART7_RX },
|
||||
{ STM32_PIN_PE8, STM32MP1X_PINMUX_FUNC_PE8_UART7_TX },
|
||||
#endif
|
||||
|
|
|
@ -14,27 +14,27 @@
|
|||
|
||||
/* pin assignments for 96boards Carbon board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{STM32_PIN_PC6, STM32F4_PINMUX_FUNC_PC6_USART6_TX},
|
||||
{STM32_PIN_PC7, STM32F4_PINMUX_FUNC_PC7_USART6_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB3, STM32F4_PINMUX_FUNC_PB3_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -42,7 +42,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F4_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32F4_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32F4_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
|
|
@ -11,7 +11,7 @@ static int meerakt96_pinmux_init(struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(gpio1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(gpio1), okay)
|
||||
/* GPIO1_IO04 Mux Config */
|
||||
IOMUXC_LPSR_SW_MUX_CTL_PAD_GPIO1_IO04 = 0;
|
||||
IOMUXC_LPSR_SW_PAD_CTL_PAD_GPIO1_IO04 = 0;
|
||||
|
@ -26,7 +26,7 @@ static int meerakt96_pinmux_init(struct device *dev)
|
|||
IOMUXC_LPSR_SW_PAD_CTL_PAD_GPIO1_IO07 = 0;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart1), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_UART1_RX_DATA =
|
||||
IOMUXC_SW_MUX_CTL_PAD_UART1_RX_DATA_MUX_MODE(0);
|
||||
IOMUXC_SW_MUX_CTL_PAD_UART1_TX_DATA =
|
||||
|
|
|
@ -14,23 +14,23 @@
|
|||
|
||||
/* pin assignments for 96boards Neonkey board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB3, STM32F4_PINMUX_FUNC_PB3_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
{STM32_PIN_PA8, STM32F4_PINMUX_FUNC_PA8_I2C3_SCL},
|
||||
{STM32_PIN_PB4, STM32F4_PINMUX_FUNC_PB4_I2C3_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
|
|
@ -14,31 +14,31 @@
|
|||
|
||||
/* pin assignments for 96b_stm32_sensor_mez board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PD5, STM32F4_PINMUX_FUNC_PD5_USART2_TX},
|
||||
{STM32_PIN_PD6, STM32F4_PINMUX_FUNC_PD6_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
||||
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart4), okay)
|
||||
{STM32_PIN_PC10, STM32F4_PINMUX_FUNC_PC10_UART4_TX},
|
||||
{STM32_PIN_PC11, STM32F4_PINMUX_FUNC_PC11_UART4_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PC12, STM32F4_PINMUX_FUNC_PC12_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS |
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
|
@ -48,7 +48,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F4_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32F4_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_SPI2_NSS |
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
|
@ -58,7 +58,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB14, STM32F4_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32F4_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi4), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PE11, STM32F4_PINMUX_FUNC_PE11_SPI4_NSS |
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
|
@ -68,19 +68,19 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PE13, STM32F4_PINMUX_FUNC_PE13_SPI4_MISO},
|
||||
{STM32_PIN_PE14, STM32F4_PINMUX_FUNC_PE14_SPI4_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2s2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2s2), okay)
|
||||
{STM32_PIN_PC7, STM32F4_PINMUX_FUNC_PC7_I2S2_CK},
|
||||
{STM32_PIN_PC1, STM32F4_PINMUX_FUNC_PC1_I2S2_SD},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm3), okay)
|
||||
{ STM32_PIN_PB4, STM32F4_PINMUX_FUNC_PB4_PWM3_CH1 },
|
||||
{ STM32_PIN_PC8, STM32F4_PINMUX_FUNC_PC8_PWM3_CH3 },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm4), okay)
|
||||
{ STM32_PIN_PD14, STM32F4_PINMUX_FUNC_PD14_PWM4_CH3 },
|
||||
{ STM32_PIN_PD15, STM32F4_PINMUX_FUNC_PD15_PWM4_CH4 },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm9))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm9), okay)
|
||||
{ STM32_PIN_PE5, STM32F4_PINMUX_FUNC_PE5_PWM9_CH1 },
|
||||
{ STM32_PIN_PE6, STM32F4_PINMUX_FUNC_PE6_PWM9_CH2 },
|
||||
#endif
|
||||
|
|
|
@ -14,19 +14,19 @@
|
|||
#include <pinmux/stm32/pinmux_stm32.h>
|
||||
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32L1X_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32L1X_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L1X_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA15, STM32L1X_PINMUX_FUNC_PA15_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32L1X_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32L1X_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PA5, STM32L1X_PINMUX_FUNC_PA5_SPI1_SCK |
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
{STM32_PIN_PA6, STM32L1X_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
|
||||
/* pin assignments for Feather STM32F405 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_USART3_TX},
|
||||
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA15, STM32F4_PINMUX_FUNC_PA15_SPI1_NSS |
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
|
@ -32,7 +32,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB4, STM32F4_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PB5, STM32F4_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
{STM32_PIN_PB13, STM32F4_PINMUX_FUNC_PB13_SPI2_SCK},
|
||||
{STM32_PIN_PB14, STM32F4_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32F4_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
|
|
|
@ -111,7 +111,7 @@ static int board_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(muxa, 24, PINMUX_FUNC_H);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(gmac))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(gmac), okay)
|
||||
pinmux_pin_set(muxa, 14, PINMUX_FUNC_L); /* PA14 = GTXCK */
|
||||
pinmux_pin_set(muxa, 17, PINMUX_FUNC_L); /* PA17 = GTXEN */
|
||||
pinmux_pin_set(muxa, 18, PINMUX_FUNC_L); /* PA18 = GTX0 */
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
|
||||
/* pin assignments for STMicroelectronics B-L072Z-LRWAN1 Discovery board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32L0_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32L0_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA15, STM32L0_PINMUX_FUNC_PA15_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -30,7 +30,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32L0_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32L0_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32L0_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -38,7 +38,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB14, STM32L0_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32L0_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32L0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32L0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
|
|
|
@ -14,35 +14,35 @@
|
|||
|
||||
/* pin assignments for black_f407ve board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#ifdef CONFIG_USB_DC_STM32
|
||||
{STM32_PIN_PA11, STM32F4_PINMUX_FUNC_PA11_OTG_FS_DM},
|
||||
{STM32_PIN_PA12, STM32F4_PINMUX_FUNC_PA12_OTG_FS_DP},
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay)
|
||||
{STM32_PIN_PD0, STM32F4_PINMUX_FUNC_PD0_CAN1_RX},
|
||||
{STM32_PIN_PD1, STM32F4_PINMUX_FUNC_PD1_CAN1_TX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can2), okay)
|
||||
{STM32_PIN_PB12, STM32F4_PINMUX_FUNC_PB12_CAN2_RX},
|
||||
{STM32_PIN_PB13, STM32F4_PINMUX_FUNC_PB13_CAN2_TX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PB3, STM32F4_PINMUX_FUNC_PB3_SPI1_SCK},
|
||||
{STM32_PIN_PB4, STM32F4_PINMUX_FUNC_PB4_SPI1_MISO},
|
||||
{STM32_PIN_PB5, STM32F4_PINMUX_FUNC_PB5_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_SPI2_SCK},
|
||||
{STM32_PIN_PC2, STM32F4_PINMUX_FUNC_PC2_SPI2_MISO},
|
||||
{STM32_PIN_PC3, STM32F4_PINMUX_FUNC_PC3_SPI2_MOSI},
|
||||
|
|
|
@ -14,35 +14,35 @@
|
|||
|
||||
/* pin assignment for black_f407zg_pro board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#ifdef CONFIG_USB_DC_STM32
|
||||
{STM32_PIN_PA11, STM32F4_PINMUX_FUNC_PA11_OTG_FS_DM},
|
||||
{STM32_PIN_PA12, STM32F4_PINMUX_FUNC_PA12_OTG_FS_DP},
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay)
|
||||
{STM32_PIN_PD0, STM32F4_PINMUX_FUNC_PD0_CAN1_RX},
|
||||
{STM32_PIN_PD1, STM32F4_PINMUX_FUNC_PD1_CAN1_TX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can2), okay)
|
||||
{STM32_PIN_PB12, STM32F4_PINMUX_FUNC_PB12_CAN2_RX},
|
||||
{STM32_PIN_PB13, STM32F4_PINMUX_FUNC_PB13_CAN2_TX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PB3, STM32F4_PINMUX_FUNC_PB3_SPI1_SCK},
|
||||
{STM32_PIN_PB4, STM32F4_PINMUX_FUNC_PB4_SPI1_MISO},
|
||||
{STM32_PIN_PB5, STM32F4_PINMUX_FUNC_PB5_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_SPI2_SCK},
|
||||
{STM32_PIN_PC2, STM32F4_PINMUX_FUNC_PC2_SPI2_MISO},
|
||||
{STM32_PIN_PC3, STM32F4_PINMUX_FUNC_PC3_SPI2_MOSI},
|
||||
|
|
|
@ -11,13 +11,13 @@ static int colibri_imx7d_m4_pinmux_init(struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(gpio1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(gpio1), okay)
|
||||
/* GPIO1_IO02 Mux Config */
|
||||
IOMUXC_LPSR_SW_MUX_CTL_PAD_GPIO1_IO02 = 0;
|
||||
IOMUXC_LPSR_SW_PAD_CTL_PAD_GPIO1_IO02 = 0;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(gpio2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(gpio2), okay)
|
||||
/* GPIO2_IO26 Mux Config */
|
||||
IOMUXC_SW_MUX_CTL_PAD_EPDC_GDRL = 5;
|
||||
IOMUXC_SW_PAD_CTL_PAD_EPDC_GDRL =
|
||||
|
@ -26,7 +26,7 @@ static int colibri_imx7d_m4_pinmux_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_EPDC_GDRL_HYS_MASK;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart2), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_UART2_RX_DATA =
|
||||
IOMUXC_SW_MUX_CTL_PAD_UART2_RX_DATA_MUX_MODE(0);
|
||||
IOMUXC_SW_MUX_CTL_PAD_UART2_TX_DATA =
|
||||
|
@ -48,7 +48,7 @@ static int colibri_imx7d_m4_pinmux_init(struct device *dev)
|
|||
IOMUXC_UART2_RX_DATA_SELECT_INPUT_DAISY(3);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C1_SCL =
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C1_SCL_MUX_MODE(0) |
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C1_SCL_SION_MASK;
|
||||
|
@ -72,7 +72,7 @@ static int colibri_imx7d_m4_pinmux_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_I2C1_SDA_HYS_MASK;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C2_SCL =
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C2_SCL_MUX_MODE(0) |
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C2_SCL_SION_MASK;
|
||||
|
@ -96,7 +96,7 @@ static int colibri_imx7d_m4_pinmux_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_I2C2_SDA_HYS_MASK;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C3_SCL =
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C3_SCL_MUX_MODE(0) |
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C3_SCL_SION_MASK;
|
||||
|
@ -120,7 +120,7 @@ static int colibri_imx7d_m4_pinmux_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_I2C3_SDA_HYS_MASK;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c4), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_ENET1_RGMII_TD2 =
|
||||
IOMUXC_SW_MUX_CTL_PAD_ENET1_RGMII_TD2_MUX_MODE(3) |
|
||||
IOMUXC_SW_MUX_CTL_PAD_ENET1_RGMII_TD2_SION_MASK;
|
||||
|
@ -144,7 +144,7 @@ static int colibri_imx7d_m4_pinmux_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_ENET1_RGMII_TD3_HYS_MASK;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm1), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_GPIO1_IO08 =
|
||||
IOMUXC_SW_MUX_CTL_PAD_GPIO1_IO08_MUX_MODE(7);
|
||||
IOMUXC_SW_PAD_CTL_PAD_GPIO1_IO08 =
|
||||
|
@ -154,7 +154,7 @@ static int colibri_imx7d_m4_pinmux_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_GPIO1_IO08_HYS_MASK;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_GPIO1_IO09 =
|
||||
IOMUXC_SW_MUX_CTL_PAD_GPIO1_IO09_MUX_MODE(7);
|
||||
IOMUXC_SW_PAD_CTL_PAD_GPIO1_IO09 =
|
||||
|
@ -164,7 +164,7 @@ static int colibri_imx7d_m4_pinmux_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_GPIO1_IO09_HYS_MASK;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm3), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_GPIO1_IO10 =
|
||||
IOMUXC_SW_MUX_CTL_PAD_GPIO1_IO10_MUX_MODE(7);
|
||||
IOMUXC_SW_PAD_CTL_PAD_GPIO1_IO10 =
|
||||
|
@ -174,7 +174,7 @@ static int colibri_imx7d_m4_pinmux_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_GPIO1_IO10_HYS_MASK;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm4), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_GPIO1_IO11 =
|
||||
IOMUXC_SW_MUX_CTL_PAD_GPIO1_IO11_MUX_MODE(7);
|
||||
IOMUXC_SW_PAD_CTL_PAD_GPIO1_IO11 =
|
||||
|
|
|
@ -14,40 +14,40 @@
|
|||
|
||||
/* pin assignments for Disco L475 IOT1 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart4), okay)
|
||||
{STM32_PIN_PA0, STM32L4X_PINMUX_FUNC_PA0_UART4_TX},
|
||||
{STM32_PIN_PA1, STM32L4X_PINMUX_FUNC_PA1_UART4_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32L4X_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32L4X_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
/* I2C2 is used for NFC, STSAFE, ToF & MEMS sensors */
|
||||
{STM32_PIN_PB10, STM32L4X_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB11, STM32L4X_PINMUX_FUNC_PB11_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
{STM32_PIN_PC0, STM32L4X_PINMUX_FUNC_PC0_I2C3_SCL},
|
||||
{STM32_PIN_PC1, STM32L4X_PINMUX_FUNC_PC1_I2C3_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PA5, STM32L4X_PINMUX_FUNC_PA5_SPI1_SCK},
|
||||
{STM32_PIN_PA6, STM32L4X_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32L4X_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi3), okay)
|
||||
/* SPI3 is used for BT/WIFI, Sub GHZ communication */
|
||||
{STM32_PIN_PC10, STM32L4X_PINMUX_FUNC_PC10_SPI3_SCK},
|
||||
{STM32_PIN_PC11, STM32L4X_PINMUX_FUNC_PC11_SPI3_MISO | \
|
||||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
{STM32_PIN_PC12, STM32L4X_PINMUX_FUNC_PC12_SPI3_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA15, STM32L4X_PINMUX_FUNC_PA15_PWM2_CH1},
|
||||
#endif
|
||||
#ifdef CONFIG_USB_DC_STM32
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
/* pin assignments for Dragino LSN50 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
|
|
|
@ -33,17 +33,17 @@ static int frdm_k22f_pinmux_init(struct device *dev)
|
|||
device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart0), okay)
|
||||
#error "No UART0 is used"
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart1), okay)
|
||||
/* UART1 RX, TX */
|
||||
pinmux_pin_set(porte, 0, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
pinmux_pin_set(porte, 1, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart2), okay)
|
||||
/* UART2 RX, TX */
|
||||
pinmux_pin_set(portd, 2, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
pinmux_pin_set(portd, 3, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
|
@ -64,7 +64,7 @@ static int frdm_k22f_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(porta, 2, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
pinmux_pin_set(portd, 5, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi0), okay)
|
||||
/* SPI0 CS0, SCK, SOUT, SIN */
|
||||
pinmux_pin_set(portd, 4, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
pinmux_pin_set(portd, 1, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
|
@ -73,7 +73,7 @@ static int frdm_k22f_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(portc, 11, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c0), okay)
|
||||
/* I2C0 SCL, SDA */
|
||||
pinmux_pin_set(portb, 2, PORT_PCR_MUX(kPORT_MuxAlt2)
|
||||
| PORT_PCR_ODE_MASK);
|
||||
|
|
|
@ -33,13 +33,13 @@ static int frdm_k64f_pinmux_init(struct device *dev)
|
|||
device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart0), okay)
|
||||
/* UART0 RX, TX */
|
||||
pinmux_pin_set(portb, 16, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
pinmux_pin_set(portb, 17, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart2), okay)
|
||||
/* UART2 RX, TX */
|
||||
pinmux_pin_set(portd, 0, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
pinmux_pin_set(portd, 1, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
|
@ -47,7 +47,7 @@ static int frdm_k64f_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(portd, 3, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart3), okay)
|
||||
/* UART3 RX, TX */
|
||||
pinmux_pin_set(portc, 16, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
pinmux_pin_set(portc, 17, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
|
@ -101,7 +101,7 @@ static int frdm_k64f_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(portb, 9, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi0), okay)
|
||||
/* SPI0 CS0, SCK, SOUT, SIN */
|
||||
pinmux_pin_set(portd, 0, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
pinmux_pin_set(portd, 1, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
|
@ -109,7 +109,7 @@ static int frdm_k64f_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(portd, 3, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c0), okay)
|
||||
/* I2C0 SCL, SDA */
|
||||
pinmux_pin_set(porte, 24, PORT_PCR_MUX(kPORT_MuxAlt5)
|
||||
| PORT_PCR_ODE_MASK);
|
||||
|
@ -117,7 +117,7 @@ static int frdm_k64f_pinmux_init(struct device *dev)
|
|||
| PORT_PCR_ODE_MASK);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
/* ADC1_SE14 */
|
||||
pinmux_pin_set(portb, 10, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog));
|
||||
#endif
|
||||
|
@ -127,7 +127,7 @@ static int frdm_k64f_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(portc, 9, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
pinmux_pin_set(porta, 5, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
pinmux_pin_set(porta, 12, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
pinmux_pin_set(porta, 13, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
|
@ -148,7 +148,7 @@ static int frdm_k64f_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(portc, 19, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(flexcan0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(flexcan0), okay)
|
||||
/* FlexCAN0 RX, TX */
|
||||
pinmux_pin_set(portb, 18, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
pinmux_pin_set(portb, 19, PORT_PCR_MUX(kPORT_MuxAlt2) |
|
||||
|
|
|
@ -52,7 +52,7 @@ static int frdm_k82f_pinmux_init(struct device *dev)
|
|||
/* FXOS8700 INT1 */
|
||||
pinmux_pin_set(portc, 13, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
/* I2C3 SDA, SCL */
|
||||
pinmux_pin_set(porta, 1, PORT_PCR_MUX(kPORT_MuxAlt4)
|
||||
| PORT_PCR_ODE_MASK);
|
||||
|
@ -60,7 +60,7 @@ static int frdm_k82f_pinmux_init(struct device *dev)
|
|||
| PORT_PCR_ODE_MASK);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
/* SPI1 SCK, SOUT, SIN, PCS0 */
|
||||
pinmux_pin_set(porte, 1, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
pinmux_pin_set(porte, 2, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
|
@ -71,7 +71,7 @@ static int frdm_k82f_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(porte, 3, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart4), okay)
|
||||
/* LPUART4 RX, TX */
|
||||
pinmux_pin_set(portc, 14, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
pinmux_pin_set(portc, 15, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
|
|
|
@ -33,7 +33,7 @@ static int frdm_kl25z_pinmux_init(struct device *dev)
|
|||
device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart0), okay)
|
||||
/* UART0 RX, TX */
|
||||
pinmux_pin_set(porta, 1, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
pinmux_pin_set(porta, 2, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
|
@ -52,7 +52,7 @@ static int frdm_kl25z_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(porta, 14, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
pinmux_pin_set(porta, 15, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c0), okay)
|
||||
/* I2C0 SCL, SDA */
|
||||
pinmux_pin_set(porte, 24, PORT_PCR_MUX(kPORT_MuxAlt5)
|
||||
| PORT_PCR_PS_MASK);
|
||||
|
@ -60,7 +60,7 @@ static int frdm_kl25z_pinmux_init(struct device *dev)
|
|||
| PORT_PCR_PS_MASK);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc0), okay)
|
||||
/* ADC0_SE12 */
|
||||
pinmux_pin_set(portb, 2, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog));
|
||||
#endif
|
||||
|
|
|
@ -28,7 +28,7 @@ static int frdm_kw41z_pinmux_init(struct device *dev)
|
|||
/* Red, green, blue LEDs. Note the red LED and accel INT1 are both
|
||||
* wired to PTC1.
|
||||
*/
|
||||
#if defined(CONFIG_PWM) && DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm0))
|
||||
#if defined(CONFIG_PWM) && DT_NODE_HAS_STATUS(DT_NODELABEL(pwm0), okay)
|
||||
pinmux_pin_set(portc, 1, PORT_PCR_MUX(kPORT_MuxAlt5));
|
||||
pinmux_pin_set(porta, 19, PORT_PCR_MUX(kPORT_MuxAlt5));
|
||||
pinmux_pin_set(porta, 18, PORT_PCR_MUX(kPORT_MuxAlt5));
|
||||
|
@ -38,7 +38,7 @@ static int frdm_kw41z_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(porta, 18, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
/* I2C1 SCL, SDA */
|
||||
pinmux_pin_set(portc, 2, PORT_PCR_MUX(kPORT_MuxAlt3)
|
||||
| PORT_PCR_PS_MASK);
|
||||
|
@ -46,7 +46,7 @@ static int frdm_kw41z_pinmux_init(struct device *dev)
|
|||
| PORT_PCR_PS_MASK);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc0), okay)
|
||||
/* ADC0_SE3 */
|
||||
pinmux_pin_set(portb, 2, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog));
|
||||
#endif
|
||||
|
@ -55,13 +55,13 @@ static int frdm_kw41z_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(portc, 4, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
pinmux_pin_set(portc, 5, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart0), okay)
|
||||
/* UART0 RX, TX */
|
||||
pinmux_pin_set(portc, 6, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
pinmux_pin_set(portc, 7, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi0), okay)
|
||||
/* SPI0 CS0, SCK, SOUT, SIN */
|
||||
pinmux_pin_set(portc, 16, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
pinmux_pin_set(portc, 17, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
|
@ -69,12 +69,12 @@ static int frdm_kw41z_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(portc, 19, PORT_PCR_MUX(kPORT_MuxAlt2));
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_PWM) && DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm1))
|
||||
#if defined(CONFIG_PWM) && DT_NODE_HAS_STATUS(DT_NODELABEL(pwm1), okay)
|
||||
pinmux_pin_set(porta, 0, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
pinmux_pin_set(porta, 1, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_PWM) && DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if defined(CONFIG_PWM) && DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
pinmux_pin_set(portb, 16, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
pinmux_pin_set(portb, 17, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
#endif
|
||||
|
|
|
@ -13,15 +13,15 @@
|
|||
#include <pinmux/stm32/pinmux_stm32.h>
|
||||
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F0_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F0_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PA11, STM32F0_PINMUX_FUNC_PA11_I2C2_SCL},
|
||||
{STM32_PIN_PA12, STM32F0_PINMUX_FUNC_PA12_I2C2_SDA},
|
||||
#endif
|
||||
|
|
|
@ -42,7 +42,7 @@ static int hexiwear_k64_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(portd, 0, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c0), okay)
|
||||
/* I2C0 SCL, SDA - heart rate, light, humidity */
|
||||
pinmux_pin_set(portb, 0, PORT_PCR_MUX(kPORT_MuxAlt2)
|
||||
| PORT_PCR_ODE_MASK);
|
||||
|
@ -58,7 +58,7 @@ static int hexiwear_k64_pinmux_init(struct device *dev)
|
|||
gpio_pin_configure(gpiob, 12, GPIO_OUTPUT_LOW);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
/* I2C1 SCL, SDA - accel/mag, gyro, pressure */
|
||||
pinmux_pin_set(portc, 10, PORT_PCR_MUX(kPORT_MuxAlt2)
|
||||
| PORT_PCR_ODE_MASK);
|
||||
|
@ -71,19 +71,19 @@ static int hexiwear_k64_pinmux_init(struct device *dev)
|
|||
/* FXOS8700 INT2 */
|
||||
pinmux_pin_set(portd, 13, PORT_PCR_MUX(kPORT_MuxAsGpio));
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart0), okay)
|
||||
/* UART0 RX, TX */
|
||||
pinmux_pin_set(portb, 16, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
pinmux_pin_set(portb, 17, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart4), okay)
|
||||
/* UART4 RX, TX - BLE */
|
||||
pinmux_pin_set(porte, 24, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
pinmux_pin_set(porte, 25, PORT_PCR_MUX(kPORT_MuxAlt3));
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_MAX30101) && DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(gpioa))
|
||||
#if defined(CONFIG_MAX30101) && DT_NODE_HAS_STATUS(DT_NODELABEL(gpioa), okay)
|
||||
struct device *porta =
|
||||
device_get_binding(CONFIG_PINMUX_MCUX_PORTA_NAME);
|
||||
|
||||
|
|
|
@ -22,13 +22,13 @@ static int hexiwear_kw40z_pinmux_init(struct device *dev)
|
|||
device_get_binding(CONFIG_PINMUX_MCUX_PORTC_NAME);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart0), okay)
|
||||
/* UART0 RX, TX */
|
||||
pinmux_pin_set(portc, 6, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
pinmux_pin_set(portc, 7, PORT_PCR_MUX(kPORT_MuxAlt4));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
/* I2C1 SCL, SDA */
|
||||
pinmux_pin_set(portc, 6, PORT_PCR_MUX(kPORT_MuxAlt3)
|
||||
| PORT_PCR_PS_MASK);
|
||||
|
@ -36,7 +36,7 @@ static int hexiwear_kw40z_pinmux_init(struct device *dev)
|
|||
| PORT_PCR_PS_MASK);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc0), okay)
|
||||
/* ADC0_SE1 */
|
||||
pinmux_pin_set(portb, 1, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog));
|
||||
#endif
|
||||
|
|
|
@ -50,7 +50,7 @@ static int lpcxpresso_54114_pinmux_init(struct device *dev)
|
|||
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(gpio0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(gpio0), okay)
|
||||
const u32_t port0_pin29_config = (
|
||||
IOCON_PIO_FUNC0 |
|
||||
IOCON_PIO_MODE_PULLUP |
|
||||
|
@ -93,7 +93,7 @@ static int lpcxpresso_54114_pinmux_init(struct device *dev)
|
|||
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(gpio1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(gpio1), okay)
|
||||
const u32_t port1_pin10_config = (
|
||||
IOCON_PIO_FUNC0 |
|
||||
IOCON_PIO_MODE_PULLUP |
|
||||
|
|
|
@ -145,7 +145,7 @@ static int lpcxpresso_55s16_pinmux_init(struct device *dev)
|
|||
IOCON_PIO_OPENDRAIN_DI);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(hs_lspi))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(hs_lspi), okay)
|
||||
/* PORT0 PIN26 is configured as HS_SPI_MOSI */
|
||||
pinmux_pin_set(port0, 26, IOCON_PIO_FUNC9 |
|
||||
IOCON_PIO_MODE_PULLUP |
|
||||
|
|
|
@ -116,7 +116,7 @@ static int lpcxpresso_55s69_pinmux_init(struct device *dev)
|
|||
IOCON_PIO_OPENDRAIN_DI);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(hs_lspi))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(hs_lspi), okay)
|
||||
/* PORT0 PIN26 is configured as HS_SPI_MOSI */
|
||||
pinmux_pin_set(port0, 26, IOCON_PIO_FUNC9 |
|
||||
IOCON_PIO_MODE_PULLUP |
|
||||
|
|
|
@ -12,22 +12,22 @@
|
|||
#include "soc.h"
|
||||
|
||||
struct pinmux_ports_t {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_000_036))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_000_036), okay)
|
||||
struct device *porta;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_040_076))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_040_076), okay)
|
||||
struct device *portb;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_100_136))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_100_136), okay)
|
||||
struct device *portc;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_140_176))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_140_176), okay)
|
||||
struct device *portd;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_200_236))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_200_236), okay)
|
||||
struct device *porte;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_240_276))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_240_276), okay)
|
||||
struct device *portf;
|
||||
#endif
|
||||
};
|
||||
|
@ -35,50 +35,50 @@ struct pinmux_ports_t {
|
|||
static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
|
||||
{
|
||||
switch (port_sel) {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_000_036))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_000_036), okay)
|
||||
case 0:
|
||||
pinmux_pin_set(p->porta, MCHP_GPIO_003, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->porta, MCHP_GPIO_004, MCHP_GPIO_CTRL_MUX_F1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_100_136))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_100_136), okay)
|
||||
case 1:
|
||||
pinmux_pin_set(p->portc, MCHP_GPIO_130, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->portc, MCHP_GPIO_131, MCHP_GPIO_CTRL_MUX_F1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_140_176))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_140_176), okay)
|
||||
case 2:
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_154, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_155, MCHP_GPIO_CTRL_MUX_F1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_000_036))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_000_036), okay)
|
||||
case 3:
|
||||
pinmux_pin_set(p->porta, MCHP_GPIO_007, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->porta, MCHP_GPIO_010, MCHP_GPIO_CTRL_MUX_F1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_140_176))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_140_176), okay)
|
||||
case 4:
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_143, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_144, MCHP_GPIO_CTRL_MUX_F1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_140_176))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_140_176), okay)
|
||||
case 5:
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_141, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_142, MCHP_GPIO_CTRL_MUX_F1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_100_136))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_140_176))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_100_136), okay)
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_140_176), okay)
|
||||
case 6:
|
||||
pinmux_pin_set(p->portc, MCHP_GPIO_132, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_140, MCHP_GPIO_CTRL_MUX_F1);
|
||||
|
@ -86,7 +86,7 @@ static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_000_036))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_000_036), okay)
|
||||
case 7:
|
||||
pinmux_pin_set(p->porta, MCHP_GPIO_012, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->porta, MCHP_GPIO_013, MCHP_GPIO_CTRL_MUX_F1);
|
||||
|
@ -103,32 +103,32 @@ static int board_pinmux_init(struct device *dev)
|
|||
ARG_UNUSED(dev);
|
||||
struct pinmux_ports_t pinmux_ports;
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_000_036))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_000_036), okay)
|
||||
struct device *porta =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(pinmux_000_036)));
|
||||
pinmux_ports.porta = porta;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_040_076))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_040_076), okay)
|
||||
struct device *portb =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(pinmux_040_076)));
|
||||
pinmux_ports.portb = portb;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_100_136))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_100_136), okay)
|
||||
struct device *portc =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(pinmux_100_136)));
|
||||
pinmux_ports.portc = portc;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_140_176))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_140_176), okay)
|
||||
struct device *portd =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(pinmux_140_176)));
|
||||
pinmux_ports.portd = portd;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_200_236))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_200_236), okay)
|
||||
struct device *porte =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(pinmux_200_236)));
|
||||
pinmux_ports.porte = porte;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_240_276))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_240_276), okay)
|
||||
struct device *portf =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(pinmux_240_276)));
|
||||
pinmux_ports.portf = portf;
|
||||
|
@ -158,7 +158,7 @@ static int board_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(portf, MCHP_GPIO_250, MCHP_GPIO_CTRL_MUX_F0);
|
||||
|
||||
/* See table 2-4 from the data sheet for pin multiplexing*/
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart1), okay)
|
||||
/* Set muxing, for UART 1 TX/RX and power up */
|
||||
mchp_pcr_periph_slp_ctrl(PCR_UART1, MCHP_PCR_SLEEP_DIS);
|
||||
|
||||
|
@ -191,23 +191,23 @@ static int board_pinmux_init(struct device *dev)
|
|||
|
||||
#ifdef CONFIG_I2C_XEC
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(0, microchip_xec_i2c))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(0, microchip_xec_i2c), okay)
|
||||
i2c_pinmux(&pinmux_ports, DT_PROP(DT_INST(0, microchip_xec_i2c), port_sel));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(1, microchip_xec_i2c))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(1, microchip_xec_i2c), okay)
|
||||
i2c_pinmux(&pinmux_ports, DT_PROP(DT_INST(1, microchip_xec_i2c), port_sel));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(2, microchip_xec_i2c))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(2, microchip_xec_i2c), okay)
|
||||
i2c_pinmux(&pinmux_ports, DT_PROP(DT_INST(2, microchip_xec_i2c), port_sel));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(3, microchip_xec_i2c))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(3, microchip_xec_i2c), okay)
|
||||
i2c_pinmux(&pinmux_ports, DT_PROP(DT_INST(3, microchip_xec_i2c), port_sel));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(4, microchip_xec_i2c))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(4, microchip_xec_i2c), okay)
|
||||
i2c_pinmux(&pinmux_ports, DT_PROP(DT_INST(4, microchip_xec_i2c), port_sel));
|
||||
#endif
|
||||
|
||||
|
@ -249,47 +249,47 @@ static int board_pinmux_init(struct device *dev)
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_PWM_XEC
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(0, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(0, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM0, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(portb, MCHP_GPIO_053, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(1, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(1, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM1, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(portb, MCHP_GPIO_054, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(2, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(2, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM2, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(portb, MCHP_GPIO_055, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(3, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(3, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM3, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(portb, MCHP_GPIO_056, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(4, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(4, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM4, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(porta, MCHP_GPIO_011, MCHP_GPIO_CTRL_MUX_F2);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(5, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(5, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM5, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(porta, MCHP_GPIO_002, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(6, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(6, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM6, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(porta, MCHP_GPIO_014, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(7, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(7, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM7, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(porta, MCHP_GPIO_015, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(8, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(8, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM8, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(porta, MCHP_GPIO_035, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
@ -379,7 +379,7 @@ static int board_pinmux_init(struct device *dev)
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_SPI_XEC_QMSPI
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(0, microchip_xec_qmspi))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(0, microchip_xec_qmspi), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_QMSPI, MCHP_PCR_SLEEP_DIS);
|
||||
|
||||
#if DT_PROP(DT_INST(0, microchip_xec_qmspi), port_sel) == 0
|
||||
|
@ -409,7 +409,7 @@ static int board_pinmux_init(struct device *dev)
|
|||
#endif
|
||||
#endif /* DT_PROP(DT_INST(0, microchip_xec_qmspi), port_sel) == 0 */
|
||||
|
||||
#endif /* DT_HAS_NODE_STATUS_OKAY(DT_INST(0, microchip_xec_qmspi)) */
|
||||
#endif /* DT_NODE_HAS_STATUS(DT_INST(0, microchip_xec_qmspi), okay) */
|
||||
#endif /* CONFIG_SPI_XEC_QMSPI */
|
||||
|
||||
#ifdef CONFIG_SYS_PM_DEBUG
|
||||
|
@ -422,7 +422,7 @@ static int board_pinmux_init(struct device *dev)
|
|||
|
||||
#ifdef CONFIG_TACH_XEC
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(0, microchip_xec_tach))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(0, microchip_xec_tach), okay)
|
||||
pinmux_pin_set(portb, MCHP_GPIO_050, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif /* CONFIG_TACH_XEC */
|
||||
|
||||
|
|
|
@ -12,22 +12,22 @@
|
|||
#include "soc.h"
|
||||
|
||||
struct pinmux_ports_t {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_000_036))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_000_036), okay)
|
||||
struct device *porta;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_040_076))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_040_076), okay)
|
||||
struct device *portb;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_100_136))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_100_136), okay)
|
||||
struct device *portc;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_140_176))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_140_176), okay)
|
||||
struct device *portd;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_200_236))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_200_236), okay)
|
||||
struct device *porte;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_240_276))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_240_276), okay)
|
||||
struct device *portf;
|
||||
#endif
|
||||
};
|
||||
|
@ -35,50 +35,50 @@ struct pinmux_ports_t {
|
|||
static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
|
||||
{
|
||||
switch (port_sel) {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_000_036))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_000_036), okay)
|
||||
case 0:
|
||||
pinmux_pin_set(p->porta, MCHP_GPIO_003, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->porta, MCHP_GPIO_004, MCHP_GPIO_CTRL_MUX_F1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_100_136))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_100_136), okay)
|
||||
case 1:
|
||||
pinmux_pin_set(p->portc, MCHP_GPIO_130, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->portc, MCHP_GPIO_131, MCHP_GPIO_CTRL_MUX_F1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_140_176))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_140_176), okay)
|
||||
case 2:
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_154, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_155, MCHP_GPIO_CTRL_MUX_F1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_000_036))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_000_036), okay)
|
||||
case 3:
|
||||
pinmux_pin_set(p->porta, MCHP_GPIO_007, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->porta, MCHP_GPIO_010, MCHP_GPIO_CTRL_MUX_F1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_140_176))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_140_176), okay)
|
||||
case 4:
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_143, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_144, MCHP_GPIO_CTRL_MUX_F1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_140_176))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_140_176), okay)
|
||||
case 5:
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_141, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_142, MCHP_GPIO_CTRL_MUX_F1);
|
||||
break;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_100_136))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_140_176))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_100_136), okay)
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_140_176), okay)
|
||||
case 6:
|
||||
pinmux_pin_set(p->portc, MCHP_GPIO_132, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->portd, MCHP_GPIO_140, MCHP_GPIO_CTRL_MUX_F1);
|
||||
|
@ -86,7 +86,7 @@ static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_000_036))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_000_036), okay)
|
||||
case 7:
|
||||
pinmux_pin_set(p->porta, MCHP_GPIO_012, MCHP_GPIO_CTRL_MUX_F1);
|
||||
pinmux_pin_set(p->porta, MCHP_GPIO_013, MCHP_GPIO_CTRL_MUX_F1);
|
||||
|
@ -103,32 +103,32 @@ static int board_pinmux_init(struct device *dev)
|
|||
ARG_UNUSED(dev);
|
||||
struct pinmux_ports_t pinmux_ports;
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_000_036))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_000_036), okay)
|
||||
struct device *porta =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(pinmux_000_036)));
|
||||
pinmux_ports.porta = porta;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_040_076))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_040_076), okay)
|
||||
struct device *portb =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(pinmux_040_076)));
|
||||
pinmux_ports.portb = portb;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_100_136))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_100_136), okay)
|
||||
struct device *portc =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(pinmux_100_136)));
|
||||
pinmux_ports.portc = portc;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_140_176))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_140_176), okay)
|
||||
struct device *portd =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(pinmux_140_176)));
|
||||
pinmux_ports.portd = portd;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_200_236))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_200_236), okay)
|
||||
struct device *porte =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(pinmux_200_236)));
|
||||
pinmux_ports.porte = porte;
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pinmux_240_276))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pinmux_240_276), okay)
|
||||
struct device *portf =
|
||||
device_get_binding(DT_LABEL(DT_NODELABEL(pinmux_240_276)));
|
||||
pinmux_ports.portf = portf;
|
||||
|
@ -158,7 +158,7 @@ static int board_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(portf, MCHP_GPIO_250, MCHP_GPIO_CTRL_MUX_F0);
|
||||
|
||||
/* See table 2-4 from the data sheet for pin multiplexing*/
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart2), okay)
|
||||
/* Set muxing, for UART 2 TX/RX and power up */
|
||||
mchp_pcr_periph_slp_ctrl(PCR_UART2, MCHP_PCR_SLEEP_DIS);
|
||||
|
||||
|
@ -191,23 +191,23 @@ static int board_pinmux_init(struct device *dev)
|
|||
|
||||
#ifdef CONFIG_I2C_XEC
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(0, microchip_xec_i2c))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(0, microchip_xec_i2c), okay)
|
||||
i2c_pinmux(&pinmux_ports, DT_PROP(DT_INST(0, microchip_xec_i2c), port_sel));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(1, microchip_xec_i2c))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(1, microchip_xec_i2c), okay)
|
||||
i2c_pinmux(&pinmux_ports, DT_PROP(DT_INST(1, microchip_xec_i2c), port_sel));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(2, microchip_xec_i2c))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(2, microchip_xec_i2c), okay)
|
||||
i2c_pinmux(&pinmux_ports, DT_PROP(DT_INST(2, microchip_xec_i2c), port_sel));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(3, microchip_xec_i2c))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(3, microchip_xec_i2c), okay)
|
||||
i2c_pinmux(&pinmux_ports, DT_PROP(DT_INST(3, microchip_xec_i2c), port_sel));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(4, microchip_xec_i2c))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(4, microchip_xec_i2c), okay)
|
||||
i2c_pinmux(&pinmux_ports, DT_PROP(DT_INST(4, microchip_xec_i2c), port_sel));
|
||||
#endif
|
||||
|
||||
|
@ -249,47 +249,47 @@ static int board_pinmux_init(struct device *dev)
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_PWM_XEC
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(0, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(0, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM0, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(portb, MCHP_GPIO_053, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(1, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(1, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM1, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(portb, MCHP_GPIO_054, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(2, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(2, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM2, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(portb, MCHP_GPIO_055, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(3, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(3, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM3, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(portb, MCHP_GPIO_056, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(4, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(4, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM4, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(porta, MCHP_GPIO_011, MCHP_GPIO_CTRL_MUX_F2);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(5, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(5, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM5, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(porta, MCHP_GPIO_002, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(6, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(6, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM6, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(porta, MCHP_GPIO_014, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(7, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(7, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM7, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(porta, MCHP_GPIO_015, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(8, microchip_xec_pwm))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(8, microchip_xec_pwm), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_PWM8, MCHP_PCR_SLEEP_DIS);
|
||||
pinmux_pin_set(porta, MCHP_GPIO_035, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif
|
||||
|
@ -379,7 +379,7 @@ static int board_pinmux_init(struct device *dev)
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_SPI_XEC_QMSPI
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(0, microchip_xec_qmspi))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(0, microchip_xec_qmspi), okay)
|
||||
mchp_pcr_periph_slp_ctrl(PCR_QMSPI, MCHP_PCR_SLEEP_DIS);
|
||||
|
||||
#if DT_PROP(DT_INST(0, microchip_xec_qmspi), port_sel) == 0
|
||||
|
@ -409,7 +409,7 @@ static int board_pinmux_init(struct device *dev)
|
|||
#endif
|
||||
#endif /* DT_PROP(DT_INST(0, microchip_xec_qmspi), port_sel) == 0 */
|
||||
|
||||
#endif /* DT_HAS_NODE_STATUS_OKAY(DT_INST(0, microchip_xec_qmspi)) */
|
||||
#endif /* DT_NODE_HAS_STATUS(DT_INST(0, microchip_xec_qmspi), okay) */
|
||||
#endif /* CONFIG_SPI_XEC_QMSPI */
|
||||
|
||||
#ifdef CONFIG_SYS_PM_DEBUG
|
||||
|
@ -422,7 +422,7 @@ static int board_pinmux_init(struct device *dev)
|
|||
|
||||
#ifdef CONFIG_TACH_XEC
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(0, microchip_xec_tach))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(0, microchip_xec_tach), okay)
|
||||
pinmux_pin_set(portb, MCHP_GPIO_050, MCHP_GPIO_CTRL_MUX_F1);
|
||||
#endif /* CONFIG_TACH_XEC */
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ static int board_pinmux_init(struct device *dev)
|
|||
ARG_UNUSED(dev);
|
||||
|
||||
/* See table 2-4 from the Data sheet*/
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart0))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart0), okay)
|
||||
/* Set muxing, for UART 0 and power up */
|
||||
PCR_INST->CLK_REQ_2_b.UART_0_CLK_REQ = 1;
|
||||
UART0_INST->CONFIG = 0;
|
||||
|
@ -24,7 +24,7 @@ static int board_pinmux_init(struct device *dev)
|
|||
GPIO_100_137_INST->GPIO_105_PIN_CONTROL_b.MUX_CONTROL = 1;
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart1), okay)
|
||||
/* Set muxing, for UART 1 and power up */
|
||||
PCR_INST->CLK_REQ_2_b.UART_1_CLK_REQ = 1;
|
||||
UART1_INST->CONFIG = 0;
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
|
||||
/* pin assignments for MINI-M4 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -30,7 +30,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F4_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32F4_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm3), okay)
|
||||
{STM32_PIN_PB4, STM32F4_PINMUX_FUNC_PB4_PWM3_CH1},
|
||||
#endif
|
||||
#ifdef CONFIG_USB_DC_STM32
|
||||
|
|
|
@ -15,7 +15,7 @@ static int mimxrt1010_evk_init(struct device *dev)
|
|||
CLOCK_EnableClock(kCLOCK_Iomuxc);
|
||||
CLOCK_EnableClock(kCLOCK_IomuxcSnvs);
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(gpio1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(gpio1), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_11_GPIOMUX_IO11, 0);
|
||||
IOMUXC_SetPinConfig(IOMUXC_GPIO_11_GPIOMUX_IO11,
|
||||
IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
|
||||
|
@ -26,7 +26,7 @@ static int mimxrt1010_evk_init(struct device *dev)
|
|||
IOMUXC_GPR->GPR26 &= ~(IOMUXC_GPR_GPR26_GPIO_SEL(1 << 11));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(gpio2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(gpio2), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_05_GPIO2_IO05, 0);
|
||||
IOMUXC_SetPinConfig(IOMUXC_GPIO_SD_05_GPIO2_IO05,
|
||||
IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
|
||||
|
@ -36,7 +36,7 @@ static int mimxrt1010_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(4));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
/* LPUART1 TX/RX */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_09_LPUART1_RXD, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_10_LPUART1_TXD, 0);
|
||||
|
@ -52,7 +52,7 @@ static int mimxrt1010_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpi2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c1), okay)
|
||||
/* LPI2C1 SCL, SDA */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_01_LPI2C1_SDA, 1);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_02_LPI2C1_SCL, 1);
|
||||
|
|
|
@ -15,7 +15,7 @@ static int mimxrt1015_evk_init(struct device *dev)
|
|||
CLOCK_EnableClock(kCLOCK_Iomuxc);
|
||||
CLOCK_EnableClock(kCLOCK_IomuxcSnvs);
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(gpio2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(gpio2), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_EMC_09_GPIO2_IO09, 0);
|
||||
IOMUXC_SetPinConfig(IOMUXC_GPIO_EMC_09_GPIO2_IO09,
|
||||
IOMUXC_SW_PAD_CTL_PAD_PKE_MASK |
|
||||
|
@ -25,7 +25,7 @@ static int mimxrt1015_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(4));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
/* LPUART1 TX/RX */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_06_LPUART1_TX, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_07_LPUART1_RX, 0);
|
||||
|
@ -41,7 +41,7 @@ static int mimxrt1015_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart4), okay)
|
||||
/* LPUART4 TX/RX */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_EMC_32_LPUART4_TX, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_EMC_33_LPUART4_RX, 0);
|
||||
|
@ -57,7 +57,7 @@ static int mimxrt1015_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpi2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c1), okay)
|
||||
/* LPI2C1 SCL, SDA */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_14_LPI2C1_SCL, 1);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_15_LPI2C1_SDA, 1);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <fsl_iomuxc.h>
|
||||
#include <fsl_gpio.h>
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
static gpio_pin_config_t enet_gpio_config = {
|
||||
.direction = kGPIO_DigitalOutput,
|
||||
.outputLogic = 0,
|
||||
|
@ -34,7 +34,7 @@ static int mimxrt1020_evk_init(struct device *dev)
|
|||
/* SW0 */
|
||||
IOMUXC_SetPinMux(IOMUXC_SNVS_WAKEUP_GPIO5_IO00, 0);
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
/* LPUART1 TX/RX */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_06_LPUART1_TX, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_07_LPUART1_RX, 0);
|
||||
|
@ -50,7 +50,7 @@ static int mimxrt1020_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart2), okay)
|
||||
/* LPUART2 TX/RX */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_08_LPUART2_TX, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_09_LPUART2_RX, 0);
|
||||
|
@ -66,7 +66,7 @@ static int mimxrt1020_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpi2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c1), okay)
|
||||
/* LPI2C1 SCL, SDA */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_14_LPI2C1_SCL, 1);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_15_LPI2C1_SDA, 1);
|
||||
|
@ -86,7 +86,7 @@ static int mimxrt1020_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpi2c4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c4), okay)
|
||||
/* LPI2C4 SCL, SDA */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_02_LPI2C4_SCL, 1);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_SD_B1_03_LPI2C4_SDA, 1);
|
||||
|
@ -106,7 +106,7 @@ static int mimxrt1020_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_04_GPIO1_IO04, 0U);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_06_GPIO1_IO22, 0U);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_10_ENET_RDATA00, 0);
|
||||
|
@ -147,7 +147,7 @@ static int mimxrt1020_evk_init(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
static int mimxrt1020_evk_phy_reset(struct device *dev)
|
||||
{
|
||||
/* RESET PHY chip. */
|
||||
|
@ -159,6 +159,6 @@ static int mimxrt1020_evk_phy_reset(struct device *dev)
|
|||
#endif
|
||||
|
||||
SYS_INIT(mimxrt1020_evk_init, PRE_KERNEL_1, 0);
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
SYS_INIT(mimxrt1020_evk_phy_reset, PRE_KERNEL_2, 0);
|
||||
#endif
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <fsl_gpio.h>
|
||||
#include <soc.h>
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
static gpio_pin_config_t enet_gpio_config = {
|
||||
.direction = kGPIO_DigitalOutput,
|
||||
.outputLogic = 0,
|
||||
|
@ -17,7 +17,7 @@ static gpio_pin_config_t enet_gpio_config = {
|
|||
};
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usdhc1)) && CONFIG_DISK_ACCESS_USDHC1
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc1), okay) && CONFIG_DISK_ACCESS_USDHC1
|
||||
|
||||
/*Drive Strength Field: R0(260 Ohm @ 3.3V, 150 Ohm@1.8V, 240 Ohm for DDR)
|
||||
*Speed Field: medium(100MHz)
|
||||
|
@ -118,7 +118,7 @@ static int mimxrt1050_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if !DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if !DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
/* LED */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, 0);
|
||||
|
||||
|
@ -131,7 +131,7 @@ static int mimxrt1050_evk_init(struct device *dev)
|
|||
IOMUXC_SetPinMux(IOMUXC_SNVS_WAKEUP_GPIO5_IO00, 0);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
/* LPUART1 TX/RX */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_12_LPUART1_TX, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_13_LPUART1_RX, 0);
|
||||
|
@ -147,7 +147,7 @@ static int mimxrt1050_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart3), okay)
|
||||
/* LPUART3 TX/RX */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_06_LPUART3_TX, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_07_LPUART3_RX, 0);
|
||||
|
@ -163,7 +163,7 @@ static int mimxrt1050_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpi2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c1), okay)
|
||||
/* LPI2C1 SCL, SDA */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL, 1);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA, 1);
|
||||
|
@ -183,7 +183,7 @@ static int mimxrt1050_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpspi3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpspi3), okay)
|
||||
/* LPSPI3 SCK, SDO, SDI, PCS0 */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_00_LPSPI3_SCK, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_01_LPSPI3_SDO, 0);
|
||||
|
@ -211,7 +211,7 @@ static int mimxrt1050_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, 0U);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_10_GPIO1_IO10, 0U);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_B1_04_ENET_RX_DATA00, 0);
|
||||
|
@ -249,7 +249,7 @@ static int mimxrt1050_evk_init(struct device *dev)
|
|||
GPIO_WritePinOutput(GPIO1, 9, 0);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lcdif))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lcdif), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_B0_00_LCD_CLK, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_B0_01_LCD_ENABLE, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_B0_02_LCD_HSYNC, 0);
|
||||
|
@ -308,7 +308,7 @@ static int mimxrt1050_evk_init(struct device *dev)
|
|||
GPIO_PinInit(GPIO2, 31, &config);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usdhc1)) && CONFIG_DISK_ACCESS_USDHC1
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc1), okay) && CONFIG_DISK_ACCESS_USDHC1
|
||||
mimxrt1050_evk_usdhc_pinmux(0, true, 2, 1);
|
||||
imxrt_usdhc_pinmux_cb_register(mimxrt1050_evk_usdhc_pinmux);
|
||||
#endif
|
||||
|
@ -316,7 +316,7 @@ static int mimxrt1050_evk_init(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
static int mimxrt1050_evk_phy_reset(struct device *dev)
|
||||
{
|
||||
/* RESET PHY chip. */
|
||||
|
@ -328,6 +328,6 @@ static int mimxrt1050_evk_phy_reset(struct device *dev)
|
|||
#endif
|
||||
|
||||
SYS_INIT(mimxrt1050_evk_init, PRE_KERNEL_1, 0);
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
SYS_INIT(mimxrt1050_evk_phy_reset, PRE_KERNEL_2, 0);
|
||||
#endif
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
LOG_MODULE_REGISTER(mimxrt1060_evk, LOG_LEVEL_INF);
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
static gpio_pin_config_t enet_gpio_config = {
|
||||
.direction = kGPIO_DigitalOutput,
|
||||
.outputLogic = 0,
|
||||
|
@ -20,7 +20,7 @@ static gpio_pin_config_t enet_gpio_config = {
|
|||
};
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usdhc1)) && CONFIG_DISK_ACCESS_USDHC1
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc1), okay) && CONFIG_DISK_ACCESS_USDHC1
|
||||
|
||||
/*Drive Strength Field: R0(260 Ohm @ 3.3V, 150 Ohm@1.8V, 240 Ohm for DDR)
|
||||
*Speed Field: medium(100MHz)
|
||||
|
@ -101,7 +101,7 @@ static int mimxrt1060_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if !DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if !DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
/* LED */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, 0);
|
||||
|
||||
|
@ -114,7 +114,7 @@ static int mimxrt1060_evk_init(struct device *dev)
|
|||
IOMUXC_SetPinMux(IOMUXC_SNVS_WAKEUP_GPIO5_IO00, 0);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
/* LPUART1 TX/RX */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_12_LPUART1_TX, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_13_LPUART1_RX, 0);
|
||||
|
@ -130,7 +130,7 @@ static int mimxrt1060_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart3), okay)
|
||||
/* LPUART3 TX/RX */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_06_LPUART3_TX, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_07_LPUART3_RX, 0);
|
||||
|
@ -146,7 +146,7 @@ static int mimxrt1060_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpi2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c1), okay)
|
||||
/* LPI2C1 SCL, SDA */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL, 1);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA, 1);
|
||||
|
@ -166,7 +166,7 @@ static int mimxrt1060_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, 0U);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_10_GPIO1_IO10, 0U);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_B1_04_ENET_RX_DATA00, 0);
|
||||
|
@ -204,7 +204,7 @@ static int mimxrt1060_evk_init(struct device *dev)
|
|||
GPIO_WritePinOutput(GPIO1, 9, 0);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lcdif))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lcdif), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_B0_00_LCD_CLK, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_B0_01_LCD_ENABLE, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_B0_02_LCD_HSYNC, 0);
|
||||
|
@ -263,7 +263,7 @@ static int mimxrt1060_evk_init(struct device *dev)
|
|||
GPIO_PinInit(GPIO2, 31, &config);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usdhc1)) && CONFIG_DISK_ACCESS_USDHC1
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc1), okay) && CONFIG_DISK_ACCESS_USDHC1
|
||||
mimxrt1060_evk_usdhc_pinmux(0, true, 2, 1);
|
||||
imxrt_usdhc_pinmux_cb_register(mimxrt1060_evk_usdhc_pinmux);
|
||||
#endif
|
||||
|
@ -271,7 +271,7 @@ static int mimxrt1060_evk_init(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
static int mimxrt1060_evk_phy_reset(struct device *dev)
|
||||
{
|
||||
/* RESET PHY chip. */
|
||||
|
@ -283,6 +283,6 @@ static int mimxrt1060_evk_phy_reset(struct device *dev)
|
|||
#endif
|
||||
|
||||
SYS_INIT(mimxrt1060_evk_init, PRE_KERNEL_1, 0);
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
SYS_INIT(mimxrt1060_evk_phy_reset, PRE_KERNEL_2, 0);
|
||||
#endif
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
LOG_MODULE_REGISTER(mimxrt1064_evk, LOG_LEVEL_INF);
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
static gpio_pin_config_t enet_gpio_config = {
|
||||
.direction = kGPIO_DigitalOutput,
|
||||
.outputLogic = 0,
|
||||
|
@ -20,7 +20,7 @@ static gpio_pin_config_t enet_gpio_config = {
|
|||
};
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usdhc1)) && CONFIG_DISK_ACCESS_USDHC1
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc1), okay) && CONFIG_DISK_ACCESS_USDHC1
|
||||
|
||||
/*Drive Strength Field: R0(260 Ohm @ 3.3V, 150 Ohm@1.8V, 240 Ohm for DDR)
|
||||
*Speed Field: medium(100MHz)
|
||||
|
@ -101,7 +101,7 @@ static int mimxrt1064_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if !DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if !DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
/* LED */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, 0);
|
||||
|
||||
|
@ -114,7 +114,7 @@ static int mimxrt1064_evk_init(struct device *dev)
|
|||
IOMUXC_SetPinMux(IOMUXC_SNVS_WAKEUP_GPIO5_IO00, 0);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
/* LPUART1 TX/RX */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_12_LPUART1_TX, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_13_LPUART1_RX, 0);
|
||||
|
@ -130,7 +130,7 @@ static int mimxrt1064_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lcdif))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lcdif), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_B0_00_LCD_CLK, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_B0_01_LCD_ENABLE, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_B0_02_LCD_HSYNC, 0);
|
||||
|
@ -189,7 +189,7 @@ static int mimxrt1064_evk_init(struct device *dev)
|
|||
GPIO_PinInit(GPIO2, 31, &config);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpi2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c1), okay)
|
||||
/* LPI2C1 SCL, SDA */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL, 1);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA, 1);
|
||||
|
@ -209,7 +209,7 @@ static int mimxrt1064_evk_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, 0U);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_10_GPIO1_IO10, 0U);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_B1_04_ENET_RX_DATA00, 0);
|
||||
|
@ -247,11 +247,11 @@ static int mimxrt1064_evk_init(struct device *dev)
|
|||
GPIO_WritePinOutput(GPIO1, 9, 0);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(flexpwm2_pwm3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(flexpwm2_pwm3), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_09_FLEXPWM2_PWMA03, 0);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(csi))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(csi), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_04_GPIO1_IO04, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_04_CSI_PIXCLK, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_05_CSI_MCLK, 0);
|
||||
|
@ -267,7 +267,7 @@ static int mimxrt1064_evk_init(struct device *dev)
|
|||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_15_CSI_DATA02, 0);
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usdhc1)) && CONFIG_DISK_ACCESS_USDHC1
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc1), okay) && CONFIG_DISK_ACCESS_USDHC1
|
||||
mimxrt1064_evk_usdhc_pinmux(0, true, 2, 1);
|
||||
imxrt_usdhc_pinmux_cb_register(mimxrt1064_evk_usdhc_pinmux);
|
||||
#endif
|
||||
|
@ -275,7 +275,7 @@ static int mimxrt1064_evk_init(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
static int mimxrt1064_evk_phy_reset(struct device *dev)
|
||||
{
|
||||
/* RESET PHY chip. */
|
||||
|
@ -287,6 +287,6 @@ static int mimxrt1064_evk_phy_reset(struct device *dev)
|
|||
#endif
|
||||
|
||||
SYS_INIT(mimxrt1064_evk_init, PRE_KERNEL_1, 0);
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
SYS_INIT(mimxrt1064_evk_phy_reset, PRE_KERNEL_2, 0);
|
||||
#endif
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <fsl_gpio.h>
|
||||
#include <soc.h>
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(enet))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(enet), okay)
|
||||
static gpio_pin_config_t enet_gpio_config = {
|
||||
.direction = kGPIO_DigitalOutput,
|
||||
.outputLogic = 0,
|
||||
|
@ -17,7 +17,7 @@ static gpio_pin_config_t enet_gpio_config = {
|
|||
};
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usdhc1)) && CONFIG_DISK_ACCESS_USDHC1
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc1), okay) && CONFIG_DISK_ACCESS_USDHC1
|
||||
|
||||
/*Drive Strength Field: R0(260 Ohm @ 3.3V, 150 Ohm@1.8V, 240 Ohm for DDR)
|
||||
*Speed Field: medium(100MHz)
|
||||
|
@ -133,7 +133,7 @@ static int mm_swiftio_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
/* LPUART1 TX/RX */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_12_LPUART1_TX, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_13_LPUART1_RX, 0);
|
||||
|
@ -149,7 +149,7 @@ static int mm_swiftio_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpi2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c1), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL, 1);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA, 1);
|
||||
|
||||
|
@ -168,7 +168,7 @@ static int mm_swiftio_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpi2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c3), okay)
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_07_LPI2C3_SCL, 1);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_06_LPI2C3_SDA, 1);
|
||||
|
||||
|
@ -187,7 +187,7 @@ static int mm_swiftio_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpspi3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpspi3), okay)
|
||||
/* LPSPI3 SCK, SDO, SDI, PCS0 */
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_00_LPSPI3_SCK, 0);
|
||||
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_01_LPSPI3_SDO, 0);
|
||||
|
@ -215,7 +215,7 @@ static int mm_swiftio_init(struct device *dev)
|
|||
IOMUXC_SW_PAD_CTL_PAD_DSE(6));
|
||||
#endif
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usdhc1)) && CONFIG_DISK_ACCESS_USDHC1
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usdhc1), okay) && CONFIG_DISK_ACCESS_USDHC1
|
||||
mm_swiftio_usdhc_pinmux(0, true, 2, 1);
|
||||
imxrt_usdhc_pinmux_cb_register(mm_swiftio_usdhc_pinmux);
|
||||
#endif
|
||||
|
|
|
@ -15,23 +15,23 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F030R8 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F0_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F0_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PA11, STM32F0_PINMUX_FUNC_PA11_I2C2_SCL},
|
||||
{STM32_PIN_PA12, STM32F0_PINMUX_FUNC_PA12_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F0_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -39,7 +39,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F0_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32F0_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32F0_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
|
|
@ -15,28 +15,28 @@
|
|||
|
||||
/* pin assignments for NUCLEO_F070RB board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F0_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F0_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F0_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB11, STM32F0_PINMUX_FUNC_PB11_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PA5, STM32F0_PINMUX_FUNC_PA5_SPI1_SCK},
|
||||
{STM32_PIN_PA6, STM32F0_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32F0_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
{STM32_PIN_PB13, STM32F0_PINMUX_FUNC_PB13_SPI2_SCK},
|
||||
{STM32_PIN_PB14, STM32F0_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32F0_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
|
|
|
@ -14,33 +14,33 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F091RC board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32F0_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32F0_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PA11, STM32F0_PINMUX_FUNC_PA11_I2C2_SCL},
|
||||
{STM32_PIN_PA12, STM32F0_PINMUX_FUNC_PA12_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PA5, STM32F0_PINMUX_FUNC_PA5_SPI1_SCK},
|
||||
{STM32_PIN_PA6, STM32F0_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32F0_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
{STM32_PIN_PB13, STM32F0_PINMUX_FUNC_PB13_SPI2_SCK},
|
||||
{STM32_PIN_PB14, STM32F0_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32F0_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{STM32_PIN_PA0, STM32F0_PINMUX_FUNC_PA0_ADC_IN0},
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -14,22 +14,22 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F103RB board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F1_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F1_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F1_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F1_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_USART3_TX},
|
||||
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm1), okay)
|
||||
{STM32_PIN_PA8, STM32F1_PINMUX_FUNC_PA8_PWM1_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F1_PINMUX_FUNC_PA4_SPI1_MASTER_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -37,7 +37,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F1_PINMUX_FUNC_PA6_SPI1_MASTER_MISO},
|
||||
{STM32_PIN_PA7, STM32F1_PINMUX_FUNC_PA7_SPI1_MASTER_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32F1_PINMUX_FUNC_PB12_SPI2_MASTER_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -45,7 +45,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB14, STM32F1_PINMUX_FUNC_PB14_SPI2_MASTER_MISO},
|
||||
{STM32_PIN_PB15, STM32F1_PINMUX_FUNC_PB15_SPI2_MASTER_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{STM32_PIN_PA0, STM32F1_PINMUX_FUNC_PA0_ADC123_IN0},
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F207ZG board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PD8, STM32F2_PINMUX_FUNC_PD8_USART3_TX},
|
||||
{STM32_PIN_PD9, STM32F2_PINMUX_FUNC_PD9_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{STM32_PIN_PG14, STM32F2_PINMUX_FUNC_PG14_USART6_TX},
|
||||
{STM32_PIN_PG9, STM32F2_PINMUX_FUNC_PG9_USART6_RX},
|
||||
#endif
|
||||
|
@ -39,7 +39,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA11, STM32F2_PINMUX_FUNC_PA11_OTG_FS_DM},
|
||||
{STM32_PIN_PA12, STM32F2_PINMUX_FUNC_PA12_OTG_FS_DP},
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{STM32_PIN_PA0, STM32F2_PINMUX_FUNC_PA0_ADC123_IN0},
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -14,23 +14,23 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F302R8 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F3_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F3_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F3_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F3_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PC10, STM32F3_PINMUX_FUNC_PC10_USART3_TX},
|
||||
{STM32_PIN_PC11, STM32F3_PINMUX_FUNC_PC11_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F3_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F3_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32F3_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -38,10 +38,10 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB14, STM32F3_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32F3_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32F3_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{STM32_PIN_PA0, STM32F3_PINMUX_FUNC_PA0_ADC1_IN1},
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F303RE board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F3_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F3_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
|
|
|
@ -14,23 +14,23 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F334RB board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F3_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F3_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F3_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F3_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PB10, STM32F3_PINMUX_FUNC_PB10_USART3_TX},
|
||||
{STM32_PIN_PB11, STM32F3_PINMUX_FUNC_PB11_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F3_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F3_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F3_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -38,7 +38,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F3_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32F3_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm1), okay)
|
||||
{STM32_PIN_PA8, STM32F3_PINMUX_FUNC_PA8_PWM1_CH1},
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -14,22 +14,22 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F401RE board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -37,7 +37,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F4_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32F4_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32F4_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -45,7 +45,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB14, STM32F4_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32F4_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_ADC123_IN0},
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -14,28 +14,28 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F411RE board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB3, STM32F4_PINMUX_FUNC_PB3_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
{STM32_PIN_PA8, STM32F4_PINMUX_FUNC_PA8_I2C3_SCL},
|
||||
{STM32_PIN_PB4, STM32F4_PINMUX_FUNC_PB4_I2C3_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1)) || \
|
||||
DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2s1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay) || \
|
||||
DT_NODE_HAS_STATUS(DT_NODELABEL(i2s1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
|
|
@ -14,26 +14,26 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F412ZG board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
||||
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
||||
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#ifdef CONFIG_USB_DC_STM32
|
||||
{STM32_PIN_PA11, STM32F4_PINMUX_FUNC_PA11_OTG_FS_DM},
|
||||
{STM32_PIN_PA12, STM32F4_PINMUX_FUNC_PA12_OTG_FS_DP},
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
|
|
@ -14,26 +14,26 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F413ZH board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
||||
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
||||
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#ifdef CONFIG_USB_DC_STM32
|
||||
{STM32_PIN_PA11, STM32F4_PINMUX_FUNC_PA11_OTG_FS_DM},
|
||||
{STM32_PIN_PA12, STM32F4_PINMUX_FUNC_PA12_OTG_FS_DP},
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F429ZI board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PD8, STM32F4_PINMUX_FUNC_PD8_USART3_TX},
|
||||
{STM32_PIN_PD9, STM32F4_PINMUX_FUNC_PD9_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
||||
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm1), okay)
|
||||
{STM32_PIN_PE13, STM32F4_PINMUX_FUNC_PE13_PWM1_CH3},
|
||||
#endif
|
||||
#ifdef CONFIG_ETH_STM32_HAL
|
||||
|
@ -38,11 +38,11 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PG13, STM32F4_PINMUX_FUNC_PG13_ETH},
|
||||
{STM32_PIN_PB13, STM32F4_PINMUX_FUNC_PB13_ETH},
|
||||
#endif /* CONFIG_ETH_STM32_HAL */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
|
|
@ -14,27 +14,27 @@
|
|||
|
||||
/* pin assignments for stm32F446RE Nucleo board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB3, STM32F4_PINMUX_FUNC_PB3_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
{STM32_PIN_PA8, STM32F4_PINMUX_FUNC_PA8_I2C3_SCL},
|
||||
{STM32_PIN_PB4, STM32F4_PINMUX_FUNC_PB4_I2C3_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
|
|
@ -20,17 +20,17 @@
|
|||
* for the SPI_1 MOSI signal.
|
||||
*/
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{ STM32_PIN_PD5, STM32F7_PINMUX_FUNC_PD5_USART2_TX },
|
||||
{ STM32_PIN_PD6, STM32F7_PINMUX_FUNC_PD6_USART2_RX },
|
||||
{ STM32_PIN_PD4, STM32F7_PINMUX_FUNC_PD4_USART2_RTS },
|
||||
{ STM32_PIN_PD3, STM32F7_PINMUX_FUNC_PD3_USART2_CTS },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{ STM32_PIN_PD8, STM32F7_PINMUX_FUNC_PD8_USART3_TX },
|
||||
{ STM32_PIN_PD9, STM32F7_PINMUX_FUNC_PD9_USART3_RX },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{ STM32_PIN_PG14, STM32F7_PINMUX_FUNC_PG14_USART6_TX },
|
||||
{ STM32_PIN_PG9, STM32F7_PINMUX_FUNC_PG9_USART6_RX },
|
||||
#endif
|
||||
|
@ -49,14 +49,14 @@ static const struct pin_config pinconf[] = {
|
|||
{ STM32_PIN_PA11, STM32F7_PINMUX_FUNC_PA11_OTG_FS_DM },
|
||||
{ STM32_PIN_PA12, STM32F7_PINMUX_FUNC_PA12_OTG_FS_DP },
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{ STM32_PIN_PB8, STM32F7_PINMUX_FUNC_PB8_I2C1_SCL },
|
||||
{ STM32_PIN_PB9, STM32F7_PINMUX_FUNC_PB9_I2C1_SDA },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm1), okay)
|
||||
{ STM32_PIN_PE13, STM32F7_PINMUX_FUNC_PE13_PWM1_CH3 },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{ STM32_PIN_PA4, STM32F7_PINMUX_FUNC_PA4_SPI1_NSS },
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -64,11 +64,11 @@ static const struct pin_config pinconf[] = {
|
|||
{ STM32_PIN_PA6, STM32F7_PINMUX_FUNC_PA6_SPI1_MISO },
|
||||
{ STM32_PIN_PA7, STM32F7_PINMUX_FUNC_PA7_SPI1_MOSI },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay)
|
||||
{STM32_PIN_PD0, STM32F7_PINMUX_FUNC_PD0_CAN_RX},
|
||||
{STM32_PIN_PD1, STM32F7_PINMUX_FUNC_PD1_CAN_TX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{ STM32_PIN_PA0, STM32F7_PINMUX_FUNC_PA0_ADC123_IN0 },
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -20,17 +20,17 @@
|
|||
* for the SPI_1 MOSI signal.
|
||||
*/
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{ STM32_PIN_PD5, STM32F7_PINMUX_FUNC_PD5_USART2_TX },
|
||||
{ STM32_PIN_PD6, STM32F7_PINMUX_FUNC_PD6_USART2_RX },
|
||||
{ STM32_PIN_PD4, STM32F7_PINMUX_FUNC_PD4_USART2_RTS },
|
||||
{ STM32_PIN_PD3, STM32F7_PINMUX_FUNC_PD3_USART2_CTS },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{ STM32_PIN_PD8, STM32F7_PINMUX_FUNC_PD8_USART3_TX },
|
||||
{ STM32_PIN_PD9, STM32F7_PINMUX_FUNC_PD9_USART3_RX },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{ STM32_PIN_PG14, STM32F7_PINMUX_FUNC_PG14_USART6_TX },
|
||||
{ STM32_PIN_PG9, STM32F7_PINMUX_FUNC_PG9_USART6_RX },
|
||||
#endif
|
||||
|
@ -49,14 +49,14 @@ static const struct pin_config pinconf[] = {
|
|||
{ STM32_PIN_PA11, STM32F7_PINMUX_FUNC_PA11_OTG_FS_DM },
|
||||
{ STM32_PIN_PA12, STM32F7_PINMUX_FUNC_PA12_OTG_FS_DP },
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{ STM32_PIN_PB8, STM32F7_PINMUX_FUNC_PB8_I2C1_SCL },
|
||||
{ STM32_PIN_PB9, STM32F7_PINMUX_FUNC_PB9_I2C1_SDA },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm1), okay)
|
||||
{ STM32_PIN_PE13, STM32F7_PINMUX_FUNC_PE13_PWM1_CH3 },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{ STM32_PIN_PA4, STM32F7_PINMUX_FUNC_PA4_SPI1_NSS },
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
|
|
@ -20,17 +20,17 @@
|
|||
* for the SPI_1 MOSI signal.
|
||||
*/
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{ STM32_PIN_PD5, STM32F7_PINMUX_FUNC_PD5_USART2_TX },
|
||||
{ STM32_PIN_PD6, STM32F7_PINMUX_FUNC_PD6_USART2_RX },
|
||||
{ STM32_PIN_PD4, STM32F7_PINMUX_FUNC_PD4_USART2_RTS },
|
||||
{ STM32_PIN_PD3, STM32F7_PINMUX_FUNC_PD3_USART2_CTS },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{ STM32_PIN_PD8, STM32F7_PINMUX_FUNC_PD8_USART3_TX },
|
||||
{ STM32_PIN_PD9, STM32F7_PINMUX_FUNC_PD9_USART3_RX },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{ STM32_PIN_PG14, STM32F7_PINMUX_FUNC_PG14_USART6_TX },
|
||||
{ STM32_PIN_PG9, STM32F7_PINMUX_FUNC_PG9_USART6_RX },
|
||||
#endif
|
||||
|
@ -49,14 +49,14 @@ static const struct pin_config pinconf[] = {
|
|||
{ STM32_PIN_PA11, STM32F7_PINMUX_FUNC_PA11_OTG_FS_DM },
|
||||
{ STM32_PIN_PA12, STM32F7_PINMUX_FUNC_PA12_OTG_FS_DP },
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{ STM32_PIN_PB8, STM32F7_PINMUX_FUNC_PB8_I2C1_SCL },
|
||||
{ STM32_PIN_PB9, STM32F7_PINMUX_FUNC_PB9_I2C1_SDA },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm1), okay)
|
||||
{ STM32_PIN_PE13, STM32F7_PINMUX_FUNC_PE13_PWM1_CH3 },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{ STM32_PIN_PA4, STM32F7_PINMUX_FUNC_PA4_SPI1_NSS },
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -64,11 +64,11 @@ static const struct pin_config pinconf[] = {
|
|||
{ STM32_PIN_PA6, STM32F7_PINMUX_FUNC_PA6_SPI1_MISO },
|
||||
{ STM32_PIN_PA7, STM32F7_PINMUX_FUNC_PA7_SPI1_MOSI },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay)
|
||||
{STM32_PIN_PD0, STM32F7_PINMUX_FUNC_PD0_CAN_RX},
|
||||
{STM32_PIN_PD1, STM32F7_PINMUX_FUNC_PD1_CAN_TX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{ STM32_PIN_PA0, STM32F7_PINMUX_FUNC_PA0_ADC123_IN0 },
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
/* pin assignments for NUCLEO-G071RB board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32G0_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32G0_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
|
|
|
@ -14,22 +14,22 @@
|
|||
|
||||
/* pin assignments for NUCLEO-G431RB board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PC4, STM32G4X_PINMUX_FUNC_PC4_USART1_TX},
|
||||
{STM32_PIN_PC5, STM32G4X_PINMUX_FUNC_PC5_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
{STM32_PIN_PA2, STM32G4X_PINMUX_FUNC_PA2_LPUART1_TX},
|
||||
{STM32_PIN_PA3, STM32G4X_PINMUX_FUNC_PA3_LPUART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32G4X_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32G4X_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA5, STM32G4X_PINMUX_FUNC_PA5_PWM2_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
/* SPI1 on the Arduino connectors pins A2, D3, D11, D12 */
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32G4X_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
|
@ -39,7 +39,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32G4X_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32G4X_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
/* SPI2 on the ST Morpho Connector CN10 pins 16, 30, 28, 26*/
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32G4X_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
|
@ -48,7 +48,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB14, STM32G4X_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32G4X_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi3), okay)
|
||||
/* SPI3 on the ST Morpho Connector CN7 pins 17, 1, 2, 3*/
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA15, STM32G4X_PINMUX_FUNC_PA15_SPI3_NSS},
|
||||
|
|
|
@ -14,22 +14,22 @@
|
|||
|
||||
/* pin assignments for NUCLEO-G474RE board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PC4, STM32G4X_PINMUX_FUNC_PC4_USART1_TX},
|
||||
{STM32_PIN_PC5, STM32G4X_PINMUX_FUNC_PC5_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
{STM32_PIN_PA2, STM32G4X_PINMUX_FUNC_PA2_LPUART1_TX},
|
||||
{STM32_PIN_PA3, STM32G4X_PINMUX_FUNC_PA3_LPUART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32G4X_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32G4X_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA5, STM32G4X_PINMUX_FUNC_PA5_PWM2_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
/* SPI1 on the Arduino connectors pins A2, D3, D11, D12 */
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32G4X_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
|
@ -39,7 +39,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32G4X_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32G4X_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
/* SPI2 on the ST Morpho Connector CN10 pins 16, 30, 28, 26*/
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32G4X_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
|
@ -48,7 +48,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB14, STM32G4X_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32G4X_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi3), okay)
|
||||
/* SPI3 on the ST Morpho Connector CN7 pins 17, 1, 2, 3*/
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA15, STM32G4X_PINMUX_FUNC_PA15_SPI3_NSS},
|
||||
|
|
|
@ -14,18 +14,18 @@
|
|||
|
||||
/* NUCLEO-H743ZI pin configurations */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{ STM32_PIN_PD8, STM32H7_PINMUX_FUNC_PD8_USART3_TX },
|
||||
{ STM32_PIN_PD9, STM32H7_PINMUX_FUNC_PD9_USART3_RX },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{ STM32_PIN_PB8, STM32H7_PINMUX_FUNC_PB8_I2C1_SCL },
|
||||
{ STM32_PIN_PB9, STM32H7_PINMUX_FUNC_PB9_I2C1_SDA },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm12))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm12), okay)
|
||||
{ STM32_PIN_PB14, STM32H7_PINMUX_FUNC_PB14_PWM12_CH1 },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1_2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1_2), okay)
|
||||
{ STM32_PIN_PA3, STM32H7_PINMUX_FUNC_PA3_ADC12_INP15 },
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -14,19 +14,19 @@
|
|||
|
||||
/* pin assignments for NUCLEO-L053R8 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32L0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32L0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PA5, STM32L0_PINMUX_FUNC_PA5_SPI1_SCK},
|
||||
{STM32_PIN_PA6, STM32L0_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32L0_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
|
|
|
@ -14,27 +14,27 @@
|
|||
|
||||
/* pin assignments for NUCLEO-L073RZ board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32L0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32L0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PA5, STM32L0_PINMUX_FUNC_PA5_SPI1_SCK},
|
||||
{STM32_PIN_PA6, STM32L0_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32L0_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{STM32_PIN_PA0, STM32L0_PINMUX_FUNC_PA0_ADC_IN0},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(dac1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(dac1), okay)
|
||||
{STM32_PIN_PA4, STM32L0_PINMUX_FUNC_PA4_DAC_OUT1},
|
||||
#endif /* dac1 */
|
||||
};
|
||||
|
|
|
@ -13,15 +13,15 @@
|
|||
#include <pinmux/stm32/pinmux_stm32.h>
|
||||
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L1X_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32L1X_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32L1X_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32L1X_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{STM32_PIN_PA0, STM32L1X_PINMUX_FUNC_PA0_ADC1_IN0},
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -15,22 +15,22 @@
|
|||
|
||||
/* pin assignments for NUCLEO-L432KC board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32L4X_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32L4X_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA15, STM32L4X_PINMUX_FUNC_PA15_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32L4X_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32L4X_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -38,7 +38,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32L4X_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32L4X_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay)
|
||||
{STM32_PIN_PA11, STM32L4X_PINMUX_FUNC_PA11_CAN_RX},
|
||||
{STM32_PIN_PA12, STM32L4X_PINMUX_FUNC_PA12_CAN_TX},
|
||||
#endif
|
||||
|
|
|
@ -14,22 +14,22 @@
|
|||
|
||||
/* pin assignments for NUCLEO-L452RE board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32L4X_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32L4X_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32L4X_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32L4X_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32L4X_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -37,7 +37,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32L4X_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32L4X_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay)
|
||||
{STM32_PIN_PA11, STM32L4X_PINMUX_FUNC_PA11_CAN_RX},
|
||||
{STM32_PIN_PA12, STM32L4X_PINMUX_FUNC_PA12_CAN_TX},
|
||||
#endif
|
||||
|
|
|
@ -15,30 +15,30 @@
|
|||
|
||||
/* pin assignments for NUCLEO-L476RG board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32L4X_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32L4X_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32L4X_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PB10, STM32L4X_PINMUX_FUNC_PB10_USART3_TX},
|
||||
{STM32_PIN_PB11, STM32L4X_PINMUX_FUNC_PB11_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32L4X_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32L4X_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
{STM32_PIN_PC0, STM32L4X_PINMUX_FUNC_PC0_I2C3_SCL},
|
||||
{STM32_PIN_PC1, STM32L4X_PINMUX_FUNC_PC1_I2C3_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32L4X_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
/* SPI1 on the Arduino connectors pins A2, D3, D12, D11 */
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32L4X_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
|
@ -48,7 +48,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32L4X_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32L4X_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
/* SPI2 on the ST Morpho Connector CN10 pins 16, 30, 28, 26*/
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32L4X_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
|
@ -57,7 +57,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB14, STM32L4X_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32L4X_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi3), okay)
|
||||
/* SPI3 on the ST Morpho Connector CN7 pins 17, 1, 2, 3*/
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA15, STM32L4X_PINMUX_FUNC_PA15_SPI3_NSS},
|
||||
|
@ -66,7 +66,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PC11, STM32L4X_PINMUX_FUNC_PC11_SPI3_MISO},
|
||||
{STM32_PIN_PC12, STM32L4X_PINMUX_FUNC_PC12_SPI3_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{STM32_PIN_PC0, STM32L4X_PINMUX_FUNC_PC0_ADC123_IN1},
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -14,32 +14,32 @@
|
|||
|
||||
/* pin assignments for NUCLEO-L496ZG board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PD5, STM32L4X_PINMUX_FUNC_PD5_USART2_TX},
|
||||
{STM32_PIN_PD6, STM32L4X_PINMUX_FUNC_PD6_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
{STM32_PIN_PG7, STM32L4X_PINMUX_FUNC_PG7_LPUART1_TX},
|
||||
{STM32_PIN_PG8, STM32L4X_PINMUX_FUNC_PG8_LPUART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32L4X_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32L4X_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PA5, STM32L4X_PINMUX_FUNC_PA5_SPI1_SCK},
|
||||
{STM32_PIN_PA6, STM32L4X_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32L4X_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm1), okay)
|
||||
{STM32_PIN_PE9, STM32L4X_PINMUX_FUNC_PE9_PWM1_CH1},
|
||||
{STM32_PIN_PE11, STM32L4X_PINMUX_FUNC_PE11_PWM1_CH2},
|
||||
{STM32_PIN_PE13, STM32L4X_PINMUX_FUNC_PE13_PWM1_CH3},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32L4X_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm15))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm15), okay)
|
||||
{STM32_PIN_PB14, STM32L4X_PINMUX_FUNC_PB14_PWM15_CH1},
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -14,30 +14,30 @@
|
|||
|
||||
/* pin assignments for NUCLEO-L4R5ZI board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32L4X_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32L4X_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
{STM32_PIN_PG7, STM32L4X_PINMUX_FUNC_PG7_LPUART1_TX},
|
||||
{STM32_PIN_PG8, STM32L4X_PINMUX_FUNC_PG8_LPUART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32L4X_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PD8, STM32L4X_PINMUX_FUNC_PD8_USART3_TX},
|
||||
{STM32_PIN_PD9, STM32L4X_PINMUX_FUNC_PD9_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32L4X_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
/* SPI1 on the Arduino connectors pins A2, D3, D12, D11 */
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32L4X_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
|
@ -47,7 +47,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32L4X_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32L4X_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
/* SPI2 on the ST Morpho Connector CN10 pins 16, 30, 28, 26*/
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32L4X_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
|
@ -56,7 +56,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB14, STM32L4X_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32L4X_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi3), okay)
|
||||
/* SPI3 on the ST Morpho Connector CN7 pins 17, 1, 2, 3*/
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA15, STM32L4X_PINMUX_FUNC_PA15_SPI3_NSS},
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
/* pin assignments for NUCLEO-L552ZE-Q board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
{STM32_PIN_PG7, STM32L5X_PINMUX_FUNC_PG7_LPUART1_TX},
|
||||
{STM32_PIN_PG8, STM32L5X_PINMUX_FUNC_PG8_LPUART1_RX},
|
||||
#endif
|
||||
|
|
|
@ -14,23 +14,23 @@
|
|||
|
||||
/* pin assignments for NUCLEO-WB55RG board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB7, STM32WBX_PINMUX_FUNC_PB7_USART1_RX},
|
||||
{STM32_PIN_PB6, STM32WBX_PINMUX_FUNC_PB6_USART1_TX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
{STM32_PIN_PA2, STM32WBX_PINMUX_FUNC_PA2_LPUART1_TX},
|
||||
{STM32_PIN_PA3, STM32WBX_PINMUX_FUNC_PA3_LPUART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32WBX_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32WBX_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
{STM32_PIN_PC0, STM32WBX_PINMUX_FUNC_PC0_I2C3_SCL},
|
||||
{STM32_PIN_PC1, STM32WBX_PINMUX_FUNC_PC1_I2C3_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32WBX_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -38,13 +38,13 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32WBX_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32WBX_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32WBX_PINMUX_FUNC_PA0_TMR2_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{STM32_PIN_PC2, STM32WBX_PINMUX_FUNC_PC2_ADC1_IN3},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usb))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usb), okay)
|
||||
{STM32_PIN_PA11, STM32WBX_PINMUX_FUNC_PA11_USB_DM},
|
||||
{STM32_PIN_PA12, STM32WBX_PINMUX_FUNC_PA12_USB_DP},
|
||||
#endif
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
|
||||
/* pin assignments for OLIMEX-STM32-E407 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_USART3_TX},
|
||||
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{STM32_PIN_PC6, STM32F4_PINMUX_FUNC_PC6_USART6_TX},
|
||||
{STM32_PIN_PC7, STM32F4_PINMUX_FUNC_PC7_USART6_RX},
|
||||
#endif
|
||||
|
@ -41,14 +41,14 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_ETH},
|
||||
#endif /* CONFIG_ETH_STM32_HAL */
|
||||
#ifdef CONFIG_USB_DC_STM32
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(0, st_stm32_otgfs))
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(0, st_stm32_otgfs), okay)
|
||||
{STM32_PIN_PA11, STM32F4_PINMUX_FUNC_PA11_OTG_FS_DM},
|
||||
{STM32_PIN_PA12, STM32F4_PINMUX_FUNC_PA12_OTG_FS_DP},
|
||||
#endif /* DT_HAS_NODE_STATUS_OKAY(DT_INST(0, st_stm32_otgfs)) */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_INST(0, st_stm32_otghs))
|
||||
#endif /* DT_NODE_HAS_STATUS(DT_INST(0, st_stm32_otgfs), okay) */
|
||||
#if DT_NODE_HAS_STATUS(DT_INST(0, st_stm32_otghs), okay)
|
||||
{STM32_PIN_PB14, STM32F4_PINMUX_FUNC_PB14_OTG_HS_DM},
|
||||
{STM32_PIN_PB15, STM32F4_PINMUX_FUNC_PB15_OTG_HS_DP},
|
||||
#endif /* DT_HAS_NODE_STATUS_OKAY(DT_INST(0, st_stm32_otghs)) */
|
||||
#endif /* DT_NODE_HAS_STATUS(DT_INST(0, st_stm32_otghs), okay) */
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
};
|
||||
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
|
||||
/* pin assignments for OLIMEX-STM32-H407 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_USART3_TX},
|
||||
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{STM32_PIN_PC6, STM32F4_PINMUX_FUNC_PC6_USART6_TX},
|
||||
{STM32_PIN_PC7, STM32F4_PINMUX_FUNC_PC7_USART6_RX},
|
||||
#endif
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
/* pin assignments for OLIMEX-STM32-P405 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay)
|
||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_CAN1_RX},
|
||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_CAN1_TX},
|
||||
#endif
|
||||
|
|
|
@ -15,27 +15,27 @@
|
|||
|
||||
/* pin assignments for OLIMEXINO-STM32 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F1_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F1_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F1_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F1_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_USART3_TX},
|
||||
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32F1_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32F1_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F1_PINMUX_FUNC_PA4_SPI1_MASTER_NSS_OE},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -43,7 +43,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F1_PINMUX_FUNC_PA6_SPI1_MASTER_MISO},
|
||||
{STM32_PIN_PA7, STM32F1_PINMUX_FUNC_PA7_SPI1_MASTER_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32F1_PINMUX_FUNC_PB12_SPI2_MASTER_NSS_OE},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -51,14 +51,14 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB14, STM32F1_PINMUX_FUNC_PB14_SPI2_MASTER_MISO},
|
||||
{STM32_PIN_PB15, STM32F1_PINMUX_FUNC_PB15_SPI2_MASTER_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm1), okay)
|
||||
{STM32_PIN_PA8, STM32F1_PINMUX_FUNC_PA8_PWM1_CH1},
|
||||
#endif
|
||||
#ifdef CONFIG_USB_DC_STM32
|
||||
{STM32_PIN_PA11, STM32F1_PINMUX_FUNC_PA11_USB_DM},
|
||||
{STM32_PIN_PA12, STM32F1_PINMUX_FUNC_PA12_USB_DP},
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay)
|
||||
{STM32_PIN_PB8, STM32F1_PINMUX_FUNC_PB8_CAN_RX},
|
||||
{STM32_PIN_PB9, STM32F1_PINMUX_FUNC_PB9_CAN_TX},
|
||||
#endif
|
||||
|
@ -69,7 +69,7 @@ static int pinmux_stm32_init(struct device *port)
|
|||
ARG_UNUSED(port);
|
||||
|
||||
stm32_setup_pins(pinconf, ARRAY_SIZE(pinconf));
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay)
|
||||
/* Set pin-mux so that CAN1 is on PB8 and PB9 */
|
||||
AFIO->MAPR |= AFIO_MAPR_CAN_REMAP_REMAP2;
|
||||
#endif
|
||||
|
|
|
@ -12,7 +12,7 @@ static int pico_pi_m4_pinmux_init(struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart2), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_UART2_RX_DATA =
|
||||
IOMUXC_SW_MUX_CTL_PAD_UART2_RX_DATA_MUX_MODE(0);
|
||||
IOMUXC_SW_MUX_CTL_PAD_UART2_TX_DATA =
|
||||
|
@ -34,7 +34,7 @@ static int pico_pi_m4_pinmux_init(struct device *dev)
|
|||
#endif
|
||||
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart5))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart5), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C4_SCL =
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C4_SCL_MUX_MODE(1);
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C4_SDA =
|
||||
|
@ -58,7 +58,7 @@ static int pico_pi_m4_pinmux_init(struct device *dev)
|
|||
#endif
|
||||
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart6), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_EPDC_DATA08 =
|
||||
IOMUXC_SW_MUX_CTL_PAD_EPDC_DATA08_MUX_MODE(3);
|
||||
IOMUXC_SW_MUX_CTL_PAD_EPDC_DATA09 =
|
||||
|
@ -81,7 +81,7 @@ static int pico_pi_m4_pinmux_init(struct device *dev)
|
|||
#endif
|
||||
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_UART1_RX_DATA =
|
||||
IOMUXC_SW_MUX_CTL_PAD_UART1_RX_DATA_MUX_MODE(1) |
|
||||
IOMUXC_SW_MUX_CTL_PAD_UART1_RX_DATA_SION_MASK;
|
||||
|
@ -106,7 +106,7 @@ static int pico_pi_m4_pinmux_init(struct device *dev)
|
|||
#endif
|
||||
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C2_SCL =
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C2_SCL_MUX_MODE(0) |
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C2_SCL_SION_MASK;
|
||||
|
@ -131,7 +131,7 @@ static int pico_pi_m4_pinmux_init(struct device *dev)
|
|||
#endif
|
||||
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C3_SCL =
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C3_SCL_MUX_MODE(0) |
|
||||
IOMUXC_SW_MUX_CTL_PAD_I2C3_SCL_SION_MASK;
|
||||
|
@ -156,7 +156,7 @@ static int pico_pi_m4_pinmux_init(struct device *dev)
|
|||
#endif
|
||||
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c4), okay)
|
||||
IOMUXC_SW_MUX_CTL_PAD_SAI1_RX_SYNC =
|
||||
IOMUXC_SW_MUX_CTL_PAD_SAI1_RX_SYNC_MUX_MODE(3) |
|
||||
IOMUXC_SW_MUX_CTL_PAD_SAI1_RX_SYNC_SION_MASK;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <init.h>
|
||||
|
||||
#if defined CONFIG_PWM && DT_HAS_NODE_STATUS_OKAY(DT_INST(0, atmel_sam_pwm))
|
||||
#if defined CONFIG_PWM && DT_NODE_HAS_STATUS(DT_INST(0, atmel_sam_pwm), okay)
|
||||
/* PWM on EXT1 connector, pin 7, channel 0, inverted */
|
||||
static const struct soc_gpio_pin pwm_ext1_pin7 = {
|
||||
PIO_PA0A_PWM0_PWMH0, PIOA, ID_PIOA, SOC_GPIO_FUNC_A
|
||||
|
@ -27,7 +27,7 @@ static int sam_e70_xplained_init(struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#if defined CONFIG_PWM && DT_HAS_NODE_STATUS_OKAY(DT_INST(0, atmel_sam_pwm))
|
||||
#if defined CONFIG_PWM && DT_NODE_HAS_STATUS(DT_INST(0, atmel_sam_pwm), okay)
|
||||
soc_gpio_configure(&pwm_ext1_pin7);
|
||||
soc_gpio_configure(&pwm_ext2_pin7);
|
||||
soc_gpio_configure(&pwm_ext2_pin8);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <init.h>
|
||||
|
||||
#if defined CONFIG_PWM && DT_HAS_NODE_STATUS_OKAY(DT_INST(0, atmel_sam_pwm))
|
||||
#if defined CONFIG_PWM && DT_NODE_HAS_STATUS(DT_INST(0, atmel_sam_pwm), okay)
|
||||
/* PWM on EXT1 connector, pin 7, channel 0, inverted */
|
||||
static const struct soc_gpio_pin pwm_ext1_pin7 = {
|
||||
PIO_PA0A_PWM0_PWMH0, PIOA, ID_PIOA, SOC_GPIO_FUNC_A
|
||||
|
@ -28,7 +28,7 @@ static int sam_v71_xplained_init(struct device *dev)
|
|||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
#if defined CONFIG_PWM && DT_HAS_NODE_STATUS_OKAY(DT_INST(0, atmel_sam_pwm))
|
||||
#if defined CONFIG_PWM && DT_NODE_HAS_STATUS(DT_INST(0, atmel_sam_pwm), okay)
|
||||
soc_gpio_configure(&pwm_ext1_pin7);
|
||||
soc_gpio_configure(&pwm_ext2_pin7);
|
||||
soc_gpio_configure(&pwm_ext2_pin8);
|
||||
|
|
|
@ -14,36 +14,36 @@
|
|||
|
||||
/* pin assignments for SensorTile.box board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32L4X_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32L4X_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32L4X_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
{STM32_PIN_PG7, STM32L4X_PINMUX_FUNC_PG7_I2C3_SCL},
|
||||
{STM32_PIN_PG8, STM32L4X_PINMUX_FUNC_PG8_I2C3_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PE12, STM32L4X_PINMUX_FUNC_PE12_SPI1_NSS},
|
||||
{STM32_PIN_PE13, STM32L4X_PINMUX_FUNC_PE13_SPI1_SCK},
|
||||
{STM32_PIN_PE14, STM32L4X_PINMUX_FUNC_PE14_SPI1_MISO},
|
||||
{STM32_PIN_PE15, STM32L4X_PINMUX_FUNC_PE15_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
/* SPI2 on the ST Morpho Connector CN10 pins 16, 30, 28, 26*/
|
||||
{STM32_PIN_PB12, STM32L4X_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
{STM32_PIN_PB13, STM32L4X_PINMUX_FUNC_PB13_SPI2_SCK},
|
||||
{STM32_PIN_PB14, STM32L4X_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32L4X_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi3), okay)
|
||||
{STM32_PIN_PA15, STM32L4X_PINMUX_FUNC_PA15_SPI3_NSS},
|
||||
{STM32_PIN_PB3, STM32L4X_PINMUX_FUNC_PB3_SPI3_SCK},
|
||||
{STM32_PIN_PB4, STM32L4X_PINMUX_FUNC_PB4_SPI3_MISO},
|
||||
|
|
|
@ -14,14 +14,14 @@
|
|||
|
||||
/* pin assignments for STEVAL-FCU001V1 */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB3, STM32F4_PINMUX_FUNC_PB3_I2C2_SDA},
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
#endif
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
/* pin assignments for STM3210C-EVAL board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PD5, STM32F1_PINMUX_FUNC_PD5_USART2_TX},
|
||||
{STM32_PIN_PD6, STM32F1_PINMUX_FUNC_PD6_USART2_RX},
|
||||
#endif
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
/* pin assignments for STM32373C-EVAL board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PD5, STM32F3_PINMUX_FUNC_PD5_USART2_TX},
|
||||
{STM32_PIN_PD6, STM32F3_PINMUX_FUNC_PD6_USART2_RX},
|
||||
#endif
|
||||
|
|
|
@ -14,30 +14,30 @@
|
|||
|
||||
/* pin assignments for STM32_MIN_DEV board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F1_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F1_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F1_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F1_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_USART3_TX},
|
||||
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32F1_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32F1_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F1_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB11, STM32F1_PINMUX_FUNC_PB11_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm1), okay)
|
||||
{STM32_PIN_PA8, STM32F1_PINMUX_FUNC_PA8_PWM1_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F1_PINMUX_FUNC_PA4_SPI1_MASTER_NSS_OE},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -45,7 +45,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F1_PINMUX_FUNC_PA6_SPI1_MASTER_MISO},
|
||||
{STM32_PIN_PA7, STM32F1_PINMUX_FUNC_PA7_SPI1_MASTER_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32F1_PINMUX_FUNC_PB12_SPI2_MASTER_NSS_OE},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -57,7 +57,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA11, STM32F1_PINMUX_FUNC_PA11_USB_DM},
|
||||
{STM32_PIN_PA12, STM32F1_PINMUX_FUNC_PA12_USB_DP},
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(adc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay)
|
||||
{STM32_PIN_PA0, STM32F1_PINMUX_FUNC_PA0_ADC123_IN0},
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
/* pin assignments for STM32F030 DEMO board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F0_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F0_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
/* pin assignments for STM32F072-EVAL board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PD5, STM32F0_PINMUX_FUNC_PD5_USART2_TX},
|
||||
{STM32_PIN_PD6, STM32F0_PINMUX_FUNC_PD6_USART2_RX},
|
||||
#endif
|
||||
|
|
|
@ -15,24 +15,24 @@
|
|||
|
||||
/* pin assignments for STM32F072B-DISCO board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32F0_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32F0_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F0_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB11, STM32F0_PINMUX_FUNC_PB11_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PB3, STM32F0_PINMUX_FUNC_PB3_SPI1_SCK},
|
||||
{STM32_PIN_PB4, STM32F0_PINMUX_FUNC_PB4_SPI1_MISO},
|
||||
{STM32_PIN_PB5, STM32F0_PINMUX_FUNC_PB5_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay)
|
||||
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_CAN_RX},
|
||||
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_CAN_TX},
|
||||
#endif
|
||||
|
|
|
@ -15,11 +15,11 @@
|
|||
|
||||
/* pin assignments for STM32F0DISCOVERY board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F0_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F0_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
|
|
|
@ -14,23 +14,23 @@
|
|||
|
||||
/* pin assignments for STM32F3DISCOVERY board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PC4, STM32F3_PINMUX_FUNC_PC4_USART1_TX},
|
||||
{STM32_PIN_PC5, STM32F3_PINMUX_FUNC_PC5_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F3_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F3_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32F3_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32F3_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PA9, STM32F3_PINMUX_FUNC_PA9_I2C2_SCL},
|
||||
{STM32_PIN_PA10, STM32F3_PINMUX_FUNC_PA10_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F3_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -38,7 +38,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F3_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32F3_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32F3_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -50,7 +50,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA11, STM32F3_PINMUX_FUNC_PA11_USB_DM},
|
||||
{STM32_PIN_PA12, STM32F3_PINMUX_FUNC_PA12_USB_DP},
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay)
|
||||
{STM32_PIN_PD0, STM32F3_PINMUX_FUNC_PD0_CAN1_RX},
|
||||
{STM32_PIN_PD1, STM32F3_PINMUX_FUNC_PD1_CAN1_TX},
|
||||
#endif
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
/* pin assignments for STM32F411E-DISCO board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm4), okay)
|
||||
{STM32_PIN_PD12, STM32F4_PINMUX_FUNC_PD12_PWM4_CH1 },
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
/* pin assignments for STM32F412G-DISCO board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
|
||||
/* pin assignments for STM32F429I-DISC1 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi5))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi5), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PF6, STM32F4_PINMUX_FUNC_PF6_SPI5_MASTER_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -30,15 +30,15 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PF8, STM32F4_PINMUX_FUNC_PF8_SPI5_MASTER_MISO},
|
||||
{STM32_PIN_PF9, STM32F4_PINMUX_FUNC_PF9_SPI5_MASTER_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
{STM32_PIN_PA8, STM32F4_PINMUX_FUNC_PA8_I2C3_SCL},
|
||||
{STM32_PIN_PC9, STM32F4_PINMUX_FUNC_PC9_I2C3_SDA},
|
||||
#endif
|
||||
|
|
|
@ -14,19 +14,19 @@
|
|||
|
||||
/* pin assignments for STM32F469I-DISCO board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_USART3_TX},
|
||||
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{STM32_PIN_PG14, STM32F4_PINMUX_FUNC_PG14_USART6_TX},
|
||||
{STM32_PIN_PG9, STM32F4_PINMUX_FUNC_PG9_USART6_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
{STM32_PIN_PD3, STM32F4_PINMUX_FUNC_PD3_SPI2_SCK},
|
||||
{STM32_PIN_PB14, STM32F4_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32F4_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
|
|
|
@ -14,26 +14,26 @@
|
|||
|
||||
/* pin assignments for STM32F4DISCOVERY board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32F4_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#ifdef CONFIG_USB_DC_STM32
|
||||
{STM32_PIN_PA11, STM32F4_PINMUX_FUNC_PA11_OTG_FS_DM},
|
||||
{STM32_PIN_PA12, STM32F4_PINMUX_FUNC_PA12_OTG_FS_DP},
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay)
|
||||
{STM32_PIN_PB8, STM32F4_PINMUX_FUNC_PB8_CAN1_RX},
|
||||
{STM32_PIN_PB9, STM32F4_PINMUX_FUNC_PB9_CAN1_TX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(can2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can2), okay)
|
||||
{STM32_PIN_PB5, STM32F4_PINMUX_FUNC_PB5_CAN2_RX},
|
||||
{STM32_PIN_PB13, STM32F4_PINMUX_FUNC_PB13_CAN2_TX},
|
||||
#endif
|
||||
|
|
|
@ -14,27 +14,27 @@
|
|||
|
||||
/* pin assignments for STM32F723E-DISCO board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32F7_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F7_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{STM32_PIN_PC6, STM32F7_PINMUX_FUNC_PC6_USART6_TX},
|
||||
{STM32_PIN_PC7, STM32F7_PINMUX_FUNC_PC7_USART6_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F7_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F7_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PH4, STM32F7_PINMUX_FUNC_PH4_I2C2_SCL},
|
||||
{STM32_PIN_PH5, STM32F7_PINMUX_FUNC_PH5_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
{STM32_PIN_PA8, STM32F7_PINMUX_FUNC_PA8_I2C3_SCL},
|
||||
{STM32_PIN_PH8, STM32F7_PINMUX_FUNC_PH8_I2C3_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PA5, STM32F7_PINMUX_FUNC_PA5_SPI1_SCK},
|
||||
{STM32_PIN_PB4, STM32F7_PINMUX_FUNC_PB4_SPI1_MISO},
|
||||
{STM32_PIN_PB5, STM32F7_PINMUX_FUNC_PB5_SPI1_MOSI},
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
|
||||
/* pin assignments for STM32F746G-DISCO board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F7_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32F7_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{STM32_PIN_PC6, STM32F7_PINMUX_FUNC_PC6_USART6_TX},
|
||||
{STM32_PIN_PC7, STM32F7_PINMUX_FUNC_PC7_USART6_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm3), okay)
|
||||
{STM32_PIN_PB4, STM32F7_PINMUX_FUNC_PB4_PWM3_CH1},
|
||||
#endif
|
||||
#ifdef CONFIG_ETH_STM32_HAL
|
||||
|
@ -38,15 +38,15 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PG13, STM32F7_PINMUX_FUNC_PG13_ETH},
|
||||
{STM32_PIN_PG14, STM32F7_PINMUX_FUNC_PG14_ETH},
|
||||
#endif /* CONFIG_ETH_STM32_HAL */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F7_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F7_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay)
|
||||
{STM32_PIN_PH7, STM32F7_PINMUX_FUNC_PH7_I2C3_SCL},
|
||||
{STM32_PIN_PH8, STM32F7_PINMUX_FUNC_PH8_I2C3_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PI0, STM32F7_PINMUX_FUNC_PI0_SPI2_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -58,7 +58,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA11, STM32F7_PINMUX_FUNC_PA11_OTG_FS_DM},
|
||||
{STM32_PIN_PA12, STM32F7_PINMUX_FUNC_PA12_OTG_FS_DP},
|
||||
#endif /* CONFIG_USB_DC_STM32 */
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(sdmmc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(sdmmc1), okay)
|
||||
{STM32_PIN_PC8, STM32F7_PINMUX_FUNC_PC8_SDMMC1_D0},
|
||||
{STM32_PIN_PC9, STM32F7_PINMUX_FUNC_PC9_SDMMC1_D1},
|
||||
{STM32_PIN_PC10, STM32F7_PINMUX_FUNC_PC10_SDMMC1_D2},
|
||||
|
|
|
@ -14,19 +14,19 @@
|
|||
|
||||
/* pin assignments for STM32F769I-DISCO board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32F7_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F7_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart6), okay)
|
||||
{STM32_PIN_PC6, STM32F7_PINMUX_FUNC_PC6_USART6_TX},
|
||||
{STM32_PIN_PC7, STM32F7_PINMUX_FUNC_PC7_USART6_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32F7_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F7_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
{STM32_PIN_PA12, STM32F7_PINMUX_FUNC_PA12_SPI2_SCK},
|
||||
{STM32_PIN_PB14, STM32F7_PINMUX_FUNC_PB14_SPI2_MISO},
|
||||
{STM32_PIN_PB15, STM32F7_PINMUX_FUNC_PB15_SPI2_MOSI},
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
/* pin assignments for STM32G0316-DISCO board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32G0_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32G0_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
|
@ -21,7 +21,7 @@ static int pinmux_stm32_init(struct device *port)
|
|||
{
|
||||
ARG_UNUSED(port);
|
||||
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
/* Remap PA11 to PA9 */
|
||||
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_SYSCFG);
|
||||
LL_SYSCFG_EnablePinRemap(LL_SYSCFG_PIN_RMP_PA11);
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
/* pin assignments for STM32H747I-DISCO board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32H7_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32H7_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart8))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart8), okay)
|
||||
{STM32_PIN_PJ8, STM32H7_PINMUX_FUNC_PJ8_UART8_TX},
|
||||
{STM32_PIN_PJ9, STM32H7_PINMUX_FUNC_PJ9_UART8_RX},
|
||||
#endif
|
||||
|
|
|
@ -13,27 +13,27 @@
|
|||
#include <pinmux/stm32/pinmux_stm32.h>
|
||||
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PA9, STM32L1X_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32L1X_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L1X_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32L1X_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{STM32_PIN_PB10, STM32L1X_PINMUX_FUNC_PB10_USART3_TX},
|
||||
{STM32_PIN_PB11, STM32L1X_PINMUX_FUNC_PB11_USART3_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB6, STM32L1X_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32L1X_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay)
|
||||
{STM32_PIN_PB10, STM32L1X_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB11, STM32L1X_PINMUX_FUNC_PB11_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32L1X_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -41,7 +41,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32L1X_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32L1X_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32L1X_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
/* pin assignments for STM32L476G DISCOVERY board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PD5, STM32L4X_PINMUX_FUNC_PD5_USART2_TX},
|
||||
{STM32_PIN_PD6, STM32L4X_PINMUX_FUNC_PD6_USART2_RX},
|
||||
#endif
|
||||
|
|
|
@ -15,31 +15,31 @@
|
|||
|
||||
/* pin assignments for STM32L476G-DISCO board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PG10, STM32L4X_PINMUX_FUNC_PG10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
{STM32_PIN_PA2, STM32L4X_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PD6, STM32L4X_PINMUX_FUNC_PD6_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(lpuart1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpuart1), okay)
|
||||
{STM32_PIN_PG7, STM32L4X_PINMUX_FUNC_PG7_LPUART1_TX},
|
||||
{STM32_PIN_PG8, STM32L4X_PINMUX_FUNC_PG8_LPUART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay)
|
||||
{STM32_PIN_PB8, STM32L4X_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay)
|
||||
{STM32_PIN_PA5, STM32L4X_PINMUX_FUNC_PA5_SPI1_SCK},
|
||||
{STM32_PIN_PB4, STM32L4X_PINMUX_FUNC_PB4_SPI1_MISO},
|
||||
{STM32_PIN_PB5, STM32L4X_PINMUX_FUNC_PB5_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(pwm2))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm2), okay)
|
||||
{STM32_PIN_PA0, STM32L4X_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(sdmmc1))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(sdmmc1), okay)
|
||||
{STM32_PIN_PC8, STM32L4X_PINMUX_FUNC_PC8_SDMMC1_D0},
|
||||
{STM32_PIN_PC9, STM32L4X_PINMUX_FUNC_PC9_SDMMC1_D1},
|
||||
{STM32_PIN_PC10, STM32L4X_PINMUX_FUNC_PC10_SDMMC1_D2},
|
||||
|
|
|
@ -14,19 +14,19 @@
|
|||
|
||||
/* pin assignments for STM32MP157c_dk2 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart3))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart3), okay)
|
||||
{ STM32_PIN_PB10, STM32MP1X_PINMUX_FUNC_PB10_USART3_TX },
|
||||
{ STM32_PIN_PB12, STM32MP1X_PINMUX_FUNC_PB12_USART3_RX },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(uart7))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart7), okay)
|
||||
{ STM32_PIN_PE7, STM32MP1X_PINMUX_FUNC_PE7_UART7_RX },
|
||||
{ STM32_PIN_PE8, STM32MP1X_PINMUX_FUNC_PE8_UART7_TX },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c5))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c5), okay)
|
||||
{ STM32_PIN_PA11, STM32MP1X_PINMUX_FUNC_PA11_I2C5_SCL },
|
||||
{ STM32_PIN_PA12, STM32MP1X_PINMUX_FUNC_PA12_I2C5_SDA },
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi4))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi4), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PE11, STM32MP1X_PINMUX_FUNC_PE11_SPI4_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -35,7 +35,7 @@ static const struct pin_config pinconf[] = {
|
|||
STM32_OSPEEDR_VERY_HIGH_SPEED},
|
||||
{STM32_PIN_PE14, STM32MP1X_PINMUX_FUNC_PE14_SPI4_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi5))
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi5), okay)
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PF6, STM32MP1X_PINMUX_FUNC_PF6_SPI5_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue