board_config.h 586 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. board configuration file
  3. */
  4. #pragma once
  5. #ifdef BOARD_ESP32S3_DEV
  6. #define PIN_CAN_TX GPIO_NUM_47
  7. #define PIN_CAN_RX GPIO_NUM_38
  8. #define PIN_UART_TX 18
  9. #define PIN_UART_RX 17
  10. #elif defined(BOARD_ESP32C3_DEV)
  11. #define PIN_CAN_TX GPIO_NUM_5
  12. #define PIN_CAN_RX GPIO_NUM_4
  13. #define PIN_UART_TX 3
  14. #define PIN_UART_RX 2
  15. #elif defined(BOARD_BLUEMARK_DB200)
  16. #define PIN_CAN_TX GPIO_NUM_5
  17. #define PIN_CAN_RX GPIO_NUM_4
  18. #define PIN_UART_TX 3
  19. #define PIN_UART_RX 2
  20. #elif defined(BOARD_BLUEMARK_DB110)
  21. #define PIN_UART_TX 5
  22. #define PIN_UART_RX 4
  23. #else
  24. #error "unsupported board"
  25. #endif