83 Commits

Author SHA1 Message Date
37a43c7598 fix(net80211): Fix receive unicast packet fail in softap mode
commit wrong lib in 9ad41a53
2018-05-25 15:40:57 +08:00
9ad41a5364 fix(net80211): Fix receive unicast packet fail in softap mode 2018-05-25 14:42:18 +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
291c94b501 feat: Remove the use of os_printf in SDK 2018-05-24 19:52:43 +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
5ff597c90c fix(driver): Fix the compile issue when STATUS define moved 2018-05-24 15:50:19 +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
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
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
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
97bcae3801 feat(freertos): Move freertos related files from esp8266 to freertos 2018-05-20 21:29:56 +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
2e657bba41 feat(esp8266): dos2unix source file type 2018-05-18 14:12:32 +08:00
7df0212b92 feat(ld): add "ets_printf" to rom link file 2018-05-14 14:51:49 +08:00
4048ed82de feat(main): Update library to 0b78c0f
1. remove "syscall" and "printf"
2. remove global "errno"
2018-05-14 14:51:16 +08:00
30de450816 feat(newlib): Add newlib platform function 2018-05-14 14:30:42 +08:00
2a5a639019 Merge branch 'chore/add_cmake_function_for_esp8266' into 'master'
feat(esp8266): Add cmake fucntion

See merge request sdk/ESP8266_RTOS_SDK!136
2018-05-04 17:10:32 +08:00
1202c9d77f feat(esp8266): Add cmake fucntion
1. add fucntion to generate target firmware
2. add function "flash", "erase_flash" and "monitor"
2018-05-04 17:03:48 +08:00
dfd7fa3490 feat(esp8266): Add cmake script 2018-05-04 16:48:23 +08:00
c47421d9be feat(esp8266): Don't use libminic
Link error with libc
2018-05-04 08:57:32 +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
9ba5d39551 feat(esp8266): Modify ld files back
commit: 3dda7069 enlarges .text section temperary
2018-04-28 16:17:13 +08:00
0e8280e1dc feat(freertos): Put freertos in flash by default 2018-04-27 21:56:36 +08:00