boards: nucleo_f070rb: Update to default configuration guidelines

Update nucleo_f070rb to fit with default configuration guidelines:
-configure arduino spi and i2c
-update doc

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2019-01-04 15:41:48 +01:00 committed by Maureen Helm
parent dd580e6fca
commit 37b1e19548
3 changed files with 17 additions and 17 deletions

View file

@ -32,6 +32,9 @@ if SPI
config SPI_1
default y
config SPI_2
default y
config SPI_STM32_INTERRUPT
default y

View file

@ -121,20 +121,14 @@ Board connectors:
Default Zephyr Peripheral Mapping:
----------------------------------
- UART_1_TX : PA9
- UART_1_RX : PA10
- UART_2_TX : PA2
- UART_2_RX : PA3
- I2C1_SCL : PB8
- I2C1_SDA : PB9
- I2C2_SCL : PA11
- I2C2_SDA : PA12
- SPI1_SCK : PA5
- SPI1_MISO : PA6
- SPI1_MOSI : PA7
- SPI2_SCK : PB13
- SPI2_MISO : PB14
- SPI2_MOSI : PB15
- UART_1 TX/RX : PA9/PA10
- UART_2 TX/RX : PA2/PA3 (ST-Link Virtual COM Port)
- I2C1 SCL/SDA : PB8/PB9 (Arduino I2C)
- I2C2 SCL/SDA : PB10/PB11
- SPI1 SCK/MISO/MOSI : PA5/PA6/PA7 (Arduino SPI)
- SPI2 SCK/MISO/MOSI : PB13/PB14/PB15
- USER_PB : PC13
- LD1 : PA5
For mode details please refer to `STM32 Nucleo-64 board User Manual`_.
@ -188,4 +182,3 @@ References
.. _STM32 Nucleo-64 board User Manual:
http://www.st.com/resource/en/user_manual/dm00105823.pdf

View file

@ -54,7 +54,7 @@
status = "ok";
};
&i2c1 {
arduino_i2c: &i2c1 {
status = "ok";
clock-frequency = <I2C_BITRATE_FAST>;
};
@ -64,6 +64,10 @@
clock-frequency = <I2C_BITRATE_FAST>;
};
&spi1 {
arduino_spi: &spi1 {
status = "ok";
};
&spi2 {
status = "ok";
};