forked from cesanta/mongoose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cesanta#2981 from cesanta/picowsdk
Add Pico-W driver in src/drivers
- Loading branch information
Showing
9 changed files
with
122 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ project(firmware) | |
pico_sdk_init() | ||
|
||
add_executable(firmware | ||
driver_pico-w.c | ||
main.c | ||
mongoose.c | ||
net.c | ||
|
8 changes: 0 additions & 8 deletions
8
examples/pico-sdk/pico-w-picosdk-baremetal-builtin/driver_pico-w.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
examples/pico-sdk/pico-w-picosdk-baremetal-builtin/mongoose_config.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#define MG_ARCH MG_ARCH_PICOSDK | ||
|
||
#define MG_ENABLE_TCPIP 1 | ||
#define MG_ENABLE_DRIVER_PICO_W 1 | ||
#define MG_ENABLE_TCPIP_DRIVER_INIT 0 | ||
#define MG_ENABLE_PACKED_FS 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
|
||
#if MG_ENABLE_TCPIP && MG_ARCH == MG_ARCH_PICOSDK && \ | ||
defined(MG_ENABLE_DRIVER_PICO_W) && MG_ENABLE_DRIVER_PICO_W | ||
|
||
#include "cyw43.h" // keep this include | ||
#include "pico/cyw43_arch.h" // keep this include | ||
#include "pico/unique_id.h" // keep this include | ||
|
||
struct mg_tcpip_driver_pico_w_data { | ||
char *ssid; | ||
char *pass; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters