41 Commits

Author SHA1 Message Date
106ff9f5ef Merge branch 'bugfix/fix_warning_in_freertos_port' into 'master'
fix(esp8266): Fix warning in port.c by using different section name

See merge request sdk/ESP8266_RTOS_SDK!206
2018-05-31 17:35:46 +08:00
ed329c10dd fix(esp8266): Fix warning in port.c by using different section name 2018-05-31 16:28:18 +08:00
b1a92ea020 fix(esp8266): Include dependent header files in ets_sys.h
Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/200
2018-05-31 15:10:19 +08:00
e15f211d46 feat(esp8266): Add "putc" and "vprintf" of version "ets_" 2018-05-25 19:28:36 +08:00
f5dc5fd2a1 fix(lwip): Fix warning in dhcpserver 2018-05-25 16:39:30 +08:00
1cd5a36bdf feat: Don't use esp_common.h in SDK 2018-05-25 09:03:45 +08:00
092ecbfdd5 feat(esp8266): Remove esp_common.h & espconn.h 2018-05-25 09:03:44 +08:00
e518650b36 feat: Don't use c_types.h in SDK 2018-05-24 20:41:29 +08:00
d0c7e2f1d0 feat(esp8266): Remove c_types.h 2018-05-24 20:41:29 +08:00
91f7080231 fix: Fix all files when change to use standard typedef 2018-05-24 19:27:41 +08:00
27892430ee feat(esp8266): Remove esp typedef
Use standard typedef in stdint.h
2018-05-24 15:54:25 +08:00
82474c8f63 feat(esp8266): Move the define os STATUS to esp_sta.h 2018-05-24 15:49:56 +08:00
3ce6c4cc98 feat(esp8266): Remove the define of NULL 2018-05-24 15:46:47 +08:00
d230288823 feat(esp8266): Remove the define of BOOL/TRUE/FALSE 2018-05-24 15:35:07 +08:00
16c6784e66 feat(esp8266): Remove the define of LOCAL 2018-05-24 15:21:10 +08:00
26e825b0de feat(esp8266): Add ets_printf in SDK side 2018-05-24 15:04:56 +08:00
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
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
19f8a92a04 feat(esp8266): Add access align capacity to heap API 2018-05-24 10:39:40 +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
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
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
30de450816 feat(newlib): Add newlib platform function 2018-05-14 14:30:42 +08:00
57880c7a41 feat(esp8266): Change ip_addr/ip_addr_t to ip4_addr/ip4_addr_t 2018-05-01 13:26:52 +08:00
27888f19cc feat(esp8266): Add WIFI socket and async APIs
1. add section to linking file
2018-04-20 21:00:32 +08:00
3ee9fe751b feat(esp8266): Modify WIFI OS adapter APIs for ESP8266
Add platform code of FreeRTOS.
2018-04-19 16:21:21 +08:00
8ed2d1de46 feat(esp8266): Bring wifi OS adapter API header file from esp-idf 2018-04-19 16:19:32 +08:00
e3cdb2dae3 feat(structure): Re-structure some include 2018-04-08 20:42:35 +08:00
e74ac4e624 feat(esp8266): Update esp8266 header file
Add NMI critical function.
2018-04-08 16:28:38 +08:00
752f131021 Merge branch 'feature/move_xtensa_to_esp8266' into 'refactor'
Move xtensa to components

See merge request sdk/ESP8266_RTOS_SDK!30
2018-04-08 10:59:37 +08:00
029070ddbb feat(esp8266): Move xtensa to esp8266 of components 2018-04-08 10:47:27 +08:00
3e1f0b973e feat(esp2866): Move driver to esp8266 of components 2018-04-08 10:38:18 +08:00
1ca077baa2 feat(esp8266): Move esp8266 header to esp8266 of components 2018-04-04 20:29:00 +08:00