2023-03-24 02:07:13 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2023-03-23 Meco Man first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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 D16 (16)
|
|
|
|
#define A0 (17)
|
|
|
|
#define A1 (18)
|
|
|
|
#define A2 (19)
|
|
|
|
#define A3 (20)
|
|
|
|
#define A4 (21)
|
|
|
|
#define A5 (22)
|
|
|
|
#define A6 (23)
|
|
|
|
#define A7 (24)
|
|
|
|
|
2023-07-07 07:21:45 +08:00
|
|
|
#define RTDUINO_PIN_MAX_LIMIT A7 /* pin number max limit check */
|
|
|
|
|
2023-03-24 02:07:13 +08:00
|
|
|
#define F_CPU 80000000L /* CPU:80MHz */
|
|
|
|
|
2023-08-05 10:07:59 +08:00
|
|
|
#define LED_BUILTIN D13 /* Default Built-in LED */
|
|
|
|
|
2023-03-24 02:07:13 +08:00
|
|
|
/* i2c1 : PB9-SDA PB8-SCL */
|
2023-07-10 05:55:59 +08:00
|
|
|
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
|
|
|
|
|
|
|
|
#define SS D10
|
|
|
|
#define RTDUINO_DEFAULT_SPI_BUS_NAME "spi1"
|
2023-03-24 02:07:13 +08:00
|
|
|
|
2023-06-26 09:30:21 +08:00
|
|
|
#define RTDUINO_TONE_HWTIMER_DEVICE_NAME "timer7"
|
|
|
|
|
2023-03-24 02:07:13 +08:00
|
|
|
#endif /* Pins_Arduino_h */
|