This is an automated email from the ASF dual-hosted git repository.
kasjer 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 cbebfb0f3 bsp/stm32fdisovery: Add Arduino pin definitions
cbebfb0f3 is described below
commit cbebfb0f3458920be9658b59cb8ccf99cf22073b
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Wed May 20 12:42:14 2026 +0200
bsp/stm32fdisovery: Add Arduino pin definitions
Board has Arduino-like connector this adds
definitions for connector pins.
Button definition is added as well.
Signed-off-by: Jerzy Kasenberg <[email protected]>
---
hw/bsp/stm32f7discovery/include/bsp/bsp.h | 37 +++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/hw/bsp/stm32f7discovery/include/bsp/bsp.h
b/hw/bsp/stm32f7discovery/include/bsp/bsp.h
index 6624a4e92..ce9b4bc99 100644
--- a/hw/bsp/stm32f7discovery/include/bsp/bsp.h
+++ b/hw/bsp/stm32f7discovery/include/bsp/bsp.h
@@ -47,6 +47,43 @@ extern uint8_t _ram2_start[];
/* LED pins */
#define LED_BLINK_PIN MCU_GPIO_PORTI(1)
+/* Button pin */
+#define BUTTON_1 MCU_GPIO_PORTI(11)
+
+/* Arduino pins */
+#define ARDUINO_PIN_D0 MCU_GPIO_PORTD(0)
+#define ARDUINO_PIN_D1 MCU_GPIO_PORTC(6)
+#define ARDUINO_PIN_D2 MCU_GPIO_PORTG(6)
+#define ARDUINO_PIN_D3 MCU_GPIO_PORTB(4)
+#define ARDUINO_PIN_D4 MCU_GPIO_PORTG(7)
+#define ARDUINO_PIN_D5 MCU_GPIO_PORTI(0)
+#define ARDUINO_PIN_D6 MCU_GPIO_PORTH(6)
+#define ARDUINO_PIN_D7 MCU_GPIO_PORTI(3)
+#define ARDUINO_PIN_D8 MCU_GPIO_PORTI(2)
+#define ARDUINO_PIN_D9 MCU_GPIO_PORTA(15)
+#define ARDUINO_PIN_D10 MCU_GPIO_PORTA(8)
+#define ARDUINO_PIN_D11 MCU_GPIO_PORTB(15)
+#define ARDUINO_PIN_D12 MCU_GPIO_PORTB(14)
+#define ARDUINO_PIN_D13 MCU_GPIO_PORTI(1)
+#define ARDUINO_PIN_D14 MCU_GPIO_PORTB(9)
+#define ARDUINO_PIN_D15 MCU_GPIO_PORTB(8)
+#define ARDUINO_PIN_A0 MCU_GPIO_PORTA(0)
+#define ARDUINO_PIN_A1 MCU_GPIO_PORTF(10)
+#define ARDUINO_PIN_A2 MCU_GPIO_PORTF(9)
+#define ARDUINO_PIN_A3 MCU_GPIO_PORTF(8)
+#define ARDUINO_PIN_A4 MCU_GPIO_PORTF(7)
+#define ARDUINO_PIN_A5 MCU_GPIO_PORTF(6)
+
+#define ARDUINO_PIN_RX ARDUINO_PIN_D0
+#define ARDUINO_PIN_TX ARDUINO_PIN_D1
+
+#define ARDUINO_PIN_SCL ARDUINO_PIN_D15
+#define ARDUINO_PIN_SDA ARDUINO_PIN_D14
+
+#define ARDUINO_PIN_SCK ARDUINO_PIN_D13
+#define ARDUINO_PIN_MOSI ARDUINO_PIN_D11
+#define ARDUINO_PIN_MISO ARDUINO_PIN_D12
+
#ifdef __cplusplus
}
#endif