更新硬件SDK

This commit is contained in:
kerwincui
2023-03-04 03:44:56 +08:00
parent dcdf6e1b7c
commit e39d3d2f03
1900 changed files with 663153 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#include "commontypedef.h"
#include "common_api.h"
#define SNTP_RCV_TIMEOUT 15 //seconds
#define SNTP_RETRY_TIMES 3
#define SNTP_RESEND_REQUEST_DELAY 3000 //ms
#define SNTP_DEFAULT_PORT 123
typedef struct
{
uint8_t succ; //1成功0失败
uint32_t sec;
uint32_t us;
}sntp_result_t;
BOOL SntpInit(CHAR* serverAddr, UINT16 serverPort, BOOL autoSync, UINT8 cid, CBFuncEx_t callback, void *user_param);
void SntpTerminat(void);
//check sntp whether running,TRUE->running, FALSE->not run
BOOL SntpChkStatus(CHAR *serverAddr, UINT16 *serverPort, UINT8 *cid);