/* hsf.h * * Copyright (C) 2017 ShangHai High-flying Electronics Technology Co.,Ltd. * * This file is part of HSF. * */ #ifndef _HSF_H_ #define _HSF_H_ #define HSF_API #define HSF_IAPI HSF_API #define USER_FUNC #include #include #include #include #ifndef BYTE // typedef unsigned char BOOL; typedef unsigned char BYTE; typedef short SHORT; typedef unsigned short WORD; typedef unsigned short WCHAR; typedef int INT; typedef unsigned int UINT; typedef long LONG; typedef unsigned long DWORD; #endif #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif #define HF_SUCCESS 0 #ifdef __cplusplus #define EXTERNC extern "C" #else #define EXTERNC extern #include //typedef unsigned char bool; // #define true 1 // #define false 0 #endif #ifndef NULL #if defined(__cplusplus) #define NULL 0 #else #define NULL ((void *) 0) #endif #endif // #define _HSF_ #ifndef WEAK #define WEAK __attribute__ ((weak)) #endif #define FUNC_IN_RAM __attribute__((section(".tcm_code"))) // #include "hferrno.h" #include "hfconfig.h" #include "hfuart.h" #include "hfat.h" #include "hfsys.h" #include "hfflash.h" #include "hfthread.h" #include "hfflashlayout.h" #include "hfproduct.h" #include "hfnet.h" // #include "hf_debug.h" #include "hfupdate.h" #include "hfcrypto.h" #include "hfgpio.h" #include "hfwifi.h" #include "hfnet.h" #include "hfntp.h" #include "debug_print.h" #define DEBUG_NTP DEBUG_LEVEL_LOW extern const char *HILINK_GetSdkVersion(void); #define GLOBAL_VER HILINK_GetSdkVersion() #ifdef CONFIG_FLASH_SIZE_4MB #define GLOBAL_LVER " (2025-04-11 14:00 4M)" #elif defined CONFIG_FLASH_SIZE_8MB #define GLOBAL_LVER "06 (2024-09-20 17:00 8M)" #endif #endif