bsp_esb.h 386 B

123456789101112131415161718192021
  1. #ifndef __bsp_esb_h__
  2. #define __bsp_esb_h__
  3. #include "main.h"
  4. #define ESP_MAX_DATA_LEN 64 //数据包最大长度
  5. #define ADDR 0x72 //ESP设备地址
  6. //ESB 工作模式
  7. typedef enum
  8. {
  9. ESB_TX_MODE,
  10. ESB_RX_MODE
  11. }ESB_Work_Mode;
  12. uint32_t bsp_esb_send(uint8_t * pdat, uint8_t len);
  13. void User_Esb_Set(bool value);
  14. #if GameMode_TEST
  15. uint32_t TIME_GetTicks(void);
  16. #endif
  17. #endif