You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2019/06/19 06:08:49 UTC

[mynewt-core] branch master updated: hw/bsp: Fix Arduino pins in nordic boards

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 39aca9f  hw/bsp: Fix Arduino pins in nordic boards
39aca9f is described below

commit 39aca9f0d1db8e7dde1385dec8c522211fd1b4fa
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Fri May 31 15:52:36 2019 +0200

    hw/bsp: Fix Arduino pins in nordic boards
    
    Some pins were incorrect in pca10056 and pca10040 boards
---
 hw/bsp/nordic_pca10040/include/bsp/bsp.h | 28 ++++++++++++++--------------
 hw/bsp/nordic_pca10056/include/bsp/bsp.h | 12 ++++++------
 2 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/hw/bsp/nordic_pca10040/include/bsp/bsp.h b/hw/bsp/nordic_pca10040/include/bsp/bsp.h
index 0b5733e..c096b88 100644
--- a/hw/bsp/nordic_pca10040/include/bsp/bsp.h
+++ b/hw/bsp/nordic_pca10040/include/bsp/bsp.h
@@ -53,20 +53,20 @@ extern uint8_t _ram_start;
 #define BUTTON_4 (16)
 
 /* Arduino pins */
-#define ARDUINO_PIN_D0      1
-#define ARDUINO_PIN_D1      2
-#define ARDUINO_PIN_D2      3
-#define ARDUINO_PIN_D3      4
-#define ARDUINO_PIN_D4      5
-#define ARDUINO_PIN_D5      6
-#define ARDUINO_PIN_D6      7
-#define ARDUINO_PIN_D7      8
-#define ARDUINO_PIN_D8      10
-#define ARDUINO_PIN_D9      11
-#define ARDUINO_PIN_D10     12
-#define ARDUINO_PIN_D11     13
-#define ARDUINO_PIN_D12     14
-#define ARDUINO_PIN_D13     15
+#define ARDUINO_PIN_D0      11
+#define ARDUINO_PIN_D1      12
+#define ARDUINO_PIN_D2      13
+#define ARDUINO_PIN_D3      14
+#define ARDUINO_PIN_D4      15
+#define ARDUINO_PIN_D5      16
+#define ARDUINO_PIN_D6      17
+#define ARDUINO_PIN_D7      18
+#define ARDUINO_PIN_D8      19
+#define ARDUINO_PIN_D9      20
+#define ARDUINO_PIN_D10     22
+#define ARDUINO_PIN_D11     23
+#define ARDUINO_PIN_D12     24
+#define ARDUINO_PIN_D13     25
 #define ARDUINO_PIN_A0      3
 #define ARDUINO_PIN_A1      4
 #define ARDUINO_PIN_A2      28
diff --git a/hw/bsp/nordic_pca10056/include/bsp/bsp.h b/hw/bsp/nordic_pca10056/include/bsp/bsp.h
index a6470ea..9236457 100644
--- a/hw/bsp/nordic_pca10056/include/bsp/bsp.h
+++ b/hw/bsp/nordic_pca10056/include/bsp/bsp.h
@@ -59,12 +59,12 @@ extern uint8_t _ram_start;
 #define ARDUINO_PIN_D5      38
 #define ARDUINO_PIN_D6      39
 #define ARDUINO_PIN_D7      40
-#define ARDUINO_PIN_D8      41
-#define ARDUINO_PIN_D9      42
-#define ARDUINO_PIN_D10     43
-#define ARDUINO_PIN_D11     44
-#define ARDUINO_PIN_D12     45
-#define ARDUINO_PIN_D13     46
+#define ARDUINO_PIN_D8      42
+#define ARDUINO_PIN_D9      43
+#define ARDUINO_PIN_D10     44
+#define ARDUINO_PIN_D11     45
+#define ARDUINO_PIN_D12     46
+#define ARDUINO_PIN_D13     47
 #define ARDUINO_PIN_A0      3
 #define ARDUINO_PIN_A1      4
 #define ARDUINO_PIN_A2      28