Last active
December 30, 2019 21:20
-
-
Save vanwinkeljan/d260d464d7393afa8772bd7c084d00f0 to your computer and use it in GitHub Desktop.
Zephyr nrf52840_pca10056 SPI1 as Arduino SPI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/boards/arm/nrf52840_pca10056/nrf52840_pca10056.dts b/boards/arm/nrf52840_pca10056/nrf52840_pca10056.dts | |
index 1ca951ae58..950a1f935e 100644 | |
--- a/boards/arm/nrf52840_pca10056/nrf52840_pca10056.dts | |
+++ b/boards/arm/nrf52840_pca10056/nrf52840_pca10056.dts | |
@@ -176,12 +176,12 @@ arduino_i2c: &i2c0 { | |
miso-pin = <29>; | |
}; | |
-&spi1 { | |
+arduino_spi: &spi1 { | |
compatible = "nordic,nrf-spi"; | |
status = "okay"; | |
- sck-pin = <31>; | |
- mosi-pin = <30>; | |
- miso-pin = <40>; | |
+ sck-pin = <47>; | |
+ miso-pin = <46>; | |
+ mosi-pin = <45>; | |
}; | |
&spi2 { | |
@@ -207,11 +207,11 @@ arduino_i2c: &i2c0 { | |
}; | |
}; | |
-arduino_spi: &spi3 { | |
+&spi3 { | |
status = "okay"; | |
- sck-pin = <47>; | |
- miso-pin = <46>; | |
- mosi-pin = <45>; | |
+ sck-pin = <31>; | |
+ mosi-pin = <30>; | |
+ miso-pin = <40>; | |
}; | |
&flash0 { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
nrf52840
preview development kits usedAAAA
engineering version of thenrf52840
whereSPI 3
is not working.The patch in these gist remaps the
arduino_spi
toSPI 1
.