boards: arm: nucleo_l433rc_p: add Arduino SPI support
Add Arduino SPI support for nucleo_l433rc_p. Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
parent
1c1106db1e
commit
aaed982030
3 changed files with 11 additions and 1 deletions
|
@ -36,4 +36,4 @@
|
|||
};
|
||||
|
||||
arduino_i2c: &i2c1 {};
|
||||
arduino_spi: &spi1 {};
|
||||
arduino_spi: &spi2 {};
|
||||
|
|
|
@ -119,6 +119,8 @@ The Zephyr nucleo_l433rc_p board configuration supports the following hardware f
|
|||
+-----------+------------+-------------------------------------+
|
||||
| CAN | on-chip | can |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| SPI | on-chip | spi |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
.. note:: CAN feature requires CAN transceiver
|
||||
|
||||
|
@ -155,6 +157,8 @@ Default Zephyr Peripheral Mapping:
|
|||
- I2C_1_SDA : PB7
|
||||
- PWM_2_CH1 : PA0
|
||||
- LD4 : PB13
|
||||
- SPI_1: NSS/SCK/MISO/MOSI : PA4/PA5/PA6/PA7
|
||||
- SPI_2: NSS/SCK/MISO/MOSI : PA11/PB13/PB14/PB15 (Arduino SPI)
|
||||
|
||||
System Clock
|
||||
------------
|
||||
|
|
|
@ -82,6 +82,12 @@
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&spi2 {
|
||||
pinctrl-0 = <&spi2_sck_pb13 &spi2_miso_pb14 &spi2_mosi_pb15>;
|
||||
cs-gpios = <&gpioa 11 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
|
||||
clock-frequency = <I2C_BITRATE_FAST>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue