1234567891011121314151617181920212223242526272829 |
- #ifndef __DRV_OTA_H__
- #define __DRV_OTA_H__
- #include "yc_drv_common.h"
- //#define DEVICE_INFO_BASE 0x07f000
- #define REVERSE_3BYTE_DEFINE(a) ((a>>16)+(a&0xff00)+((a&0xff)<<16))
- #define CODE_START_FLASHADDR1 0x1003
- //#define CODE_START_FLASHADDR1 0x0003
- #define CODE_START_FLASHADDR2 0X18003
- #define OTA_EVT_START 0xc0
- #define OTA_EVT_DATA 0xc1
- #define OTA_EVT_END 0Xc2
- #define OTA_EVT_RESET 0Xff
- #define OTA_EVT 0xBA
- #define OTA_CMD 0xAB
- #define OTA_BLE_WRITE_HANDLE 0x0011
- #define OTA_BLE_NOTIFY_HANDLE 0x000e
- #define OTA_END_CHECK_OK 0X55
- #define OTA_END_CHECK_FAIL 0XFF
- void Bt_BleOTA(uint8_t len,uint8_t *dataPtr);
- uint32_t Get_runAddr(void);
- #endif //__DRV_OTA_H__
|