1 /*
2  * Copyright (c) 2006-2023, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author         Notes
8  * 2023-12-29     ChuShicheng    first version
9  */
10 
11 #ifndef Pins_Arduino_h
12 #define Pins_Arduino_h
13 
14 /* pins alias. Must keep in sequence */
15 #define D0        (0)
16 #define D1        (1)
17 #define D2        (2)
18 #define D3        (3)
19 #define D4        (4)
20 #define D5        (5)
21 #define D6        (6)
22 #define D7        (7)
23 #define D8        (8)
24 #define D9        (9)
25 #define D10       (10)
26 #define D11       (11)
27 #define D12       (12)
28 #define D13       (13)
29 #define D14       (14)
30 #define D15       (15)
31 #define A0        (16)
32 #define A1        (17)
33 #define A2        (18)
34 #define A3        (19)
35 #define A4        (20)
36 #define A5        (21)
37 
38 #define RTDUINO_PIN_MAX_LIMIT A5 /* pin number max limit check */
39 
40 #define F_CPU 250000000L /* CPU:250MHz */
41 
42 #define LED_BUILTIN D13 /* Default Built-in LED */
43 
44 /* i2c1 : PB.7-SDA PB.6-SCL */
45 #define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
46 
47 /* Serial2(uart1) : PB.14-TX  PB.15-RX */
48 #define RTDUINO_SERIAL2_DEVICE_NAME "uart1"
49 
50 #endif /* Pins_Arduino_h */
51