123456789101112131415161718192021 |
- #ifndef __bsp_esb_h__
- #define __bsp_esb_h__
- #include "main.h"
- #define ESP_MAX_DATA_LEN 64 //数据包最大长度
- #define ADDR 0x72 //ESP设备地址
- //ESB 工作模式
- typedef enum
- {
- ESB_TX_MODE,
- ESB_RX_MODE
- }ESB_Work_Mode;
- uint32_t bsp_esb_send(uint8_t * pdat, uint8_t len);
- void User_Esb_Set(bool value);
- #if GameMode_TEST
- uint32_t TIME_GetTicks(void);
- #endif
- #endif
|