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-04-04     Wangyuqiang  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 D16       (16)
32 #define A0        (17)
33 #define A1        (18)
34 #define A2        (19)
35 #define A3        (20)
36 #define A4        (21)
37 #define A5        (22)
38 #define A6        (23)
39 #define A7        (24)
40 
41 #define RTDUINO_PIN_MAX_LIMIT A7 /* pin number max limit check */
42 
43 #define F_CPU          170000000L  /* CPU:170MHz */
44 
45 #define LED_BUILTIN     D13  /* Default Built-in LED */
46 
47 /* i2c1 : PB9-SDA PB8-SCL */
48 #define RTDUINO_DEFAULT_IIC_BUS_NAME    "i2c1"
49 
50 #define SS          D10
51 #define RTDUINO_DEFAULT_SPI_BUS_NAME     "spi1"
52 
53 /* Serial2 : PA9-TX  PA10-RX */
54 #define RTDUINO_SERIAL2_DEVICE_NAME      "uart1"
55 
56 #endif /* Pins_Arduino_h */
57