1
0

pins_arduino.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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-12-30 ChuShicheng 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 250000000L /* CPU:250MHz */
  37. #define LED_BUILTIN D0 /* Default Built-in LED */
  38. /* i2c1 : PB.9-SDA PB.8-SCL */
  39. #define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
  40. /* Serial2(lpuart1) : PB.6-TX PB.7-RX */
  41. #define RTDUINO_SERIAL2_DEVICE_NAME "lpuart1"
  42. #endif /* Pins_Arduino_h */