mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-02 13:20:51 +00:00
Move mg_task to SimpleLink platform code
It'll be used for MSP432 as well PUBLISHED_FROM=cb5dcda4cc5d9edc6dea71540d51ab00e252186e
This commit is contained in:
1 parent
76364af243
commit
c8b09c2238
8 files changed
+91
-95
No files matched your search
@@ -31,7 +31,6 @@
|
||||
|
||||
#include "data.h"
|
||||
#include "mongoose.h"
|
||||
#include "mg_task.h"
|
||||
#include "wifi.h"
|
||||
|
||||
/* Set up an AP or connect to existing WiFi network. */
|
||||
@@ -52,8 +51,6 @@
|
||||
#define BM222_ADDR 0x18
|
||||
#define TMP006_ADDR 0x41
|
||||
|
||||
extern int cc3200_fs_init();
|
||||
|
||||
static struct mg_str upload_fname(struct mg_connection *nc,
|
||||
struct mg_str fname) {
|
||||
struct mg_str lfn;
|
||||
@@ -124,7 +121,9 @@ static void mg_init(struct mg_mgr *mgr) {
|
||||
|
||||
data_init_sensors(TMP006_ADDR, BM222_ADDR);
|
||||
|
||||
cc3200_fs_init();
|
||||
sl_fs_init();
|
||||
|
||||
sl_Start(NULL, NULL, NULL);
|
||||
|
||||
#if defined(WIFI_STA_SSID)
|
||||
if (!wifi_setup_sta(WIFI_STA_SSID, WIFI_STA_PASS)) {
|
||||
|
||||
Reference in new issue
Block a user