board_config.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_0 // this goes to the TX pin (= input) of the NXP CAN transceiver
  17. #define PIN_CAN_RX GPIO_NUM_5
  18. #define PIN_CAN_EN GPIO_NUM_4 // EN pin of the NXP CAN transceiver
  19. #define PIN_CAN_nSILENT GPIO_NUM_1 // CAN silent pin, active low
  20. // to enable termination resistors uncomment this line
  21. //#define PIN_CAN_TERM EN_NUM_10 // if set to ON, the termination resistors of the CAN bus are enabled
  22. #define PIN_UART_TX 3
  23. #define PIN_UART_RX 2
  24. #define PIN_STATUS_LED GPIO_NUM_8 // LED to signal the status
  25. #define STATUS_LED_ON 1
  26. #elif defined(BOARD_BLUEMARK_DB110)
  27. #define PIN_UART_TX 5
  28. #define PIN_UART_RX 4
  29. #else
  30. #error "unsupported board"
  31. #endif