Forráskód Böngészése

[arduino][stm32l475] support wireless module pinout

Meco Man 2 éve
szülő
commit
9f4b7b3858

+ 3 - 0
bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/pins_arduino.c

@@ -50,6 +50,9 @@ const pin_map_t pin_map_table[]=
     {D27, GET_PIN(B,6)}, /* LCD RESET */
     {D28, GET_PIN(B,4)}, /* LCD DC (data or command) */
     {D29, GET_PIN(B,7)}, /* LCD POWER */
+    {D30, GET_PIN(D,4)}, /* WIRELESS CE */
+    {D31, GET_PIN(D,3)}, /* WIRELESS IRQ */
+    {D32, GET_PIN(D,5)}, /* WIRELESS CS */
     {A0, GET_PIN(C,2), "adc1", 3}, /* ADC */
     {A1, GET_PIN(C,4), "adc1", 13}, /* ADC */
     {A2, RT_NULL, "adc1", 0}, /* ADC, On-Chip: internal reference voltage, ADC_CHANNEL_VREFINT */

+ 8 - 5
bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/pins_arduino.h

@@ -42,11 +42,14 @@
 #define D27  (27)
 #define D28  (28)
 #define D29  (29)
-#define A0   (30)
-#define A1   (31)
-#define A2   (32)
-#define A3   (33)
-#define DAC0 (34)
+#define D30  (30)
+#define D31  (31)
+#define D32  (32)
+#define A0   (33)
+#define A1   (34)
+#define A2   (35)
+#define A3   (36)
+#define DAC0 (37)
 
 #define F_CPU  80000000L /* CPU: 80MHz */
 #define LED_BUILTIN  D22 /* Default Built-in LED */