更新SDK到 Hilink_14.2.1.312_20250704
This commit is contained in:
@ -57,6 +57,11 @@ typedef struct _HFUART
|
||||
}HFUART,*PHFUART;
|
||||
|
||||
|
||||
|
||||
#define DATA_UART (hfuart_handle_t)(1)
|
||||
#define DEBUG_UART (hfuart_handle_t)(2)
|
||||
|
||||
|
||||
void HSF_API HF_Debug(int debug_level, const char *format , ... );
|
||||
|
||||
#define hfdbg_error(...) HF_Debug(DEBUG_ERROR,"[ %d error %s %d]",hfsys_get_time(),__FUNCTION__,__LINE__); \
|
||||
@ -64,12 +69,7 @@ void HSF_API HF_Debug(int debug_level, const char *format , ... );
|
||||
#define hfdbg_warn(...) HF_Debug(DEBUG_WARN,"[warnning %d %s %d]",hfsys_get_time(),__FUNCTION__,__LINE__); \
|
||||
HF_Debug(DEBUG_WARN,__VA_ARGS__)
|
||||
#define u_printf(...) HF_Debug(DEBUG_LEVEL_USER,__VA_ARGS__)
|
||||
#define e_printf(...) \
|
||||
do { \
|
||||
HF_Debug(DEBUG_WARN, "[Ekko]%d %s():%d: ", hfsys_get_time(), \
|
||||
__FUNCTION__, __LINE__); \
|
||||
HF_Debug(DEBUG_WARN, __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
|
||||
int hfuart_config(hfuart_handle_t huart, int baudrate, ENCOMPARITY_E parity, ENCOMBITS_E databits, ENCOMSTOPBITS_E stopbits, ENCOMUARTCTL_E fc);
|
||||
|
||||
|
Reference in New Issue
Block a user