浏览代码

[RTduino] pins_arduino.h add limit check

Meco Man 1 年之前
父节点
当前提交
1a240798fa

+ 2 - 0
bsp/essemi/es32f369x/applications/arduino_pinout/pins_arduino.h

@@ -46,6 +46,8 @@
 #define A4   (29)
 #define A5   (30)
 
+#define RTDUINO_PIN_MAX_LIMIT A5 /* pin number max limit check */
+
 #define F_CPU  96000000L /* CPU: 96MHz */
 
 #define RTDUINO_DEFAULT_IIC_BUS_NAME            "i2c0"

+ 4 - 2
bsp/essemi/es32vf2264/applications/arduino_pinout/pins_arduino.h

@@ -43,8 +43,10 @@
 #define D27  (27)
 #define D28  (28)
 
-#define A0   (25)
-#define A1   (26)
+#define A0   (29)
+#define A1   (30)
+
+#define RTDUINO_PIN_MAX_LIMIT A1 /* pin number max limit check */
 
 #define F_CPU  72000000L /* CPU: 72MHz */
 

+ 2 - 0
bsp/lpc55sxx/lpc55s69_nxp_evk/applications/arduino_pinout/pins_arduino.h

@@ -38,6 +38,8 @@
 #define A6        (22)
 #define A7        (23)
 
+#define RTDUINO_PIN_MAX_LIMIT A7 /* pin number max limit check */
+
 #define F_CPU          150000000L  /* CPU:150MHz */
 
 /* i2c1 : P(,13-SDA P(,14-SCL */

+ 2 - 0
bsp/raspberry-pico/applications/arduino_pinout/pins_arduino.h

@@ -42,6 +42,8 @@
 #define A1        (27)
 #define A2        (28)
 
+#define RTDUINO_PIN_MAX_LIMIT A2 /* pin number max limit check */
+
 #define F_CPU          133000000L  /* CPU:133MHz */
 
 #define LED_BUILTIN     D25  /* Default Built-in LED */

+ 2 - 0
bsp/stm32/stm32f072-st-nucleo/applications/arduino_pinout/pins_arduino.h

@@ -38,6 +38,8 @@
 #define A6        (23)
 #define A7        (24)
 
+#define RTDUINO_PIN_MAX_LIMIT A7 /* pin number max limit check */
+
 #define F_CPU          48000000L  /* CPU:48MHz */
 
 #define LED_BUILTIN     D13  /* Default Built-in LED */

+ 2 - 0
bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/pins_arduino.h

@@ -47,6 +47,8 @@
 #define A5        (32)
 #define A6        (33)
 
+#define RTDUINO_PIN_MAX_LIMIT A6 /* pin number max limit check */
+
 #define F_CPU          72000000L  /* CPU:72MHz */
 
 #define LED_BUILTIN     D8  /* Default Built-in LED */

+ 2 - 0
bsp/stm32/stm32f401-weact-blackpill/applications/arduino_pinout/pins_arduino.h

@@ -47,6 +47,8 @@
 #define A8        (32)
 #define A9        (33)
 
+#define RTDUINO_PIN_MAX_LIMIT A9 /* pin number max limit check */
+
 #define F_CPU          84000000L  /* CPU:84MHz */
 
 #define LED_BUILTIN     D0  /* Default Built-in LED */

+ 2 - 0
bsp/stm32/stm32f407-robomaster-c/applications/arduino_pinout/pins_arduino.h

@@ -29,6 +29,8 @@
 #define A0        (14)
 #define A1        (15)
 
+#define RTDUINO_PIN_MAX_LIMIT A1 /* pin number max limit check */
+
 #define F_CPU          168000000L  /* CPU:168MHz */
 
 #define LED_BUILTIN     D0  /* Default Built-in LED */

+ 2 - 0
bsp/stm32/stm32f410-st-nucleo/applications/arduino_pinout/pins_arduino.h

