56 Commits

Author SHA1 Message Date
3d4b8d1750 feat(newlib): add libc platform header file 2019-11-19 14:29:18 +08:00
efe9834313 feat(newlib): Add macro ESP8266_TIME_SYSCALL_USE_FRC1 to enable clock_gettime function 2019-10-16 10:10:31 +08:00
ffe35ecf07 fix(newlib): remove library gcc declare 2019-10-12 13:43:02 +08:00
24e53102bf feat(pthread): modify for ESP8266
1. remove "IRAM_ATTR" from pthread function
2. modify "critical" function
3. remove SMP function
4. add platform support
2019-08-28 11:30:12 +08:00
3986202ee9 fix(newlib): fix some initialization function is not done when using float-nano newlib and VFS
Using option "NEWLIB_LIBRARY_CUSTOMER" instead of "NEWLIB_ENABLE".
2019-08-28 11:28:58 +08:00
adb71e1d20 Merge branch 'feature/nano_libc_support_printf_float' into 'master'
newlib: nano mode libc supports print float type data

See merge request sdk/ESP8266_RTOS_SDK!1056
2019-08-15 10:44:23 +08:00
ef8be5b0b1 feat(newlib): nano mode libc supports print float type data
Commit ID: df26aa94
2019-08-14 20:01:17 +08:00
b7e32da7cd feat(newlib): Add normal newlib support print null string value 2019-08-12 15:49:45 +08:00
d0090ee706 fix(newlib): fix console UART output port when enable VFS 2019-08-05 11:43:57 +08:00
114d2b5b86 feature(script): update compiling script for new make and cmake 2019-08-02 14:02:45 +08:00
3b155c2c9a fix(newlib): fix pthread macro lack for cpp 2019-06-17 11:20:24 +08:00
1b2d3b9cf0 feat(lwip): Midify stand I/O control APIs declare 2019-06-13 16:27:25 +08:00
cca13e0f99 feat(make): Sync code from esp-idf and modify for ESP8266
Commit ID: f6bfe13e
2019-05-16 16:22:11 +08:00
2ad3067abd feat(vfs): Disable VFS used by default
Console component must use VFS.
2019-04-17 19:59:18 +08:00
d11543400e feat(vfs): Modify for esp8266 2019-04-15 17:18:42 +08:00
e36706d776 feat(vfs): Bring vfs from esp-idf
Commit ID: e1e82c89
2019-04-15 17:18:03 +08:00
7fbb68f4ea feat(esp8266): Add API to get microseconds 2019-03-12 09:39:07 +08:00
efc81a6649 feature/esp_http_server_idf_v3.2:Changes to make esp_http_server compatible with ESP8266.
Changes:
Lru counter in place of timestamp added.
syslimits.h definition guards for ARG_MAX, PATH_LEN.
Renamed src/port/esp32 to src/port/esp8266.
Enabled working without IPv6. Test Scripts requiring TinyFW removed
Utility.console_log replaced by print.
2019-02-20 12:39:42 +05:30
48061e78a4 feat(esp8266): ets_putc support CR/LR/CRLR selection
ets_printf/ESP_EARLY_LOGX can use this function also.
2018-11-27 13:55:32 +08:00
c3e51b1a4e feat(freertos): Add crash and jump to panic for "abort()"
Remove compiling warning.
2018-10-31 19:04:01 +08:00
7bd6fc051b feat(newib): Add "usleep" and "sleep" function 2018-10-23 10:27:18 +08:00
ade2f9a87d fix(newlib): Add "<null>" if printf string parameter is NULL 2018-10-22 19:39:18 +08:00
e5df03c277 feat(cjson): Add function to encode json number when "sprintf" not support float
Newlib use nano mode as default. When enable nano mode, cjson use internal function to encode for float data.
Otherwise using "sprintf" to encode float data.
2018-10-15 09:50:24 +08:00
33ff57ff0c feat: set default newlib level to normal mode 2018-09-28 16:03:09 +08:00
54cd3f4b61 feat(sdk): Midify "__FILE__" to "__ESP_FILE__" for some components 2018-09-21 13:04:59 +08:00
c18547965d fix(newlib): Fix compling error when disable newlib assert 2018-09-18 16:37:46 +08:00
1fc474b8c9 feat(pthread): Modify for ESP8266 2018-09-13 15:34:54 +08:00
04ccb621a7 Merge branch 'feature/add_fcntl_function' into 'master'
Add fcntl and modify ioctl

