 |
NetBurner 3.1
|
28 #ifndef _NB_FACTORY_H_ 29 #define _NB_FACTORY_H_ 40 #define NB_FACTORY_VERIFY_KEY ( 0x7E545088 ) 42 #define STD_EFFS_VERIFY_KEY ( 0x15A58101 ) 45 #define NB_FACTORY_DEFAULTS_VERSION ( DWORD )( 0x02070002 ) 46 #define NB_FACTORY_DEFAULTS_VERSION_STRING "02.12" 50 #define NB_FACTORY_MODULE_BASE_NAME "SB70" 52 #define NB_FACTORY_MODULE_BASE_NAME "SB70B" 54 #define NB_FACTORY_MODULE_BASE_NAME "SB70LC" 56 #define NB_FACTORY_MODULE_BASE_NAME "MOD5270" 58 #define NB_FACTORY_MODULE_BASE_NAME "MOD5234" 60 #define NB_FACTORY_MODULE_BASE_NAME "MOD5282" 62 #define NB_FACTORY_MODULE_BASE_NAME "CB34EX" 64 #define NB_FACTORY_MODULE_BASE_NAME "MOD5272" 66 #define NB_FACTORY_MODULE_BASE_NAME "SB72" 68 #define NB_FACTORY_MODULE_BASE_NAME "SB72EX" 70 #define NB_FACTORY_MODULE_BASE_NAME "SB700EX" 72 #define NB_FACTORY_MODULE_BASE_NAME "SB800EX" 73 #elif defined NANO54415 74 #define NB_FACTORY_MODULE_BASE_NAME "NANO54415" 76 #define NB_FACTORY_MODULE_BASE_NAME "PK70" 87 #define PK70_QUAD_232 ( 1 ) 91 #error Module not supported 95 #define NB_FACTORY_BASE_DESC "Network to Serial" 98 #define NB_FACTORY_FEATURE_NAME "SX" 99 #define NB_FACTORY_FEATURE_DESC "Securable Network to Serial" 103 #if (defined SB70LC ) //|| defined MCF5441X || defined NANO54415) 104 #define SUPPORTED_I2C_PLATFORM 110 #if ( defined NANO54415 || defined PK70 ) 111 #define NB_FACTORY_SERIAL_PORTS ( 5 ) 113 #define NB_FACTORY_SERIAL_PORTS ( 2 ) 116 #define NB_FACTORY_I2C_PORTS ( 1 ) 119 #define NB_FACTORY_INCLUDE_SSL ( 1 ) 122 #define NB_FACTORY_INCLUDE_SSH ( 1 ) 127 #define NB_FACTORY_PROTOCOL_DEFAULT ( 2 ) 128 #define NB_FACTORY_LISTEN_PORT_DEFAULT IANA_TELNET_PORT // Port 23 129 #define NB_FACTORY_INACTIVITY_TIMEOUT_DEFAULT ( 60 ) 130 #define NB_FACTORY_NEW_CONNECTION_TIMEOUT_DEFAULT ( 30 ) 133 #define NB_FACTORY_I2C_LISTEN_PORT_DEFAULT ( 26 ) 136 #define NB_FACTORY_CONNECT_MODE_DEFAULT ( 1 ) 139 #define NB_FACTORY_CONNECT_PORT_DEFAULT ( 1000 ) 142 #define NB_FACTORY_CONNECT_ADDRESS ( 0 ) 144 #define NB_CONNECT_IDLE_TIMEOUT_DEFAULT ( 60 ) 145 #define NB_CONNECT_RETRY_TIMEOUT_DEFAULT ( 360 ) 146 #define NB_CONENCT_KEEP_ALIVE_INTERVAL_DEFAULT ( 0 ) 148 #define NB_FACTORY_NTPSERVERNAME_DEFAULT "pool.ntp.org" 154 #define NB_FACTORY_SERIAL_MODE_DEFAULT ( 1 ) 157 #define NB_FACTORY_SERIAL_CAPABILITY_FULL ( 0 ) 158 #define NB_FACTORY_SERIAL_CAPABILITY_RS232 ( 1 ) 159 #define NB_FACTORY_SERIAL_CAPABILITY_RS485 ( 2 ) 160 #define NB_FACTORY_SERIAL_CAPABILITY_HYBRID ( 3 ) 161 #define NB_FACTORY_SERIAL_CAPABILITY_QUAD485 ( 4 ) 162 #define NB_FACTORY_SERIAL_CAPABILITY_QUADMMS ( 5 ) 168 #if ( defined SB70 || defined SB70B ) 169 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 170 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 172 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 173 NB_FACTORY_SERIAL_CAPABILITY_RS232 \ 176 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 177 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 179 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 180 NB_FACTORY_SERIAL_CAPABILITY_FULL \ 183 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 184 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 186 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 187 NB_FACTORY_SERIAL_CAPABILITY_RS232 \ 190 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 191 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 193 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 194 NB_FACTORY_SERIAL_CAPABILITY_RS232 \ 197 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 198 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 200 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 201 NB_FACTORY_SERIAL_CAPABILITY_RS232 \ 204 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 205 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 207 NB_FACTORY_SERIAL_CAPABILITY_HYBRID, \ 208 NB_FACTORY_SERIAL_CAPABILITY_RS485 \ 211 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 212 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 214 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 215 NB_FACTORY_SERIAL_CAPABILITY_RS232 \ 218 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 219 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 221 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 222 NB_FACTORY_SERIAL_CAPABILITY_RS232 \ 225 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 226 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 228 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 229 NB_FACTORY_SERIAL_CAPABILITY_RS232 \ 232 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 233 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 235 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 236 NB_FACTORY_SERIAL_CAPABILITY_RS232 \ 239 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 1 ) 240 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 242 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 243 NB_FACTORY_SERIAL_CAPABILITY_FULL \ 248 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 249 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 251 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 252 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 253 NB_FACTORY_SERIAL_CAPABILITY_FULL, \ 254 NB_FACTORY_SERIAL_CAPABILITY_RS232, \ 255 NB_FACTORY_SERIAL_CAPABILITY_RS232 \ 258 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 259 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 261 NB_FACTORY_SERIAL_CAPABILITY_RS232, \ 262 NB_FACTORY_SERIAL_CAPABILITY_RS232, \ 263 NB_FACTORY_SERIAL_CAPABILITY_RS232, \ 264 NB_FACTORY_SERIAL_CAPABILITY_RS232, \ 265 NB_FACTORY_SERIAL_CAPABILITY_RS232 \ 268 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 269 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 271 NB_FACTORY_SERIAL_CAPABILITY_RS232, \ 272 NB_FACTORY_SERIAL_CAPABILITY_QUAD485, \ 273 NB_FACTORY_SERIAL_CAPABILITY_QUAD485, \ 274 NB_FACTORY_SERIAL_CAPABILITY_QUAD485, \ 275 NB_FACTORY_SERIAL_CAPABILITY_QUAD485 \ 278 #define NB_FACTORY_DEBUG_SERIAL_PORT_DEFAULT ( 0 ) 279 #define NB_FACTORY_SERIAL_PORT_MODE_CAPABILITY \ 281 NB_FACTORY_SERIAL_CAPABILITY_RS232, \ 282 NB_FACTORY_SERIAL_CAPABILITY_QUADMMS, \ 283 NB_FACTORY_SERIAL_CAPABILITY_QUADMMS, \ 284 NB_FACTORY_SERIAL_CAPABILITY_QUADMMS, \ 285 NB_FACTORY_SERIAL_CAPABILITY_QUADMMS \ 288 #error Module not supported 293 #define NB_FACTORY_SERIAL_DATA_RATE_DEFAULT ( 115200 ) 294 #define NB_FACTORY_SERIAL_CUSTOM_DATA_RATE_DEFAULT ( 0 ) 295 #define NB_FACTORY_SERIAL_DATA_BITS_DEFAULT ( 8 ) 296 #define NB_FACTORY_SERIAL_STOP_BITS_DEFAULT ( 1 ) 300 #define NB_FACTORY_I2C_IC_DEFAULT ( 0x16 ) 301 #define NB_FACTORY_I2C_FREQ_DIVIDER_DEFAULT ( 768 ) 302 #define NB_FACTORY_I2C_CUSTOM_DATA_RATE_DEFAULT ( 0 ) 303 #define NB_FACTORY_I2C_ADDRESS_DEFAULT ( 0x08 ) 307 #define NB_FACTORY_SERIAL_PARITY_DEFAULT ( 1 ) 310 #define NB_FACTORY_SERIAL_FLOW_CONTROL_DEFAULT ( 1 ) 314 #define NB_FACTORY_SERIAL_JUMPER_PAGE_ENABLED ( 1 ) 317 #define NB_FACTORY_BREAK_INTERVAL_DEFAULT ( 20 ) 318 #define NB_FACTORY_BREAK_KEY_FLAG_DEFAULT ( 0 ) 319 #define NB_FACTORY_BREAK_KEY_VALUE_DEFAULT ( 0x02 ) 322 #define NB_FACTORY_SSL_PERMANENT_DESC_DEFAULT "NetBurner Library Default " 323 #define NB_FACTORY_SSL_INCLUDED_DESC_DEFAULT "Default " 324 #define NB_FACTORY_SSL_INSTALLED_DESC_DEFAULT "User Installed " 326 #define NB_FACTORY_SSL_FILE_NAME_CERT "cert.crt" 327 #define NB_FACTORY_SSL_FILE_NAME_KEY "cert.key" 330 #define NB_FACTORY_INACTIVITY_TIMEOUT_SSH_DEFAULT ( 360 ) 331 #define NB_FACTORY_NEW_CONNECTION_TIMEOUT_SSH_DEFAULT ( 180 ) 333 #define NB_FACTORY_SSH_PERMANENT_KEY_DESC_DEFAULT "NetBurner Library Default " 334 #define NB_FACTORY_SSH_INCLUDED_KEY_DESC_DEFAULT "Default " 335 #define NB_FACTORY_SSH_INSTALLED_KEY_DESC_DEFAULT "User Installed " 337 #define NB_FACTORY_SSH_FILE_NAME_KEY_RSA "rsa.key" 338 #define NB_FACTORY_SSH_FILE_NAME_KEY_DSA "dsa.key" 341 #define NB_FACTORY_ACCUMULATED_CHARS_UDP_DEFAULT ( 32 ) 342 #define NB_FACTORY_WAIT_UDP_IN_TICKS_DEFAULT ( 100 ) 343 #define NB_FACTORY_TRIGGER_CHAR_UDP_DEFAULT ( 0x00 ) 344 #define NB_FACTORY_LEARN_UDP_DEFAULT ( FALSE ) 345 #define NB_FACTORY_CHECK_FRAMING_CHAR_UDP_DEFAULT ( FALSE ) 348 #define NB_FACTORY_ACCUMULATED_CHARS_TCP_DEFAULT ( 32 ) 349 #define NB_FACTORY_WAIT_TCP_IN_TICKS_DEFAULT ( 100 ) 350 #define NB_FACTORY_TRIGGER_CHAR_TCP_DEFAULT ( 0x00 ) 351 #define NB_FACTORY_CUSTOM_FRAME_TCP_DEFAULT ( FALSE ) 352 #define NB_FACTORY_CHECK_FRAMING_CHAR_TCP_DEFAULT ( FALSE ) 355 #define NB_FACTORY_DHCP_TIMEOUT_IN_TICKS ( 10 * TICKS_PER_SECOND ) 364 #define NB_FACTORY_FILE_SIZE_MAXIMUM ( 4 * 1024 ) 375 #define NB_FACTORY_FLASH_500KB_1KB_SECTORS ( 1 ) 377 #define NB_FACTORY_FS_FLASHBASE ( 0xFFC00000 ) 382 #define NB_FACTORY_FLASH_500KB_1KB_SECTORS ( 1 ) 384 #define NB_FACTORY_FS_FLASHBASE ( 0xFFC00000 ) 389 #define NB_FACTORY_FLASH_500KB_1KB_SECTORS ( 1 ) 391 #define NB_FACTORY_FS_FLASHBASE ( 0xFFC00000 ) 394 #elif defined MOD5270 396 #define NB_FACTORY_FLASH_500KB_1KB_SECTORS ( 1 ) 398 #define NB_FACTORY_FS_FLASHBASE ( 0xFFC00000 ) 401 #elif defined MOD5234 403 #define NB_FACTORY_FLASH_2MB_16KB_SECTORS ( 1 ) 405 #define NB_FACTORY_FS_FLASHBASE ( 0xFFC00000 ) 408 #elif defined MOD5282 410 #define NB_FACTORY_FLASH_500KB_1KB_SECTORS ( 1 ) 412 #define NB_FACTORY_FS_FLASHBASE ( 0xFFC00000 ) 417 #define NB_FACTORY_FLASH_2MB_16KB_SECTORS ( 1 ) 419 #define NB_FACTORY_FS_FLASHBASE ( 0xFFC00000 ) 422 #elif defined MOD5272 424 #define NB_FACTORY_FLASH_2MB_16KB_SECTORS ( 1 ) 426 #define NB_FACTORY_FS_FLASHBASE ( 0xFFC00000 ) 431 #define NB_FACTORY_FLASH_500KB_1KB_SECTORS ( 1 ) 433 #define NB_FACTORY_FS_FLASHBASE ( 0xFFC00000 ) 438 #define NB_FACTORY_FLASH_2MB_16KB_SECTORS ( 1 ) 440 #define NB_FACTORY_FS_FLASHBASE ( 0xFFC00000 ) 443 #elif defined SB700EX 445 #define NB_FACTORY_FLASH_2MB_16KB_SECTORS ( 1 ) 447 #define NB_FACTORY_FS_FLASHBASE ( 0xFFC00000 ) 450 #elif defined SB800EX 452 #define NB_FACTORY_FLASH_SPI_8MB_4KB_SECTORS ( 1 ) 457 #elif defined NANO54415 459 #define NB_FACTORY_FLASH_SPI_8MB_4KB_SECTORS ( 1 ) 466 #define NB_FACTORY_FLASH_4MB_64KB_SECTORS ( 1 ) 468 #define NB_FACTORY_FS_FLASHBASE ( 0xFF800000 ) 472 #error Module not supported 476 #define SYSTEM_CONFIG_RECORD_KEY_PSK_MAX_SIZE SYSTEM_CONFIG_RECORD_WPA_PSK_SIZE_MAX