You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2026/05/05 10:02:34 UTC

(mynewt-core) branch master updated (b7dd63cea -> 36a23d781)

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

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


    from b7dd63cea Update HW CI badges in README
     new fefb4a9f2 hw/bsp/apollo2: Add Arduino pins, LEDs and buttons
     new 8137aa126 hw/mcu/apollo2: Add hal_gpio_deinit
     new 36a23d781 hw/mcu/apollo3: Add hal_gpio_deinit

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 hw/bsp/apollo2_evb/include/bsp/bsp.h | 35 ++++++++++++++++++++++++++++++++++-
 hw/mcu/ambiq/apollo2/src/hal_gpio.c  |  8 ++++++++
 hw/mcu/ambiq/apollo3/src/hal_gpio.c  | 12 ++++++++++++
 3 files changed, 54 insertions(+), 1 deletion(-)


(mynewt-core) 03/03: hw/mcu/apollo3: Add hal_gpio_deinit

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 36a23d781a08d882e4573ec1038e7feb509c1f83
Author: Wiktor Kwiatkowski <wi...@codecoup.pl>
AuthorDate: Wed Apr 29 15:37:45 2026 +0200

    hw/mcu/apollo3: Add hal_gpio_deinit
    
    Add missing GPIO deinit function
---
 hw/mcu/ambiq/apollo3/src/hal_gpio.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/hw/mcu/ambiq/apollo3/src/hal_gpio.c b/hw/mcu/ambiq/apollo3/src/hal_gpio.c
index bf341b6c0..8b4549e6d 100644
--- a/hw/mcu/ambiq/apollo3/src/hal_gpio.c
+++ b/hw/mcu/ambiq/apollo3/src/hal_gpio.c
@@ -103,6 +103,18 @@ hal_gpio_toggle(int pin)
     return (0);
 }
 
+int
+hal_gpio_deinit(int pin)
+{
+    am_hal_gpio_pincfg_t cfg = { .uFuncSel = 3,
+                                 .eGPOutcfg = AM_HAL_GPIO_PIN_OUTCFG_DISABLE,
+                                 .eGPInput = AM_HAL_GPIO_PIN_INPUT_NONE,
+                                 .eGPRdZero = AM_HAL_GPIO_PIN_RDZERO_READPIN,
+                                 .ePullup = AM_HAL_GPIO_PIN_PULLUP_NONE };
+
+    return (int)am_hal_gpio_pinconfig(pin, cfg);
+}
+
 /*
  * GPIO irq handler
  *


(mynewt-core) 02/03: hw/mcu/apollo2: Add hal_gpio_deinit

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 8137aa126f5a927c78b54261dfcf841548a9fba5
Author: Wiktor Kwiatkowski <wi...@codecoup.pl>
AuthorDate: Wed Apr 29 15:34:42 2026 +0200

    hw/mcu/apollo2: Add hal_gpio_deinit
    
    Add missing GPIO deinit function
---
 hw/mcu/ambiq/apollo2/src/hal_gpio.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/hw/mcu/ambiq/apollo2/src/hal_gpio.c b/hw/mcu/ambiq/apollo2/src/hal_gpio.c
index 2e450827c..8f95c9887 100644
--- a/hw/mcu/ambiq/apollo2/src/hal_gpio.c
+++ b/hw/mcu/ambiq/apollo2/src/hal_gpio.c
@@ -95,6 +95,14 @@ hal_gpio_toggle(int pin)
     return (0);
 }
 
+int
+hal_gpio_deinit(int pin)
+{
+    am_hal_gpio_pin_config(pin, AM_HAL_PIN_DISABLE);
+
+    return 0;
+}
+
 /*
  * GPIO irq handler
  *


(mynewt-core) 01/03: hw/bsp/apollo2: Add Arduino pins, LEDs and buttons

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit fefb4a9f25485f6da3b9a2766eda5cc5171ae76f
Author: Wiktor Kwiatkowski <wi...@codecoup.pl>
AuthorDate: Wed Apr 29 15:30:06 2026 +0200

    hw/bsp/apollo2: Add Arduino pins, LEDs and buttons
    
    Add missing ARDUINO_PIN_* mappings, LED definitions for LED1-LED5
    and button defines
---
 hw/bsp/apollo2_evb/include/bsp/bsp.h | 35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

diff --git a/hw/bsp/apollo2_evb/include/bsp/bsp.h b/hw/bsp/apollo2_evb/include/bsp/bsp.h
index 0e70e7943..828cc33a7 100644
--- a/hw/bsp/apollo2_evb/include/bsp/bsp.h
+++ b/hw/bsp/apollo2_evb/include/bsp/bsp.h
@@ -35,7 +35,40 @@ extern "C" {
 
 extern uint8_t _ram_start;
 
-#define LED_BLINK_PIN   10
+/* Arduino pins */
+#define ARDUINO_PIN_D0  23
+#define ARDUINO_PIN_D1  22
+#define ARDUINO_PIN_D2  26
+#define ARDUINO_PIN_D3  49
+#define ARDUINO_PIN_D4  48
+#define ARDUINO_PIN_D5  47
+#define ARDUINO_PIN_D6  46
+#define ARDUINO_PIN_D7  45
+#define ARDUINO_PIN_D8  44
+#define ARDUINO_PIN_D9  43
+#define ARDUINO_PIN_D10 42
+#define ARDUINO_PIN_D11 7
+#define ARDUINO_PIN_D12 6
+#define ARDUINO_PIN_D13 5
+#define ARDUINO_PIN_A0  13
+#define ARDUINO_PIN_A1  29
+#define ARDUINO_PIN_A2  11
+#define ARDUINO_PIN_A3  31
+#define ARDUINO_PIN_A4  32
+#define ARDUINO_PIN_A5  33
+
+/* LED pins */
+#define LED1          10
+#define LED2          30
+#define LED3          15
+#define LED4          14
+#define LED5          17
+#define LED_BLINK_PIN LED1
+
+/* Buttons */
+#define BUTTON_1 16
+#define BUTTON_2 18
+#define BUTTON_3 19
 
 #define RAM_SIZE        (256 * 1024)