2023-08-29 13:10:14 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
2023-12-30 18:36:19 +08:00
|
|
|
* Date Author Notes
|
|
|
|
* 2023-12-30 ChuShicheng first version
|
2023-08-29 13:10:14 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef Pins_Arduino_h
|
|
|
|
#define Pins_Arduino_h
|
|
|
|
|
|
|
|
/* pins alias. Must keep in sequence */
|
|
|
|
#define D0 (0)
|
|
|
|
#define D1 (1)
|
|
|
|
#define D2 (2)
|
|
|
|
#define D3 (3)
|
|
|
|
#define D4 (4)
|
|
|
|
#define D5 (5)
|
|
|
|
#define D6 (6)
|
|
|
|
#define D7 (7)
|
|
|
|
#define D8 (8)
|
|
|
|
#define D9 (9)
|
|
|
|
#define D10 (10)
|
|
|
|
#define D11 (11)
|
|
|
|
#define D12 (12)
|
|
|
|
#define D13 (13)
|
|
|
|
#define D14 (14)
|
|
|
|
#define D15 (15)
|
|
|
|
#define A0 (16)
|
|
|
|
#define A1 (17)
|
|
|
|
#define A2 (18)
|
|
|
|
#define A3 (19)
|
|
|
|
#define A4 (20)
|
|
|
|
#define A5 (21)
|
|
|
|
|
2023-12-30 18:36:19 +08:00
|
|
|
#define RTDUINO_PIN_MAX_LIMIT A5 /* pin number max limit check */
|
2023-08-29 13:10:14 +08:00
|
|
|
|
2023-12-30 18:36:19 +08:00
|
|
|
#define F_CPU 250000000L /* CPU:250MHz */
|
2023-08-29 13:10:14 +08:00
|
|
|
|
2023-12-30 18:36:19 +08:00
|
|
|
#define LED_BUILTIN D0 /* Default Built-in LED */
|
|
|
|
|
|
|
|
/* i2c1 : PB.9-SDA PB.8-SCL */
|
|
|
|
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
|
|
|
|
|
|
|
|
/* Serial2(lpuart1) : PB.6-TX PB.7-RX */
|
|
|
|
#define RTDUINO_SERIAL2_DEVICE_NAME "lpuart1"
|
2023-08-29 13:10:14 +08:00
|
|
|
|
|
|
|
#endif /* Pins_Arduino_h */
|