David Fletcher / Mbed 2 deprecated CC3000WebServer

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers DigitalClass.cpp Source File

DigitalClass.cpp

00001 
00002 #include "mbed.h"
00003 #include "DigitalClass.h"
00004 
00005 
00006 DigitalClass::DigitalClass(PinName Pin_IRQ, PinName Pin_EN) : WLAN_IRQ(Pin_IRQ), WLAN_EN(Pin_EN)
00007 {
00008 WLAN_EN = 0;
00009 
00010 // This delay is needed. I guess the CC3000 needs time to do some house keeping 
00011 // as the pin is at ~+2 volts before going low then high.
00012 
00013 wait_ms(10);  
00014 
00015 
00016 //WLAN_IRQ(p9)  p0.0 interrupt pin CC3000 j5 pin 8
00017 //WLAN_EN(p10) power enable CC3000 j4 pin 8
00018 }
00019