16 Commits

Author SHA1 Message Date
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
08c3dbe2ba feat(newlib): Initialize environ 2018-05-14 15:50:55 +08:00
30de450816 feat(newlib): Add newlib platform function 2018-05-14 14:30:42 +08:00
58a66a3d39 feat(newlib): Add newlib library and header file 2018-05-11 16:35:06 +08:00
3a724ca78c feat(kconfig): Add option to kconfig
Add option to enable reent function.
2018-05-11 14:26:57 +08:00
04e2b4bc9d feat(newlib): Add guard for time 2018-05-03 19:26:20 +08:00
a7d9013d8b feat(newlib): Add time support 2018-05-03 17:58:18 +08:00