@@ -38,6 +38,8 @@
 #define A6        (23)
 #define A7        (24)
 
+#define RTDUINO_PIN_MAX_LIMIT A7 /* pin number max limit check */
+
 #define F_CPU          84000000L  /* CPU:84MHz */
 
 #define LED_BUILTIN     D13  /* Default Built-in LED */

+ 2 - 0
bsp/stm32/stm32f411-weact-blackpill/applications/arduino_pinout/pins_arduino.h

@@ -47,6 +47,8 @@
 #define A8        (32)
 #define A9        (33)
 
+#define RTDUINO_PIN_MAX_LIMIT A9 /* pin number max limit check */
+
 #define F_CPU          60000000L  /* CPU:60MHz */
 
 #define LED_BUILTIN     D0  /* Default Built-in LED */

+ 2 - 0
bsp/stm32/stm32f427-robomaster-a/applications/arduino_pinout/pins_arduino.h

@@ -59,6 +59,8 @@
 #define A0        (44)
 #define A1        (45)
 
+#define RTDUINO_PIN_MAX_LIMIT A1 /* pin number max limit check */
+
 #define F_CPU          180000000L  /* CPU:180MHz */
 
 #define LED_BUILTIN     D0  /* Default Built-in LED */

+ 2 - 0
bsp/stm32/stm32f469-st-disco/applications/arduino_pinout/pins_arduino.h

@@ -42,6 +42,8 @@
 #define A6        (27)
 #define A7        (28)
 
+#define RTDUINO_PIN_MAX_LIMIT A7 /* pin number max limit check */
+
 #define F_CPU          180000000L  /* CPU:180MHz */
 
 #define LED_BUILTIN     D13  /* Default Built-in LED */

+ 2 - 0
bsp/stm32/stm32g474-st-nucleo/applications/arduino_pinout/pins_arduino.h

@@ -38,6 +38,8 @@
 #define A6        (23)
 #define A7        (24)
 
+#define RTDUINO_PIN_MAX_LIMIT A7 /* pin number max limit check */
+
 #define F_CPU          170000000L  /* CPU:170MHz */
 
 #define LED_BUILTIN     D13  /* Default Built-in LED */

+ 2 - 0
bsp/stm32/stm32l431-BearPi/applications/arduino_pinout/pins_arduino.h

@@ -30,6 +30,8 @@
 #define A2        (15)
 #define DAC0      (16)
 
+#define RTDUINO_PIN_MAX_LIMIT DAC0 /* pin number max limit check */
+
 #define F_CPU          80000000L  /* CPU:80MHz */
 
 /* i2c1 : PB7-SDA PB6-SCL */

+ 2 - 0
bsp/stm32/stm32u575-st-nucleo/applications/arduino_pinout/pins_arduino.h

@@ -35,6 +35,8 @@
 #define A4        (20)
 #define A5        (21)
 
+#define RTDUINO_PIN_MAX_LIMIT A5 /* pin number max limit check */
+
 #define F_CPU          160000000L  /* CPU:160MHz */
 
 /* i2c1 : PB9-SDA PB8-SCL */

+ 2 - 0
bsp/wch/risc-v/ch32v208w-r0/applications/arduino_pinout/pins_arduino.h

@@ -35,6 +35,8 @@
 #define A4        (20)
 #define A5        (21)
 
+#define RTDUINO_PIN_MAX_LIMIT A5 /* pin number max limit check */
+
 #define F_CPU          144000000L  /* CPU:144MHz */
 
 #define LED_BUILTIN    D8

+ 2 - 0
bsp/wch/risc-v/ch32v307v-r1/applications/arduino_pinout/pins_arduino.h

@@ -35,6 +35,8 @@
 #define A4        (20)
 #define A5        (21)
 
+#define RTDUINO_PIN_MAX_LIMIT A5 /* pin number max limit check */
+
 #define F_CPU          144000000L  /* CPU:144MHz */
 
 /* i2c1 : PB1-SDA PB10-SCL */