16 #ifndef _SYSTEM_STORAGE_H 17 #define _SYSTEM_STORAGE_H 21 #define EXCPT_REBOOT (0) 22 #define EXCPT_HALT (1) 23 #define EXCPT_QUIET (2) 24 #define EXCPT_RESET (3) 25 #define EXCPT_REBOOT_TO_MON (4) 28 #ifndef MACADDRESS_OCTETS_48 29 #define MACADDRESS_OCTETS_48 (6) 50 #define SYSTEM_CONFIG_RECORD_SSID_SIZE_MIN (1) 51 #define SYSTEM_CONFIG_RECORD_SSID_SIZE_MAX (32) 52 #define SYSTEM_CONFIG_RECORD_SSID_TAG ("SSID:") 53 #define SYSTEM_CONFIG_RECORD_SSID_TAG_LENGTH (5) 55 #define SYSTEM_CONFIC_RECORD_SEPERATOR (",") 56 #define SYSTEM_CONFIC_RECORD_SEPERATOR_LENGTH (1) 58 #define SYSTEM_CONFIG_RECORD_WEP_KEY_SIZE_64 (10) 59 #define SYSTEM_CONFIG_RECORD_WEP_KEY_SIZE_104 (26) 60 #define SYSTEM_CONFIG_RECORD_WPA_PSK_SIZE_MIN (8) 61 #define SYSTEM_CONFIG_RECORD_WPA_PSK_SIZE_MAX (63) 62 #define SYSTEM_CONFIG_RECORD_WEP_KEY_TAG ("WEP:") 63 #define SYSTEM_CONFIG_RECORD_WPA_PSK_TAG ("WPA:") 64 #define SYSTEM_CONFIG_RECORD_WPA2_PSK_TAG ("WP2:") 65 #define SYSTEM_CONFIG_RECORD_KEY_TAG_LENGTH (4) 67 #define SYSTEM_CONFIG_RECORD_M_FILENAME_SIZE (80) 69 #define SYSTEM_CONFIG_RECORD_SSID_KEY_LENGTH_MAX \ 70 (SYSTEM_CONFIG_RECORD_M_FILENAME_SIZE - \ 71 (SYSTEM_CONFIG_RECORD_SSID_TAG_LENGTH + SYSTEM_CONFIC_RECORD_SEPERATOR_LENGTH + SYSTEM_CONFIG_RECORD_KEY_TAG_LENGTH + 1)) 77 extern void (*NotifyUpdatePtr)(void);
80 extern int (*pLegacyUdp)(
UDPPacket &p,
int ifn);
126 uint8_t *GetConfigRecordStart();
129 uint8_t *GetConfigRecordEnd();
132 void EraseWholeConfigRecord();
134 uint32_t GetDefaultBaud();
135 uint32_t GetDefaultSerialPort();
136 bool ShowBootMessages();
int SaveUserParameters(void *pCopyFrom, int len)
Save data to the on-chip flash memory User Parameter area.
Definition: userparam.cpp:27
const char * GetReleaseTag()
Returns the NNDK release tag information.
Definition: release_tag.cpp:8
UDP Packet Class.
Definition: udp.h:70
void * GetUserParameters(void)
Returns a void pointer to the user parameter area.
Definition: userparam.cpp:44