Ai
1.1K Star 5.3K Fork 2.2K

GVPRT-Thread/rt-thread

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
pins_arduino.h 1.19 KB
Copy Edit Raw Blame History
/*
* Copyright (c) 2006-2023, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2023-10-28 Wangyuqiang 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 A0 (16)
#define A1 (17)
#define A2 (18)
#define A3 (19)
#define A4 (20)
#define A5 (21)
#define RTDUINO_PIN_MAX_LIMIT A5 /* pin number max limit check */
#define F_CPU 120000000L /* CPU:120MHz */
/* i2c0 : P203-SDA P202-SCL */
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c0"
/* Serial4(uart4) : P205-TX P206-RX */
#define RTDUINO_SERIAL2_DEVICE_NAME "uart4"
/* soft spi1: P204-SS P511-MISO P512-MOSI */
#define SS D13
#define RTDUINO_DEFAULT_SPI_BUS_NAME "sspi1"
#endif /* Pins_Arduino_h */
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/rtthread/rt-thread.git
git@gitee.com:rtthread/rt-thread.git
rtthread
rt-thread
rt-thread
master

Search