USER_CONFIG.h 951 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * USER_CONFIG.h
  3. *
  4. * Created on: 2022Äê4ÔÂ27ÈÕ
  5. * Author: Zhengchao
  6. */
  7. #ifndef USER_CONFIG_H_
  8. #define USER_CONFIG_H_
  9. #endif /* USER_CONFIG_H_ */
  10. /*define the CAN information */
  11. #define CAN_BAUDRATE_250K (0)
  12. #define CAN_BAUDRATE_500K (1)
  13. #define CAN_MSG_STANDARD (0)
  14. #define CAN_MSG_EXTENDED (1)
  15. #define CAN0_BAUDRATE CAN_BAUDRATE_250K
  16. #define CAN0_MSG_TYPE CAN_MSG_STANDARD
  17. //the Default Configuration of CAN1 is Extended 250k for Bootloader, while CAN1 standard 250k only for WuLing project
  18. #define CAN1_BAUDRATE CAN_BAUDRATE_250K
  19. #define CAN1_MSG_TYPE CAN_MSG_EXTENDED
  20. #define CAN2_BAUDRATE CAN_BAUDRATE_500K
  21. #define CAN2_MSG_TYPE CAN_MSG_STANDARD
  22. /*define the uart0 information */
  23. #define UART_BAUDRATE_9600 (0)
  24. #define UART_BAUDRATE_19200 (1)
  25. #define UART_BAUDRATE_115200 (2)
  26. #define UART0_BAUDRATE UART_BAUDRATE_9600
  27. #define UART1_BAUDRATE UART_BAUDRATE_115200
  28. #define UART2_BAUDRATE UART_BAUDRATE_115200