Skip to content
Permalink
Browse files

boards: nucleo_wb55rg: enable SPI1 on nucleo_wb55rg

enable SPI1 on nucleo_wb55rg

Signed-off-by: Rick Conrey <rick.conrey@witiproducts.com>
  • Loading branch information...
Rick Conrey authored and galak committed Jul 8, 2019
1 parent 3f58038 commit 9bf2e3fdcb2baec14c339a3339d38a664cddd102
@@ -37,6 +37,13 @@ config I2C_STM32_INTERRUPT

endif # I2C

if SPI

config SPI_1
default y

endif # SPI

if BT_DEBUG_MONITOR

config LPUART_1
@@ -162,6 +162,8 @@ The Zephyr nucleo_wb55rg board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+

Other hardware features are not yet supported on this Zephyr port.

@@ -190,6 +192,10 @@ Default Zephyr Peripheral Mapping:
- LD1 : PB5
- LD2 : PB0
- LD3 : PB1
- SPI_1_NSS : PA4 (arduino_spi)
- SPI_1_SCK : PA5 (arduino_spi)
- SPI_1_MISO : PA6 (arduino_spi)
- SPI_1_MOSI : PA7 (arduino_spi)

System Clock
------------
@@ -77,6 +77,10 @@ arduino_i2c: &i2c1 {
status = "okay";
};

arduino_spi: &spi1 {
status = "okay";
};

arduino_serial: &lpuart1 {
current-speed = <115200>;
status = "okay";
@@ -13,3 +13,4 @@ supported:
- arduino_i2c
- i2c
- counter
- spi
@@ -30,6 +30,12 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PC0, STM32WBX_PINMUX_FUNC_PC0_I2C3_SCL},
{STM32_PIN_PC1, STM32WBX_PINMUX_FUNC_PC1_I2C3_SDA},
#endif /* CONFIG_I2C_3 */
#ifdef CONFIG_SPI_1
{STM32_PIN_PA4, STM32WBX_PINMUX_FUNC_PA4_SPI1_NSS},
{STM32_PIN_PA5, STM32WBX_PINMUX_FUNC_PA5_SPI1_SCK},
{STM32_PIN_PA6, STM32WBX_PINMUX_FUNC_PA6_SPI1_MISO},
{STM32_PIN_PA7, STM32WBX_PINMUX_FUNC_PA7_SPI1_MOSI},
#endif /* CONFIG_SPI_1 */
};

static int pinmux_stm32_init(struct device *port)

0 comments on commit 9bf2e3f

Please sign in to comment.
You can’t perform that action at this time.