Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
012f2410
Commit
012f2410
authored
Mar 21, 2016
by
Deomid Ryabkov
Committed by
rojer
Mar 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the ESP8266_RTOS example, add it to CI
PUBLISHED_FROM=3d58ec06fe3108a81d1c35f8261783690bb12c4d
parent
ccf67dbf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
13 deletions
+9
-13
Makefile
examples/ESP8266_RTOS/user/Makefile
+1
-1
esp_libc.c
examples/ESP8266_RTOS/user/esp_libc.c
+0
-4
user_main.c
examples/ESP8266_RTOS/user/user_main.c
+0
-7
mongoose.c
mongoose.c
+1
-0
mongoose.h
mongoose.h
+7
-1
No files found.
examples/ESP8266_RTOS/user/Makefile
View file @
012f2410
...
...
@@ -23,7 +23,7 @@ endif
# makefile at its root level - these are then overridden
# for a subtree within the makefile rooted therein
#
DEFINES
+=
-D
MG_LOCALS
\
DEFINES
+=
-D
CS_PLATFORM
=
3
\
-DMG_NO_BSD_SOCKETS
\
-DMG_DISABLE_FILESYSTEM
\
-DMG_DISABLE_STDIO
\
...
...
examples/ESP8266_RTOS/user/esp_libc.c
View file @
012f2410
...
...
@@ -53,7 +53,3 @@ int _gettimeofday_r(struct _reent *r, struct timeval *tp, void *tzp) {
tp
->
tv_usec
=
time
%
1000000
;
return
0
;
}
long
int
random
(
void
)
{
return
os_random
();
}
examples/ESP8266_RTOS/user/user_main.c
View file @
012f2410
...
...
@@ -101,13 +101,6 @@ xTaskHandle s_mg_task_handle;
void
user_init
(
void
)
{
uart_div_modify
(
0
,
UART_CLK_FREQ
/
115200
);
// setvbuf(stdout, NULL, _IONBF, 0);
// setvbuf(stderr, NULL, _IONBF, 0);
xTaskCreate
(
mg_task
,
(
const
signed
char
*
)
"mongoose"
,
MG_TASK_STACK_SIZE
,
NULL
,
MG_TASK_PRIORITY
,
&
s_mg_task_handle
);
}
void
call_user_start
(
void
)
{
user_init
();
}
mongoose.c
View file @
012f2410
...
...
@@ -5231,6 +5231,7 @@ void mg_http_handler(struct mg_connection *nc, int ev, void *ev_data) {
#endif
/* MG_ENABLE_HTTP_STREAMING_MULTIPART */
}
}
(
void
)
pd
;
}
static
size_t
mg_get_line_len
(
const
char
*
buf
,
size_t
buf_len
)
{
...
...
mongoose.h
View file @
012f2410
...
...
@@ -331,7 +331,6 @@ typedef struct stat cs_stat_t;
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <string.h>
...
...
@@ -344,6 +343,10 @@ typedef struct stat cs_stat_t;
#include <lwip/netdb.h>
#include <lwip/dns.h>
#ifndef LWIP_PROVIDE_ERRNO
#include <errno.h>
#endif
#define LWIP_TIMEVAL_PRIVATE 0
#if LWIP_SOCKET
...
...
@@ -368,6 +371,9 @@ typedef struct stat cs_stat_t;
#define INT64_X_FMT PRIx64
#define __cdecl
unsigned
long
os_random
(
void
);
#define random os_random
#endif
/* CS_PLATFORM == CS_P_ESP_LWIP */
#endif
/* CS_COMMON_PLATFORMS_PLATFORM_ESP_LWIP_H_ */
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment