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 2020/11/24 21:50:45 UTC

[mynewt-core] branch master updated: nucleo: Add missing BUTTON_1 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 60361f2  nucleo: Add missing BUTTON_1 definitions
60361f2 is described below

commit 60361f20f35079374d73ba87c190ed7def467f0e
Author: Jerzy Kasenberg <je...@gmail.com>
AuthorDate: Sun Nov 22 11:49:10 2020 +0100

    nucleo: Add missing BUTTON_1 definitions
    
    All nucleo 64/144 boards have button at PC13.
    Some boards already had this definition.
    Some boards had BTN_USER_1 instead.
    Some did not have user button definition at all.
    
    Now all have BUTTON_1 that is also present in other
    BSPs.
---
 hw/bsp/nucleo-f030r8/include/bsp/bsp.h | 3 +++
 hw/bsp/nucleo-f072rb/include/bsp/bsp.h | 3 +++
 hw/bsp/nucleo-f103rb/include/bsp/bsp.h | 3 +++
 hw/bsp/nucleo-f303k8/include/bsp/bsp.h | 3 +++
 hw/bsp/nucleo-f303re/include/bsp/bsp.h | 3 +++
 hw/bsp/nucleo-f401re/include/bsp/bsp.h | 3 +++
 hw/bsp/nucleo-f413zh/include/bsp/bsp.h | 3 +++
 hw/bsp/nucleo-f439zi/include/bsp/bsp.h | 3 +++
 hw/bsp/nucleo-f746zg/include/bsp/bsp.h | 3 +++
 hw/bsp/nucleo-f767zi/include/bsp/bsp.h | 3 +++
 hw/bsp/nucleo-l476rg/include/bsp/bsp.h | 3 +++
 11 files changed, 33 insertions(+)

diff --git a/hw/bsp/nucleo-f030r8/include/bsp/bsp.h b/hw/bsp/nucleo-f030r8/include/bsp/bsp.h
index b99e75a..6c917d9 100644
--- a/hw/bsp/nucleo-f030r8/include/bsp/bsp.h
+++ b/hw/bsp/nucleo-f030r8/include/bsp/bsp.h
@@ -44,6 +44,9 @@ extern uint8_t _ram_start;
 /* LED pins */
 #define LED_BLINK_PIN MCU_GPIO_PORTA(5)
 
+/* Button pin */
+#define BUTTON_1      MCU_GPIO_PORTC(13)
+
 /* Arduino pins */
 #define ARDUINO_PIN_D0      MCU_GPIO_PORTA(3)
 #define ARDUINO_PIN_D1      MCU_GPIO_PORTA(2)
diff --git a/hw/bsp/nucleo-f072rb/include/bsp/bsp.h b/hw/bsp/nucleo-f072rb/include/bsp/bsp.h
index e93ca23..e1556d1 100644
--- a/hw/bsp/nucleo-f072rb/include/bsp/bsp.h
+++ b/hw/bsp/nucleo-f072rb/include/bsp/bsp.h
@@ -44,6 +44,9 @@ extern uint8_t _ram_start;
 /* LED pins */
 #define LED_BLINK_PIN MCU_GPIO_PORTA(5)
 
+/* Button pin */
+#define BUTTON_1      MCU_GPIO_PORTC(13)
+
 /* Arduino pins */
 #define ARDUINO_PIN_D0      MCU_GPIO_PORTA(3)
 #define ARDUINO_PIN_D1      MCU_GPIO_PORTA(2)
diff --git a/hw/bsp/nucleo-f103rb/include/bsp/bsp.h b/hw/bsp/nucleo-f103rb/include/bsp/bsp.h
index ebe72ea..c472629 100644
--- a/hw/bsp/nucleo-f103rb/include/bsp/bsp.h
+++ b/hw/bsp/nucleo-f103rb/include/bsp/bsp.h
@@ -42,6 +42,9 @@ extern uint8_t _ram_start;
 /* One led LED pin, two names */
 #define LED_BLINK_PIN   ARDUINO_PIN_D13
 
+/* Button pin */
+#define BUTTON_1        MCU_GPIO_PORTC(13)
+
 /* Arduino pins */
 #define ARDUINO_PIN_D0      MCU_GPIO_PORTA(3)
 #define ARDUINO_PIN_D1      MCU_GPIO_PORTA(2)
diff --git a/hw/bsp/nucleo-f303k8/include/bsp/bsp.h b/hw/bsp/nucleo-f303k8/include/bsp/bsp.h
index 9230af1..ad20f09 100644
--- a/hw/bsp/nucleo-f303k8/include/bsp/bsp.h
+++ b/hw/bsp/nucleo-f303k8/include/bsp/bsp.h
@@ -49,6 +49,9 @@ extern uint8_t _ccram_start;
 
 #define LED_BLINK_PIN LED_BLINK_PIN_1
 
+/* Button pin */
+#define BUTTON_1            MCU_GPIO_PORTC(13)
+
 /* Arduino nano pins */
 #define ARDUINO_PIN_D0      MCU_GPIO_PORTA(10)
 #define ARDUINO_PIN_D1      MCU_GPIO_PORTA(9)
diff --git a/hw/bsp/nucleo-f303re/include/bsp/bsp.h b/hw/bsp/nucleo-f303re/include/bsp/bsp.h
index a53e4c3..79e497b 100644
--- a/hw/bsp/nucleo-f303re/include/bsp/bsp.h
+++ b/hw/bsp/nucleo-f303re/include/bsp/bsp.h
@@ -52,6 +52,9 @@ extern uint8_t _ccram_start;
 /* Buttons */
 #define BTN_USER_1        MCU_GPIO_PORTC(13)
 
