pins_arduino.h 846 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2006-2024, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2025-10-16 Hydevcode first version
  9. */
  10. #ifndef Pins_Arduino_h
  11. #define Pins_Arduino_h
  12. /* pins alias. Must keep in sequence */
  13. #define D00 (0)
  14. #define D01 (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 RTDUINO_PIN_MAX_LIMIT D7 /* pin number max limit check */
  22. #define F_CPU 350000000L /* CPU:350MHz */
  23. // #define LED_BUILTIN D0 /* Default Built-in LED */
  24. /* i2c2 : P00.00-SDA P00.01-SCL */
  25. #define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c2"
  26. #define SS D2 /* Chip select pin of default spi */
  27. #define RTDUINO_DEFAULT_SPI_BUS_NAME "spi0"
  28. #endif /* Pins_Arduino_h */