577 Commits

Author SHA1 Message Date
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
1c79f378bc Merge branch 'feature/new_esp_attr' into 'master'
feat(esp8266): Add new esp attr defines

See merge request sdk/ESP8266_RTOS_SDK!182
2018-05-24 13:46:11 +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
8f5e3e01d1 Merge branch 'feature/dont_use_icache_rodata_attr' into 'master'
feat(esp8266): Don't use ICACHE_RODATA_ATTR to let string to be in flash

See merge request sdk/ESP8266_RTOS_SDK!181
2018-05-24 11:27:09 +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
b0b1ddb118 Merge branch 'fix/fix_heap_function_parameters' into 'master'
feat(heap): Fix heap parameters

See merge request sdk/ESP8266_RTOS_SDK!180
2018-05-24 10:33:12 +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
72874ebd33 Merge branch 'feature/optimize_malloc_family' into 'master'
feat(heap): Optimize malloc family

See merge request sdk/ESP8266_RTOS_SDK!177
2018-05-24 09:10:09 +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
9daf22b07b Merge branch 'feature/clean_up_driver' into 'master'
Driver code clean up

See merge request sdk/ESP8266_RTOS_SDK!169
2018-05-23 18:09:48 +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
feb22160cc Merge branch 'feature/clean_up' into 'master'
fix: Fixing lots of compilation warnings

See merge request sdk/ESP8266_RTOS_SDK!173
2018-05-23 14:56:35 +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
4afb989130 Merge branch 'feature/refactor_freertos_folder' into 'master'
feat(freertos): Restructure freertos folder to support different platform

See merge request sdk/ESP8266_RTOS_SDK!166
2018-05-21 15:19:21 +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
ae881ecda4 Merge branch 'feature/clean_up' into 'master'
Removing executable file mode for code most files

See merge request sdk/ESP8266_RTOS_SDK!170
2018-05-20 20:42:32 +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
88cc7c01ae feat(git): Adding .gitattributes
Converting files to native format to be consistent.
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
26d72773ab Merge branch 'feature/newlib' into 'master'
Add newlib component

See merge request sdk/ESP8266_RTOS_SDK!162
2018-05-18 17:00:32 +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
99dea43adc Merge branch 'feature/update_readme' into 'master'
feat(doc): Update README due to the SDK framework change

See merge request sdk/ESP8266_RTOS_SDK!163
2018-05-18 14:33:42 +08:00
2e657bba41 feat(esp8266): dos2unix source file type 2018-05-18 14:12:32 +08:00
b32b40cf44 feat(doc): Update README due to the SDK framework change
Closes https://github.com/espressif/esp-idf/issue/164
Closes https://github.com/espressif/esp-idf/issue/169
2018-05-18 11:37:01 +08:00
91aa725c85 Merge branch 'feature/move_time' into 'feature/newlib'
feat(newlib): Move newlib to port directory

See merge request sdk/ESP8266_RTOS_SDK!161
2018-05-18 10:49:21 +08:00
be5ceda629 feat(newlib): Move newlib to port directory 2018-05-18 10:46:52 +08:00