Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: CC3000Spi/DigitalClass.cpp
- Revision:
- 0:6ad60d78b315
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CC3000Spi/DigitalClass.cpp Sat Sep 14 17:38:41 2013 +0000 @@ -0,0 +1,19 @@ + +#include "mbed.h" +#include "DigitalClass.h" + + +DigitalClass::DigitalClass(PinName Pin_IRQ, PinName Pin_EN) : WLAN_IRQ(Pin_IRQ), WLAN_EN(Pin_EN) +{ +WLAN_EN = 0; + +// This delay is needed. I guess the CC3000 needs time to do some house keeping +// as the pin is at ~+2 volts before going low then high. + +wait_ms(10); + + +//WLAN_IRQ(p9) p0.0 interrupt pin CC3000 j5 pin 8 +//WLAN_EN(p10) power enable CC3000 j4 pin 8 +} +