pins_arduino.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-10-14 liYony 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 D16 (16)
  30. #define A0 (17)
  31. #define A1 (18)
  32. #define A2 (19)
  33. #define A3 (20)
  34. #define A4 (21)
  35. #define A5 (22)
  36. #define A6 (23)
  37. #define A7 (24)
  38. #define RTDUINO_PIN_MAX_LIMIT A7 /* pin number max limit check */
  39. #define F_CPU 84000000L /* CPU:84MHz */
  40. #define LED_BUILTIN D13 /* Default Built-in LED */
  41. /* i2c1 : PB9-SDA PB8-SCL */
  42. #define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
  43. #define SS D7
  44. #define RTDUINO_DEFAULT_SPI_BUS_NAME "spi1"
  45. #endif /* Pins_Arduino_h */