This example shows how to enable WiFi chip, and disable the interface between BLE & WiFi of NNN50, thus the external Host MCU can use SPI interface to control WiFi under linux base OS
Dependencies: NNN50_WIFI_API mbed
Revision 1:ec278fc8dd60, committed 2017-03-16
- Comitter:
- janshiue
- Date:
- Thu Mar 16 09:12:35 2017 +0000
- Parent:
- 0:e5bfd809875e
- Commit message:
- [fix bug]SPI_SSN should be set as input
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e5bfd809875e -r ec278fc8dd60 main.cpp --- a/main.cpp Mon Mar 13 09:48:50 2017 +0000 +++ b/main.cpp Thu Mar 16 09:12:35 2017 +0000 @@ -22,7 +22,7 @@ DigitalOut WiFi_wake(p18); DigitalOut RF_control_1(p19); DigitalOut RF_control_2(p28); -DigitalOut SPI_SSN(p12); +DigitalIn SPI_SSN(p12); DigitalIn SPI_MISO(p9); DigitalIn SPI_MOSI(p15); DigitalIn SPI_CLK(p11);