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/02/07 09:34:50 UTC
[mynewt-core] 01/02: bsp/nucleo-f411re: Fix Arduino pins 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
commit 9312bceb54dd6b0e326e13333d5bd8db91bc8a03
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Fri Feb 7 09:35:44 2020 +0100
bsp/nucleo-f411re: Fix Arduino pins definitions
Pin definitions were incorrect.
---
hw/bsp/nucleo-f411re/include/bsp/bsp.h | 36 +++++++++++++++++-----------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/hw/bsp/nucleo-f411re/include/bsp/bsp.h b/hw/bsp/nucleo-f411re/include/bsp/bsp.h
index 26c0626..4d3ac18 100644
--- a/hw/bsp/nucleo-f411re/include/bsp/bsp.h
+++ b/hw/bsp/nucleo-f411re/include/bsp/bsp.h
@@ -39,7 +39,7 @@ extern uint8_t _ram_start;
#define RAM_SIZE (128 * 1024)
/* LED pins */
-#define LED_BLINK_PIN MCU_GPIO_PORTB(7)
+#define LED_BLINK_PIN MCU_GPIO_PORTA(5)
/* Button pin */
#define BUTTON_1 MCU_GPIO_PORTC(13)
@@ -48,26 +48,26 @@ extern uint8_t _ram_start;
#define UART_CNT 3
/* Arduino pins */
-#define ARDUINO_PIN_D0 MCU_GPIO_PORTG(9)
-#define ARDUINO_PIN_D1 MCU_GPIO_PORTG(14)
-#define ARDUINO_PIN_D2 MCU_GPIO_PORTF(15)
-#define ARDUINO_PIN_D3 MCU_GPIO_PORTE(13)
-#define ARDUINO_PIN_D4 MCU_GPIO_PORTF(14)
-#define ARDUINO_PIN_D5 MCU_GPIO_PORTE(11)
-#define ARDUINO_PIN_D6 MCU_GPIO_PORTE(9)
-#define ARDUINO_PIN_D7 MCU_GPIO_PORTF(13)
-#define ARDUINO_PIN_D8 MCU_GPIO_PORTF(12)
-#define ARDUINO_PIN_D9 MCU_GPIO_PORTD(15)
-#define ARDUINO_PIN_D10 MCU_GPIO_PORTD(14)
+#define ARDUINO_PIN_D0 MCU_GPIO_PORTA(3)
+#define ARDUINO_PIN_D1 MCU_GPIO_PORTA(2)
+#define ARDUINO_PIN_D2 MCU_GPIO_PORTA(10)
+#define ARDUINO_PIN_D3 MCU_GPIO_PORTB(3)
+#define ARDUINO_PIN_D4 MCU_GPIO_PORTB(5)
+#define ARDUINO_PIN_D5 MCU_GPIO_PORTB(4)
+#define ARDUINO_PIN_D6 MCU_GPIO_PORTB(10)
+#define ARDUINO_PIN_D7 MCU_GPIO_PORTA(8)
+#define ARDUINO_PIN_D8 MCU_GPIO_PORTA(9)
+#define ARDUINO_PIN_D9 MCU_GPIO_PORTC(7)
+#define ARDUINO_PIN_D10 MCU_GPIO_PORTB(6)
#define ARDUINO_PIN_D11 MCU_GPIO_PORTA(7)
#define ARDUINO_PIN_D12 MCU_GPIO_PORTA(6)
#define ARDUINO_PIN_D13 MCU_GPIO_PORTA(5)
-#define ARDUINO_PIN_A0 MCU_GPIO_PORTA(3)
-#define ARDUINO_PIN_A1 MCU_GPIO_PORTC(0)
-#define ARDUINO_PIN_A2 MCU_GPIO_PORTC(3)
-#define ARDUINO_PIN_A3 MCU_GPIO_PORTC(1)
-#define ARDUINO_PIN_A4 MCU_GPIO_PORTC(4)
-#define ARDUINO_PIN_A5 MCU_GPIO_PORTC(5)
+#define ARDUINO_PIN_A0 MCU_GPIO_PORTA(0)
+#define ARDUINO_PIN_A1 MCU_GPIO_PORTA(1)
+#define ARDUINO_PIN_A2 MCU_GPIO_PORTA(4)
+#define ARDUINO_PIN_A3 MCU_GPIO_PORTB(0)
+#define ARDUINO_PIN_A4 MCU_GPIO_PORTC(1)
+#define ARDUINO_PIN_A5 MCU_GPIO_PORTC(0)
#define ARDUINO_PIN_RX ARDUINO_PIN_D0
#define ARDUINO_PIN_TX ARDUINO_PIN_D1