420 Commits

Author SHA1 Message Date
98d01eb5f7 feat(esp8266): Remove standard prototype in esp_libc.h 2018-05-24 14:45:14 +08:00
7d257e3d6a Merge branch 'feature/add_cap_to_heap' into 'master'
Add access align capacity to heap API

See merge request sdk/ESP8266_RTOS_SDK!171
2018-05-24 14:11:13 +08:00
706989602f feat(esp8266): Don't use ICACHE_FLASH_ATTR in SDK side
Missed one file in commit 29f5577a
2018-05-24 14:08:42 +08:00
29f5577ac6 feat(esp8266): Don't use ICACHE_FLASH_ATTR in SDK side 2018-05-24 12:38:06 +08:00
2367c49137 feat(esp8266): Add new esp attr defines
Remove ICACHE_FLASH_ATTR
2018-05-24 12:38:06 +08:00
d75ffa61eb feat(esp8266): Don't use ICACHE_RODATA_ATTR to let string to be in flash
rodata will be in flash by default.
2018-05-24 11:02:34 +08:00
46d51ac826 Merge branch 'feature/os_printf_equal_to_printf' into 'master'
feat(esp8266): Make os_printf equal to printf

See merge request sdk/ESP8266_RTOS_SDK!179
2018-05-24 10:58:39 +08:00
4a64469c7d Merge branch 'feature/put_rodata_in_flash_by_default' into 'master'
feat(ld): Put rodata into flash by default

See merge request sdk/ESP8266_RTOS_SDK!178
2018-05-24 10:43:09 +08:00
def014f43e feat(esp8266): Update ESP8266 library
1. Todo: Update smartconfig
2. minic will not be update later
2018-05-24 10:39:53 +08:00
19f8a92a04 feat(esp8266): Add access align capacity to heap API 2018-05-24 10:39:40 +08:00
3cf0c97966 feat(esp8266): Use printf default in header files 2018-05-24 10:34:28 +08:00
2e1fb87aaf feat(heap): Fix heap parameters
Line = 0 will make it alloc memory at iram.
2018-05-24 10:26:17 +08:00
7665082ad0 feat(esp8266): Make os_printf equal to printf
Since the string used by printf are put in flash by default.
Don't need the old os_printf to define a macro to put string to flash manually.
2018-05-24 10:17:00 +08:00
36d8852194 feat(ld): Put rodata into flash by default
except rodata in libpp.a
2018-05-24 09:57:07 +08:00
73f23833ec Make sure vShowMalloc() doesn't crash.
fix(freertos): Only show the file name if the pointer is not NULL. Try
to shorten the path to only the last components (mydir/foo.c =>
foo.c). Use fixed-width specifiers instead of tab characters.

Merges https://github.com/espressif/ESP8266_RTOS_SDK/pull/192
2018-05-24 08:57:36 +08:00
c31e4a3633 Improve pvPortMalloc() and family.
fix(freertos): Better implementation of realloc, calloc and zalloc.
Implement them with the same symmetry as malloc. Removes duplicate and
nearly identical implementations. Make the libc symbols aliases of the
non-tracing versions.

This improves on my previous patch for espressif/ESP8266_RTOS_SDK#189.
2018-05-24 08:57: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
3c560f678a feat(driver): Clean up header files dependency 2018-05-23 16:43:29 +08:00
78bdcf043e feat(driver): Use standard typedef 2018-05-23 15:24:05 +08:00
3b28e58a3e feat(driver): Use static instead of LOCAL 2018-05-23 15:17:00 +08:00
84781e3d37 feat(driver): Don't need to use ICACHE_FLASH_ATTR 2018-05-23 15:16:16 +08:00
a08d0711a4 feat(driver): Use astyle to format the code 2018-05-23 15:16:16 +08:00
ae6c134ec4 feat(driver): Update to use apache license 2018-05-23 15:14:08 +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
74e972880c Merge branch 'feature/refactor_mqtt_folder' into 'master'
feat(mqtt): Restructure mqtt folder as default paho structure

See merge request sdk/ESP8266_RTOS_SDK!168
2018-05-21 15:19:56 +08:00
88f6f0d62c Merge branch 'feature/refactor_lwip_folder' into 'master'
feat(lwip): Restructure lwip folder to support different platform

See merge request sdk/ESP8266_RTOS_SDK!167
2018-05-21 15:19:40 +08:00
6fbcd9f823 feat(lwip): Restructure lwip folder to support different platform 2018-05-20 21:30:59 +08:00
97bcae3801 feat(freertos): Move freertos related files from esp8266 to freertos 2018-05-20 21:29:56 +08:00
ba4dfbed74 feat(freertos): Restructure freertos folder to support different platform 2018-05-20 21:29:56 +08:00
1d7f85809a feat(mqtt): Restructure mqtt folder as default paho structure 2018-05-20 21:28:44 +08:00
96c273895b feat: Removing executable file mode for code most files
Merges https://github.com/espressif/ESP8266_RTOS_SDK/pull/186
2018-05-20 20:39:38 +08:00
331600eae4 Merge branch 'bugfix/fix_github_issues_174' into 'master'
fix(esp8266): Fix github issues 174

See merge request sdk/ESP8266_RTOS_SDK!145
2018-05-19 20:48:06 +08:00
5876cc6bc6 fix(esp8266): Fix github issues 174
Use "$CONFIG_PYTHON" to generate firmware.
Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/174
Merges https://github.com/espressif/ESP8266_RTOS_SDK/pull/185
2018-05-19 20:43:22 +08:00
b67badd220 Merge branch 'fix/load_store_error_a0' into 'master'
Fix load/store error when use "a0"

See merge request sdk/ESP8266_RTOS_SDK!164
2018-05-18 22:54:29 +08:00
ef782b24ff fix(esp8266): Fix load/store error when use "a0"
Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/183
2018-05-18 22:52:34 +08:00
001df52f54 doc(newlib): Add doc for newlib 2018-05-18 16:55:50 +08:00
b0afbf3cd0 Merge branch 'master' into 'feature/newlib'
# Conflicts:
#   components/freertos/include/port/freertos/FreeRTOSConfig.h
2018-05-18 15:00:11 +08:00
2e657bba41 feat(esp8266): dos2unix source file type 2018-05-18 14:12:32 +08:00
be5ceda629 feat(newlib): Move newlib to port directory 2018-05-18 10:46:52 +08:00
21d2bb28e1 Merge branch 'feature/make_openssl_into_mbedtls' into 'master'
feat(mbedtls): Make openssl into mbedtls

See merge request sdk/ESP8266_RTOS_SDK!156
2018-05-17 20:07:47 +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
7e8a728427 feat(mbedtls): Make openssl into mbedtls 2018-05-17 18:21:50 +08:00
bcb1d17cd9 feat(wolfssl): Add TLS1.0 and TLS1.1 support for wolfssl 2018-05-16 16:30:15 +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
0a31fb1e92 feat(wolfssl): Add openssl support for wolfssl 2018-05-15 11:57:57 +08:00
1d27285767 feat(wolfssl): Redefine wolfssl file folder structure 2018-05-15 11:40:15 +08:00
900e3613f8 feat(lwip): Add thread local semaphore to sync thread 2018-05-14 19:01:15 +08:00
0c633ce7ce feat(freertos): Use "reent" default. 2018-05-14 17:24:29 +08:00