board_config.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #define CAN_APP_NODE_NAME "BlueMark DB200"
  21. // to enable termination resistors uncomment this line
  22. //#define PIN_CAN_TERM EN_NUM_10 // if set to ON, the termination resistors of the CAN bus are enabled
  23. #define PIN_UART_TX 3
  24. #define PIN_UART_RX 2
  25. #define PIN_STATUS_LED GPIO_NUM_8 // LED to signal the status
  26. #define STATUS_LED_ON 1
  27. #elif defined(BOARD_BLUEMARK_DB110)
  28. #define PIN_UART_TX 5
  29. #define PIN_UART_RX 4
  30. #else
  31. #error "unsupported board"
  32. #endif