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 2021/11/07 00:14:45 UTC

[mynewt-core] branch master updated: bsp/black_vet6: Update bsp pin definitions

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 0049ecc  bsp/black_vet6: Update bsp pin definitions
0049ecc is described below

commit 0049eccd56ce6f9e4f87d27a5c8b32324616813c
Author: Jerzy Kasenberg <je...@apache.org>
AuthorDate: Fri Nov 5 23:13:18 2021 +0100

    bsp/black_vet6: Update bsp pin definitions
    
    This adds commonly used LED_1, LED_2, BUTTON_1, BUTTON_2
---
 hw/bsp/black_vet6/include/bsp/bsp.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/hw/bsp/black_vet6/include/bsp/bsp.h b/hw/bsp/black_vet6/include/bsp/bsp.h
index 5bed3ec..06f056b 100644
--- a/hw/bsp/black_vet6/include/bsp/bsp.h
+++ b/hw/bsp/black_vet6/include/bsp/bsp.h
@@ -41,7 +41,15 @@ extern uint8_t _ccram_start;
 #define CCRAM_SIZE      (64 * 1024)
 
 /* LED pins */
-#define LED_BLINK_PIN   MCU_GPIO_PORTA(6)
+#define LED_1           MCU_GPIO_PORTA(6)
+#define LED_2           MCU_GPIO_PORTA(7)
+#define LED_BLINK_PIN   LED_1
+
+/* Button pins */
+#define BUTTON_K0       MCU_GPIO_PORTE(4)
+#define BUTTON_K1       MCU_GPIO_PORTE(3)
+#define BUTTON_1        BUTTON_K0
+#define BUTTON_2        BUTTON_K1
 
 #ifdef __cplusplus
 }