+/* Button pin */
+#define BUTTON_1          BTN_USER_1
+
 /* This defines the maximum NFFS areas (block) are in the BSPs NFS file 
  * system space.  This in conjunction with flash map determines how 
  * many NFS blocks there will be.  A minimum is the number of individually
diff --git a/hw/bsp/nucleo-f401re/include/bsp/bsp.h b/hw/bsp/nucleo-f401re/include/bsp/bsp.h
index 7500cbf..7a1fc6c 100644
--- a/hw/bsp/nucleo-f401re/include/bsp/bsp.h
+++ b/hw/bsp/nucleo-f401re/include/bsp/bsp.h
@@ -41,6 +41,9 @@ extern uint8_t _ram_start;
 /* LED pins */
 #define LED_BLINK_PIN   MCU_GPIO_PORTA(5)
 
+/* Button pin */
+#define BUTTON_1        MCU_GPIO_PORTC(13)
+
 /* Arduino pins */
 #define ARDUINO_PIN_D0      MCU_GPIO_PORTA(3)
 #define ARDUINO_PIN_D1      MCU_GPIO_PORTA(2)
diff --git a/hw/bsp/nucleo-f413zh/include/bsp/bsp.h b/hw/bsp/nucleo-f413zh/include/bsp/bsp.h
index af39f0a..d168a3f 100644
--- a/hw/bsp/nucleo-f413zh/include/bsp/bsp.h
+++ b/hw/bsp/nucleo-f413zh/include/bsp/bsp.h
@@ -43,6 +43,9 @@ extern uint8_t _ccram_start;
 /* LED pins */
 #define LED_BLINK_PIN   MCU_GPIO_PORTB(7)
 
+/* Button pin */
+#define BUTTON_1        MCU_GPIO_PORTC(13)
+
 /* Arduino pins */
 #define ARDUINO_PIN_D0      MCU_GPIO_PORTG(9)
 #define ARDUINO_PIN_D1      MCU_GPIO_PORTG(14)
diff --git a/hw/bsp/nucleo-f439zi/include/bsp/bsp.h b/hw/bsp/nucleo-f439zi/include/bsp/bsp.h
index ecb8860..b04555f 100644
--- a/hw/bsp/nucleo-f439zi/include/bsp/bsp.h
+++ b/hw/bsp/nucleo-f439zi/include/bsp/bsp.h
@@ -43,6 +43,9 @@ extern uint8_t _ccram_start;
 /* LED pins */
 #define LED_BLINK_PIN   MCU_GPIO_PORTB(7)
 
+/* Button pin */
+#define BUTTON_1        MCU_GPIO_PORTC(13)
+
 /* Arduino pins */
 #define ARDUINO_PIN_D0      MCU_GPIO_PORTG(9)
 #define ARDUINO_PIN_D1      MCU_GPIO_PORTG(14)
diff --git a/hw/bsp/nucleo-f746zg/include/bsp/bsp.h b/hw/bsp/nucleo-f746zg/include/bsp/bsp.h
index ac29ae7..34c447e 100644
--- a/hw/bsp/nucleo-f746zg/include/bsp/bsp.h
+++ b/hw/bsp/nucleo-f746zg/include/bsp/bsp.h
@@ -58,6 +58,9 @@ extern uint8_t _ram2_start;
 /* BUTTON pins */
 #define BTN_USER_1      MCU_GPIO_PORTC(13)
 
+/* Button pin */
+#define BUTTON_1        BTN_USER_1
+
 /* Arduino pins */
 #define ARDUINO_PIN_D0      MCU_GPIO_PORTG(9)
 #define ARDUINO_PIN_D1      MCU_GPIO_PORTG(14)
diff --git a/hw/bsp/nucleo-f767zi/include/bsp/bsp.h b/hw/bsp/nucleo-f767zi/include/bsp/bsp.h
index 907bfc6..6421dea 100644
--- a/hw/bsp/nucleo-f767zi/include/bsp/bsp.h
+++ b/hw/bsp/nucleo-f767zi/include/bsp/bsp.h
@@ -58,6 +58,9 @@ extern uint8_t _ram2_start;
 /* BUTTON pins */
 #define BTN_USER_1      MCU_GPIO_PORTC(13)
 
+/* Button pin */
+#define BUTTON_1        BTN_USER_1
+
 /* Arduino pins */
 #define ARDUINO_PIN_D0      MCU_GPIO_PORTG(9)
 #define ARDUINO_PIN_D1      MCU_GPIO_PORTG(14)
diff --git a/hw/bsp/nucleo-l476rg/include/bsp/bsp.h b/hw/bsp/nucleo-l476rg/include/bsp/bsp.h
index 779cf55..b112921 100644
--- a/hw/bsp/nucleo-l476rg/include/bsp/bsp.h
+++ b/hw/bsp/nucleo-l476rg/include/bsp/bsp.h
@@ -41,6 +41,9 @@ extern uint8_t _ram_start;
 /* LED pins */
 #define LED_BLINK_PIN   MCU_GPIO_PORTA(5)
 
+/* Button pin */
+#define BUTTON_1        MCU_GPIO_PORTC(13)
+
 /* Arduino pins */
 #define ARDUINO_PIN_D0      MCU_GPIO_PORTA(3)
 #define ARDUINO_PIN_D1      MCU_GPIO_PORTA(2)