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_wlan.cpp
- Revision:
- 34:1ad18123bf11
- Parent:
- 33:9e23b24fb4f3
- Child:
- 45:50ab13d8f2dc
diff -r 9e23b24fb4f3 -r 1ad18123bf11 cc3000_wlan.cpp
--- a/cc3000_wlan.cpp Tue Oct 08 07:04:07 2013 +0200
+++ b/cc3000_wlan.cpp Tue Oct 08 13:13:05 2013 +0200
@@ -84,7 +84,7 @@
// Check the IRQ line
spi_irq_state = _spi.wlan_irq_read();
// ASIC 1273 chip enable: toggle WLAN EN line
- _spi.write_wlan_en(WLAN_ENABLE);
+ _spi.set_wlan_en(WLAN_ENABLE);
if (spi_irq_state)
{
@@ -113,7 +113,7 @@
void cc3000_wlan::stop() {
// ASIC 1273 chip disable
- _spi.write_wlan_en( WLAN_DISABLE );
+ _spi.set_wlan_en( WLAN_DISABLE );
// Wait till IRQ line goes high...
while(_spi.wlan_irq_read() == 0)
SimpleLink Wi-Fi CC3000
Avnet Wi-Go System