1 /*
2  * Copyright (c) 2006-2022, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2022-12-01     liYony       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 A0        (13)
29 #define A1        (14)
30 #define A2        (15)
31 #define DAC0      (16)
32 
33 #define RTDUINO_PIN_MAX_LIMIT DAC0 /* pin number max limit check */
34 
35 #define F_CPU          80000000L  /* CPU:80MHz */
36 
37 /* i2c1 : PB7-SDA PB6-SCL */
38 #define RTDUINO_DEFAULT_IIC_BUS_NAME    "i2c1"
39 
40 /* spi1 : PA1-SCK  PA6-MISO  PA12-MOSI */
41 #define SS      D1  /* Chip select pin of default spi */
42 #define RTDUINO_DEFAULT_SPI_BUS_NAME      "spi1"
43 
44 /* Serial : PC4-TX  PC5-RX */
45 #define RTDUINO_SERIAL2_DEVICE_NAME      "uart3"
46 
47 #endif /* Pins_Arduino_h */
48