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 <[email protected]> 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)
