cc3000 hostdriver with the mbed socket interface
Dependents: cc3000_hello_world_demo cc3000_simple_socket_demo cc3000_ntp_demo cc3000_ping_demo ... more
Diff: cc3000.cpp
- Revision:
- 47:a63fe1a4f568
- Parent:
- 46:ca8c234997c0
- Child:
- 48:192e2fde71e9
diff -r ca8c234997c0 -r a63fe1a4f568 cc3000.cpp
--- a/cc3000.cpp Sun Nov 10 21:41:44 2013 +0100
+++ b/cc3000.cpp Tue Jan 20 09:04:49 2015 +0000
@@ -434,6 +434,17 @@
_nvmem.read( NVMEM_USER_FILE_1_FILEID, size, 0, info_file);
}
+uint8_t cc3000::read_sp_version(uint8_t firmware[2]){
+ return _nvmem.read_sp_version(firmware);
+ }
+
+uint8_t cc3000::write_patch(uint32_t file_id, uint32_t length, const uint8_t *data){
+ if(file_id == NVMEM_WLAN_DRIVER_SP_FILEID || file_id == NVMEM_WLAN_FW_SP_FILEID){
+ return _nvmem.write_patch(file_id, length, data);
+ }
+ else return (1); // error
+}
+
#ifndef CC3000_TINY_DRIVER
bool cc3000::get_ip_config(tNetappIpconfigRetArgs *ip_config) {
if ((_status.dhcp == false) || (_status.connected == false)) {
SimpleLink Wi-Fi CC3000
Avnet Wi-Go System