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

janc 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 b51675645 hw/bsp: Define nrf51 DK LEDs and buttons
b51675645 is described below

commit b5167564504971b018ee390e6a1b81360e2ed858
Author: Michal Gorecki <michal.gore...@codecoup.pl>
AuthorDate: Mon Jun 17 17:46:01 2024 +0200

    hw/bsp: Define nrf51 DK LEDs and buttons
---
 hw/bsp/nordic_pca10028-16k/include/bsp/bsp.h | 11 ++++++++++-
 hw/bsp/nordic_pca10028/include/bsp/bsp.h     | 12 +++++++++++-
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/hw/bsp/nordic_pca10028-16k/include/bsp/bsp.h 
b/hw/bsp/nordic_pca10028-16k/include/bsp/bsp.h
index cd9643761..b36b13c7d 100644
--- a/hw/bsp/nordic_pca10028-16k/include/bsp/bsp.h
+++ b/hw/bsp/nordic_pca10028-16k/include/bsp/bsp.h
@@ -37,8 +37,17 @@ extern uint8_t _ram_start;
 #define RAM_SIZE        0x4000
 
 /* LED pins */
-#define LED_BLINK_PIN   (21)
+#define LED_1           (21)
 #define LED_2           (22)
+#define LED_3           (23)
+#define LED_4           (24)
+#define LED_BLINK_PIN   (LED_1)
+
+/* Buttons */
+#define BUTTON_1        (17)
+#define BUTTON_2        (18)
+#define BUTTON_3        (19)
+#define BUTTON_4        (20)
 
 #ifdef __cplusplus
 }
diff --git a/hw/bsp/nordic_pca10028/include/bsp/bsp.h 
b/hw/bsp/nordic_pca10028/include/bsp/bsp.h
index d7bca975d..65febcb19 100644
--- a/hw/bsp/nordic_pca10028/include/bsp/bsp.h
+++ b/hw/bsp/nordic_pca10028/include/bsp/bsp.h
@@ -37,8 +37,18 @@ extern uint8_t _ram_start;
 #define RAM_SIZE        0x8000
 
 /* LED pins */
-#define LED_BLINK_PIN   (21)
+#define LED_1           (21)
 #define LED_2           (22)
+#define LED_3           (23)
+#define LED_4           (24)
+#define LED_BLINK_PIN   (LED_1)
+
+/* Buttons */
+#define BUTTON_1        (17)
+#define BUTTON_2        (18)
+#define BUTTON_3        (19)
+#define BUTTON_4        (20)
+
 
 /* Arduino pins */
 #define ARDUINO_PIN_D0      12

Reply via email to