Driver for CC3000 Wi-Fi module
Dependencies: NVIC_set_all_priorities
Dependents: CC3000_Simple_Socket Wi-Go_IOT_Demo
Information
The current code has been reworked to a full object oriented application and contains an mbed socket compatible API.
CC3000 Wi-Fi module library
Info
This is the low level driver for TI's SimpleLink CC3000 device.
Port from Avnet's Wi-Go KEIL code (based on TI's CC3000 code).
Special thanks to Jim Carver from Avnet for providing the Wi-Go board and for his assistance.
Differences with TI's original code
The code functionality stays exactly the same.
In order to make it easier to use the code, following changes were made :
- Addition of a tool to shift all IRQ priorities to a lower level since it is very important to keep the SPI handler at the highest system priority, the WLAN interrupt the second highest and all other system interrupts at a lower priority, so their handlers can be preempted by the CC3000 interrupts.
- Addition of low level I/O controls and conditional compiler controls in cc3000_common.h.
- CC3000 initialisation, pin declarations, SPI and WLAN irq priorities are set in
Init_HostDriver
, we need to call this function at the start of the main function. - The SPI and HCI code are joined into one file.
- The include list has been rearranged - Only
#include "wlan.h"
is needed in the user API.
- Part of the CC3000's user eeprom memory is used to store additional info (52 bytes in NVMEM_USER_FILE_1):
# bytes | Description | Info |
1 | First time config parameter | Useful when connecting |
2 | Firmware updater version | used with the Firmware update tool |
2 | Service Pack version | used with the Firmware update tool |
3 | Driver Version | used with the Firmware update tool |
3 | Firmware Version | used with the Firmware update tool |
1 | CIK validation (Client Interface Key) | |
40 | CIK data (Client Interface Key) | used with the exosite |
Using the Library
A user API is needed to access the CC3000 functions.
Examples:
- Internet Of Things full WiGo demo (SmartConfig - WebServer - Exosite - Android sensor Fusion App)
- CC3000_Simple_Socket
Using the library with other processors
cc3000_common.cpp
loads the irq tool for all targets:
All current mbed targets are supported by this library.
#include "NVIC_set_all_priorities.h"
All low level settings that need to change are available in cc3000_common.h
//***************************************************************************** // PIN CONTROLS & COMPILE CONTROLS //***************************************************************************** // Compiler control #define CC3000_UNENCRYPTED_SMART_CONFIG // No encryption //#define CC3000_TINY_DRIVER // Driver for small memory model CPUs //Interrupt controls #define NVIC_ALL_IRQ NVIC_set_all_irq_priorities(3); // Set ALL interrupt priorities to level 3 #define NVIC_SPI_IRQ NVIC_SetPriority(SPI0_IRQn, 0x0); // Wi-Fi SPI interrupt must be higher priority than SysTick #define NVIC_PORT_IRQ NVIC_SetPriority(PORTA_IRQn, 0x1); #define NVIC_SYSTICK_IRQ NVIC_SetPriority(SysTick_IRQn, 0x2); // SysTick set to lower priority than Wi-Fi SPI bus interrupt //#define NVIC_ADC_IRQ NVIC_SetPriority(ADC0_IRQn, 0x3); // ADC is the lowest of all // Wlan controls #define WLAN_ISF_PCR PORTA->PCR[16] #define WLAN_ISF_ISFR PORTA->ISFR #define WLAN_ISF_MASK (1<<16) #define WLAN_ASSERT_CS wlan_cs = 0; //CS : active low #define WLAN_DEASSERT_CS wlan_cs = 1; #define WLAN_ASSERT_EN wlan_en = 1; //EN : active high #define WLAN_DEASSERT_EN wlan_en = 0; #define WLAN_READ_IRQ wlan_int #define WLAN_ENABLE_IRQ wlan_int.fall(&WLAN_IRQHandler); #define WLAN_DISABLE_IRQ wlan_int.fall(NULL); #define WLAN_IRQ_PIN_CREATE InterruptIn wlan_int (PTA16); #define WLAN_EN_PIN_CREATE DigitalOut wlan_en (PTA13); #define WLAN_CS_PIN_CREATE DigitalOut wlan_cs (PTD0); #define WLAN_SPI_PORT_CREATE SPI wlan(PTD2, PTD3, PTC5); // mosi, miso, sclk #define WLAN_SPI_PORT_INIT wlan.format(8,1); #define WLAN_SPI_SET_FREQ wlan.frequency(12000000); #define WLAN_SPI_SET_IRQ_HANDLER wlan_int.fall(&WLAN_IRQHandler); #define WLAN_SPI_WRITE wlan.write(*data++); #define WLAN_SPI_READ wlan.write(0x03); // !! DO NOT MODIFY the 0x03 parameter (CC3000 will not respond).
API documentation
Due to a little problem with the links on the mbed site, the API documentation is not directly accessible (will be solved in a next release).
Currently, it is only accessible by adding modules.html
to the API doc link: http://mbed.org/users/frankvnk/code/CC3000_Hostdriver/docs/tip/modules.html
Revision 7:875e62bb780c, committed 2013-08-02
- Comitter:
- frankvnk
- Date:
- Fri Aug 02 15:19:38 2013 +0000
- Parent:
- 6:d733efcc2c56
- Child:
- 8:b48bb4df9319
- Commit message:
- final clean up - removed cc3000.cpp/.h
Changed in this revision
--- a/GlobalAssigns.h Sun Jul 28 19:22:18 2013 +0000 +++ b/GlobalAssigns.h Fri Aug 02 15:19:38 2013 +0000 @@ -3,6 +3,10 @@ #include "mbed.h" +// Compiler control +#define CC3000_UNENCRYPTED_SMART_CONFIG // No encryption +//#define CC3000_TINY_DRIVER // Driver for small memory model CPUs + // Wlan controls #define WLAN_ISF_PCR PORTA->PCR[16] @@ -17,9 +21,7 @@ #define WLAN_READ_IRQ wlan_int -//#define WLAN_ENABLE_IRQ NVIC_EnableIRQ(PORTA_IRQn); #define WLAN_ENABLE_IRQ wlan_int.fall(&WLAN_IRQHandler); -//#define WLAN_DISABLE_IRQ NVIC_DisableIRQ(PORTA_IRQn); #define WLAN_DISABLE_IRQ wlan_int.fall(NULL); #define WLAN_IRQ_PIN_CREATE InterruptIn wlan_int (PTA16);
--- a/cc3000.cpp Sun Jul 28 19:22:18 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,249 +0,0 @@ -/***************************************************************************** -* -* cc3000 - CC3000 Functions Implementation -* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions -* are met: -* -* Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the -* distribution. -* -* Neither the name of Texas Instruments Incorporated nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -* -*****************************************************************************/ - -#include "cc3000.h" - -WLAN_IRQ_PIN_CREATE; -WLAN_EN_PIN_CREATE; -WLAN_CS_PIN_CREATE; -WLAN_SPI_PORT_CREATE; - -// Smart Config Prefix -char aucCC3000_prefix[] = {'T', 'T', 'T'}; - -long ulSocket; - -// Indicates whether the Smart Config Process has finished -unsigned long ulSmartConfigFinished; - -unsigned char pucIP_Addr[4]; -unsigned char pucIP_DefaultGWAddr[4]; -unsigned char pucSubnetMask[4]; -unsigned char pucDNS[4]; - -sockaddr tSocketAddr; - -unsigned char prefixChangeFlag = 0; -unsigned char prefixFromUser[3] = {0}; -char * ftcPrefixptr; - - -tNetappIpconfigRetArgs ipinfo; - -char debugi = 0; -// First Time Config Prefix - Texas Instruments -// NOTE: the actual value of the prefix may change -// if the Prefix Change process is performed -//const char aucCC3000_prefix[3] = {'T', 'T', 'T'}; -char cc3000state = CC3000_UNINIT; - -extern char OkToDoShutDown = 0; - -#ifdef PATCHPROGRAMMER_ENABLE // ---------------------------------- PatchpProgrammer code - -#else // ---------------------------------------------------------- PATCHPROGRAMMER_ENABLE end -#endif // -------------------------------------------------------- NON-PATCHPROGRAMMER_ENABLE end - - -char *sendDriverPatch(unsigned long *Length) -{ - *Length = 0; - return NULL; -} - - -char *sendBootLoaderPatch(unsigned long *Length) -{ - *Length = 0; - return NULL; -} - - -char *sendWLFWPatch(unsigned long *Length) -{ - *Length = 0; - return NULL; -} - - -void CC3000_UsynchCallback(long lEventType, char * data, unsigned char length) -{ -} - - -int initDriver(unsigned short cRequestPatch) -{ - // WLAN On API Implementation - wlan_init( CC3000_UsynchCallback, - sendWLFWPatch, - sendDriverPatch, - sendBootLoaderPatch, - ReadWlanInterruptPin, - WlanInterruptEnable, - WlanInterruptDisable, - WriteWlanPin); - wait_us(450); - // Trigger a WLAN device - wlan_start(cRequestPatch); - wlan_smart_config_set_prefix(aucCC3000_prefix); -// wlan_ioctl_set_connection_policy(0, 0, 0); -// wlan_ioctl_del_profile(255); - - // Mask out all non-required events from CC3000 - wlan_set_event_mask(HCI_EVNT_WLAN_KEEPALIVE| - HCI_EVNT_WLAN_UNSOL_INIT| - HCI_EVNT_WLAN_ASYNC_PING_REPORT); - - return(0); -} - - -unsigned char fat_read_content(unsigned char *is_allocated, - unsigned char *is_valid, - unsigned char *write_protected, - unsigned short *file_address, - unsigned short *file_length) -{ - unsigned short index; - unsigned char ucStatus; - unsigned char fatTable[48]; - unsigned char* fatTablePtr = fatTable; - - // read the FAT - ucStatus = nvmem_read(16, 48, 4, fatTable); - - fatTablePtr = fatTable; - - for (index = 0; index <= NVMEM_RM_FILEID; index++) - { - *is_allocated++ = (*fatTablePtr) & BIT0; - *is_valid++ = ((*fatTablePtr) & BIT1) >> 1; - *write_protected++ = ((*fatTablePtr) & BIT2) >> 2; - *file_address++ = (*(fatTablePtr+1)<<8) | (*fatTablePtr) & (BIT4|BIT5|BIT6|BIT7); - *file_length++ = (*(fatTablePtr+3)<<8) | (*(fatTablePtr+2)) & (BIT4|BIT5|BIT6|BIT7); - - // move to next file ID - fatTablePtr += 4; - } - - return ucStatus; -} - - -unsigned char fat_write_content(unsigned short const *file_address, unsigned short const *file_length) -{ - unsigned short index = 0; - unsigned char ucStatus; - unsigned char fatTable[4*NVMEM_MAX_ENTRY]; - unsigned char* fatTablePtr = fatTable; - - // first, write the magic number - ucStatus = nvmem_write(16, 2, 0, (unsigned char*)"LS"); - - for (; index <= NVMEM_MAX_ENTRY; index++) - { - // write address low char and mark as allocated - *fatTablePtr++ = (unsigned char)(file_address[index] & 0xff) | BIT0; - - // write address high char - *fatTablePtr++ = (unsigned char)((file_address[index]>>8) & 0xff); - - // write length low char - *fatTablePtr++ = (unsigned char)(file_length[index] & 0xff); - - // write length high char - *fatTablePtr++ = (unsigned char)((file_length[index]>>8) & 0xff); - } - - // second, write the FAT - ucStatus = nvmem_write(16, 4 * NVMEM_MAX_ENTRY, 4, fatTable); - /* - // third, we want to erase any user files - memset(fatTable, 0, sizeof(fatTable)); - ucStatus = nvmem_write(16, 16, 52, fatTable); - */ - printf("usStatus= %d\n", ucStatus); - return ucStatus; -} - - -void Init_HostDriver(void) -{ - // Clear pending interrupt - WLAN_ISF_PCR |= PORT_PCR_ISF_MASK; - WLAN_ISF_ISFR |= WLAN_ISF_MASK; - //Initial state for wlan module : EN = 0 (disabled) and CS = 1 (not selected). - WLAN_DEASSERT_EN; - WLAN_DEASSERT_CS; - - WLAN_SPI_PORT_INIT; - WLAN_SPI_SET_FREQ; - WLAN_SPI_SET_IRQ_HANDLER; -} - - -long ReadWlanInterruptPin(void) -{ - return (WLAN_READ_IRQ); -} - - -void WlanInterruptEnable() -{ - WLAN_ENABLE_IRQ; -} - - -void WlanInterruptDisable() -{ - WLAN_DISABLE_IRQ; -} - - -void WriteWlanPin( unsigned char val ) -{ - if (val) - { - WLAN_ASSERT_EN; - } - else - { - WLAN_DEASSERT_EN; - } -} - - - -
--- a/cc3000.h Sun Jul 28 19:22:18 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,236 +0,0 @@ -/***************************************************************************** -* -* cc3000.h - CC3000 Function Definitions -* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions -* are met: -* -* Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the -* distribution. -* -* Neither the name of Texas Instruments Incorporated nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -* -*****************************************************************************/ - -#ifndef CC3000_H -#define CC3000_H - -#include "wlan.h" - -//***************************************************************************** -// -//! \addtogroup cc3000 -//! @{ -// -//***************************************************************************** - -/** CC3000 Functions -* -*/ -#ifdef __cplusplus -extern "C" { -#endif - -#define SOCKET_INACTIVE_ERR -57 - - -#define NUM_STATES 6 -#define FIRST_STATE_LED_NUM 1 -#define MAX_SSID_LEN 32 - -#define FIRST_TIME_CONFIG_SET 0xAA - -#define BIT0 0x1 -#define BIT1 0x2 -#define BIT2 0x4 -#define BIT3 0x8 -#define BIT4 0x10 -#define BIT5 0x20 -#define BIT6 0x40 -#define BIT7 0x80 - - -#ifdef PATCHPROGRAMMER_ENABLE // ---------------------------------- PatchpProgrammer code -#else // ---------------------------------------------------------- PATCHPROGRAMMER_ENABLE end -#endif // -------------------------------------------------------- NON-PATCHPROGRAMMER_ENABLE end - - -// CC3000 State Machine Definitions -enum cc3000StateEnum -{ - CC3000_UNINIT = 0x01, // CC3000 Driver Uninitialized - CC3000_INIT = 0x02, // CC3000 Driver Initialized - CC3000_ASSOC = 0x04, // CC3000 Associated to AP - CC3000_IP_ALLOC = 0x08, // CC3000 has IP Address - CC3000_SERVER_INIT = 0x10, // CC3000 Server Initialized - CC3000_CLIENT_CONNECTED = 0x20 // CC3000 Client Connected to Server -}; - -/** Return a pointer to the driver patch. -* Since there is no patch, 0 is returned\n -* (the patches are taken from the EEPROM and not from the host)\n -* @param pointer to the length -* @return NULL -*/ -char *sendDriverPatch(unsigned long *Length); - -/** -* Return a pointer to the bootloader patch. -* since there is no patch, 0 is returned \n -* (the patches are taken from the EEPROM and not from the host)\n -* @param pointer to the length -* @return NULL -*/ -char *sendBootLoaderPatch(unsigned long *Length); - -/** -* Return a pointer to the firmware patch. -* since there is no patch, 0 is returned\n -* (the patches are taken from the EEPROM and not from the host)\n -* @param pointer to the length -* @return NULL -*/ -char *sendWLFWPatch(unsigned long *Length); - -/** -* Handle asynchronous events from CC3000 device -* @param lEventType Event type -* @param data -* @param length -* @return none -*/ -void CC3000_UsynchCallback(long lEventType, char * data, unsigned char length); - -/** -* Read Wlan Interrupt pin -* @param none -* @return wlan interrup pin level -*/ -long ReadWlanInterruptPin(void); - -/** -* Enable waln IrQ pin -* @param none -* @return none -*/ -void WlanInterruptEnable(void); - -/** -* Disable waln IrQ pin -* @param none -* @return none -*/ -void WlanInterruptDisable(void); - -/** -* WriteWlanPin -* @param val (1: enable - 0: disable) -* @return none -*/ -void WriteWlanPin( unsigned char val ); - -/** -* Initialize a CC3000 device and triggers it to start operation -* @param cRequestPatch : 0 to load with EEPROM patches and 1 to load with no patches -* @return none -*/ -int initDriver(unsigned short cRequestPatch); - -/** -* parse the FAT table from eeprom -* @param[out] is_allocated array of is_allocated in FAT table (0: not allocated - 1: allocated).\n -* an allocated entry implies the address and length of the file are valid.\n -* @param[out] is_valid array of is_valid in FAT table (0: not valid - 1: valid).\n -* a valid entry implies the content of the file is relevant.\n -* @param[out] write_protected array of write_protected in FAT table (0: not allocated - 1: allocated).\n -* a write protected entry implies it is not possible to write into this entry.\n -* @param[out] file_address array of file address in FAT table.\n -* this is the absolute address of the file in the EEPROM.\n -* @param[out] file_length array of file length in FAT table.\n -* this is the upper limit of the file size in the EEPROM.\n -* @return 0 on succes, error otherwise -*/ -unsigned char fat_read_content(unsigned char *is_allocated, - unsigned char *is_valid, - unsigned char *write_protected, - unsigned short *file_address, - unsigned short *file_length); - -/** -* Parse the FAT table from eeprom -* @param[in] file_address array of file address in FAT table.\n -* this is the absolute address of the file in the EEPROM.\n -* @param[in] file_length array of file length in FAT table.\n -* this is the upper limit of the file size in the EEPROM.\n -* @return 0 on succes, error otherwise -*/ -unsigned char fat_write_content(unsigned short const *file_address, unsigned short const *file_length); - -/** -* Set basic controls and parameters for the HostDriver -* @param none -* @return none -*/ -extern void Init_HostDriver(void); - - -int ConnectUsingSSID(char * ssidName); -void SetupIPAddress (unsigned char ub, unsigned char mub, unsigned char mlb,unsigned char lb); -void setupLocalSocket(void); -void ConnectToServer(void); -void ConnectToServer(void); -void unsolicicted_events_timer_init(void); -void unsolicicted_events_timer_disable(void); -void StartFirstTimeConfig(void); -void closeLocalSocket(void); -void disconnectAll(void); -char isFTCSet(void); -void setFTCFlag(void); - - -// Machine State -char currentCC3000State(void); -void setCC3000MachineState(char stat); -void unsetCC3000MachineState(char stat); -void resetCC3000StateMachine(void); -char highestCC3000State(void); - -tNetappIpconfigRetArgs * getCC3000Info(void); - -#ifdef __cplusplus -} -#endif // __cplusplus - -//***************************************************************************** -// -// Close the Doxygen group. -//! @} -// -//***************************************************************************** - -#endif // CC3000_H - - - -
--- a/cc3000_common.h Sun Jul 28 19:22:18 2013 +0000 +++ b/cc3000_common.h Fri Aug 02 15:19:38 2013 +0000 @@ -52,11 +52,6 @@ extern "C" { #endif -// Compiler control -#define CC3000_UNENCRYPTED_SMART_CONFIG // No encryption -//#define CC3000_TINY_DRIVER // Driver for small memory model CPUs -#define PATCHPROGRAMMER_ENABLE // !!!Only enable this when you want to upload new firmware - //***************************************************************************** // ERROR CODES //***************************************************************************** @@ -293,3 +288,4 @@ +
--- a/nvmem.cpp Sun Jul 28 19:22:18 2013 +0000 +++ b/nvmem.cpp Fri Aug 02 15:19:38 2013 +0000 @@ -44,7 +44,6 @@ ptr = tSLInformation.pucTxCommandBuffer; args = (ptr + HEADERS_SIZE_CMD); - // Fill in HCI packet structure args = UINT32_TO_STREAM(args, ulFileId); args = UINT32_TO_STREAM(args, ulLength);
--- a/nvmem.h Sun Jul 28 19:22:18 2013 +0000 +++ b/nvmem.h Fri Aug 02 15:19:38 2013 +0000 @@ -68,6 +68,28 @@ ** Definitions for File IDs ** ****************************************************************************/ +/* --------------------------------------------------------- EEPROM FAT table --------------------------------------------------------- + + File ID Offset File Size Used Size Parameter + # ID address (bytes) (bytes) + -------------------------------------------------------------------------------------------------------------------------------------- + 0 NVMEM_NVS_FILEID 0x50 0x1A0 0x1A RF Calibration results table(generated automatically by TX Bip) + 1 NVMEM_NVS_SHADOW_FILEID 0x1F0 0x1A0 0x1A NVS Shadow + 2 NVMEM_WLAN_CONFIG_FILEID 0x390 0x1000 0x64 WLAN configuration + 3 NVMEM_WLAN_CONFIG_SHADOW_FILEID 0x1390 0x1000 0x64 WLAN configuration shadow + 4 NVMEM_WLAN_DRIVER_SP_FILEID 0x2390 0x2000 variable WLAN Driver ROM Patches + 5 NVMEM_WLAN_FW_SP_FILEID 0x4390 0x2000 variable WLAN FW Patches + 6 NVMEM_MAC_FILEID 0x6390 0x10 0x10 6 bytes of MAC address + 7 NVMEM_FRONTEND_VARS_FILEID 0x63A0 0x10 0x10 Frontend Vars + 8 NVMEM_IP_CONFIG_FILEID 0x63B0 0x40 0x40 IP configuration + 9 NVMEM_IP_CONFIG_SHADOW_FILEID 0x63F0 0x40 0x40 IP configuration shadow +10 NVMEM_BOOTLOADER_SP_FILEID 0x6430 0x400 variable Bootloader Patches +11 NVMEM_RM_FILEID 0x6830 0x200 0x7F Radio parameters +12 NVMEM_AES128_KEY_FILEID 0x6A30 0x10 0x10 AES128 key file +13 NVMEM_SHARED_MEM_FILEID 0x6A40 0x50 0x44 Host-CC3000 shared memory file +14 NVMEM_USER_FILE_1_FILEID 0x6A90 variable variable 1st user file +15 NVMEM_USER_FILE_2_FILEID variable variable variable 2nd user file +*/ /* NVMEM file ID - system files*/ #define NVMEM_NVS_FILEID (0) #define NVMEM_NVS_SHADOW_FILEID (1)