See merge request sdk/ESP8266_RTOS_SDK!428
2018-09-13 15:23:33 +08:00
b3dbe9c3cb feat(newlib): Remove error check from <sys/direct.h>
Its functions are empty.
2018-09-13 13:17:53 +08:00
c82e12520c feat(newlib): Strip "fcntl" 2018-09-12 18:00:27 +08:00
a4369522b9 feat(heap): Remove old heap and modify old heap API 2018-09-12 11:12:30 +08:00
f98c6efeba feat(vfs): Add fcntl and modify ioctl 2018-08-24 14:26:24 +08:00
3521271f09 feat(log): Modify log time unit from "s" to "ms" 2018-08-08 14:21:30 +08:00
8e50ff353a fix(newlib): Fix application disable intterupt then call newlib internal mutex function 2018-07-30 19:58:11 +08:00
ce35ff95e7 Merge branch 'feature/modify_malloc_function' into 'master'
feat(newlib): Use new private malloc function

See merge request sdk/ESP8266_RTOS_SDK!264
2018-07-06 19:53:35 +08:00
ab8673bde3 feat(esp8266): Select output CR/LF for stdio function
1. esp-idf put it at esp32 kconfig, so we put it esp8266 kconfig not newlib kocnfig
2. use "ets_putc" instead of "panic_putc" to reduce redundant APIs
2018-07-06 17:04:36 +08:00
83ec6f3d58 feat(newlib): Use new private malloc function
Add return address to debug memory leak.
2018-07-05 10:55:59 +08:00
9d0b024433 feat(esp8266): Refactor ets system headler file 2018-06-27 11:39:50 +08:00
bf0b8c8bb6 feat(esp8266): Modify old system APIs to new ones 2018-06-25 20:37:38 +08:00
569cf70fea feat(newlib): Add abort function 2018-06-25 20:11:13 +08:00
c4e7831db1 fix(newlib): Fixed invalid function descriptions
Merges https://github.com/espressif/ESP8266_RTOS_SDK/pull/196
2018-05-30 15:14:05 +08:00
e518650b36 feat: Don't use c_types.h in SDK 2018-05-24 20:41:29 +08:00
24ef94f811 Improve pvPortMalloc() and family.
fix(esp8266): If MEMLEAK_DEBUG is defined, create an alternate function
called `.._trace` that for each of `pvPortMalloc`, `pvPortZalloc`,
`pvPortCalloc` and `vPortFree`. The original function delegates to this new
tracing function but uses NULL and 0 for the file and line number. This ensures
that the pvPortMalloc exists as a symbol that can be used by the binary blobs
without any problems.

Example output from earlier usage:

~~~
--------Show Malloc--------
F:ppT	L:512	malloc 2064	@ 0x3ffefd08
F:pmT	L:256	malloc 1040	@ 0x3fff0518
F:tiT	L:512	malloc 2064	@ 0x3fff0928
F:uiT	L:640	malloc 2576	@ 0x3fff1138
F:IDLE	L:176	malloc 720	@ 0x3fff1b48
F:Tmr Svc	L:512	malloc 2064	@ 0x3fff1e18
~~~

fix(lwip): Remove declarations of `pvPortMalloc()` and family.

This fixes some of the issues in espressif/ESP8266_RTOS_SDK#189 but some of the
example applications fails. Not ready for merge but comments on my approach
will be appreciated.
2018-05-24 08:57:21 +08:00
f82e9be787 fix: Fixing lots of compilation warnings
- fix(esp8266):
  - Adding includes for missing symbols.
  - Removing unused variables.
  - Skip unsupported packing pragmas.
  - Add rom_functions.h for symbols that come from the ESP ROM. Add attributes on
ets_printf so GCC will check the syntax of the formatting string and types of
the arguments.
  - Add ETS_GPIO_INTR_EN(DIS)ABLE macro.
  - Use gpio_output_conf instead of gpio_output_set.

- fix(freertos):
  - Define functions that are useful.
  - Use correct printf symbols when printing.

- fix(lwip):
  - Ignore the warning in sntp.

- fix(mqtt):
  - `xTicksToWait` is unsigned, can't check for less than zero. Remove
unused variables.

- fix(newlib):
  - `_free_r()` returns `void`, not `void *`.
  - Adding includes for missing symbols.

- fix(ssl):
  - Make sure functions always return a value.

Merges https://github.com/espressif/ESP8266_RTOS_SDK/pull/188
2018-05-23 14:52:26 +08:00
001df52f54 doc(newlib): Add doc for newlib 2018-05-18 16:55:50 +08:00
be5ceda629 feat(newlib): Move newlib to port directory 2018-05-18 10:46:52 +08:00
ecb70a5d03 feat(newlib): Add function to mark the VFS to be tty type 2018-05-17 18:56:04 +08:00
12c66c582b feat(newlib): Update newlib library and header file 2018-05-17 18:54:48 +08:00
d7e96f9ea0 feat(newlib): Add lock function
Fixed some warnings due to the lack of macrodefinition.
2018-05-16 10:03:09 +08:00
60c1e02e09 feat(newlib): Bring "locks.c" from esp-idf 2018-05-15 19:32:32 +08:00