pins_arduino.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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-10-28 Wangyuqiang first version
  9. */
  10. #ifndef Pins_Arduino_h
  11. #define Pins_Arduino_h
  12. /* pins alias. Must keep in sequence */
  13. #define D0 (0)
  14. #define D1 (1)
  15. #define D2 (2)
  16. #define D3 (3)
  17. #define D4 (4)
  18. #define D5 (5)
  19. #define D6 (6)
  20. #define D7 (7)
  21. #define D8 (8)
  22. #define D9 (9)
  23. #define D10 (10)
  24. #define D11 (11)
  25. #define D12 (12)
  26. #define D13 (13)
  27. #define D14 (14)
  28. #define D15 (15)
  29. #define A0 (16)
  30. #define A1 (17)
  31. #define A2 (18)
  32. #define A3 (19)
  33. #define A4 (20)
  34. #define A5 (21)
  35. #define RTDUINO_PIN_MAX_LIMIT A5 /* pin number max limit check */
  36. #define F_CPU 120000000L /* CPU:120MHz */
  37. /* i2c0 : P203-SDA P202-SCL */
  38. #define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c0"
  39. /* Serial4(uart4) : P205-TX P206-RX */
  40. #define RTDUINO_SERIAL2_DEVICE_NAME "uart4"
  41. /* soft spi1: P204-SS P511-MISO P512-MOSI */
  42. #define SS D13
  43. #define RTDUINO_DEFAULT_SPI_BUS_NAME "sspi1"
  44. #endif /* Pins_Arduino_h */