[RTduino] pins_arduino.h add limit check

This commit is contained in:
Meco Man 2024-03-07 18:50:25 -05:00 committed by Rbb666
parent e961b051f9
commit 1a240798fa
17 changed files with 36 additions and 2 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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