1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

Automatic stack location selection (SYS or HEAP), enable per library AR-chive in arduino build system (#5018)

Automatic stack location selection (SYS or HEAP), enable per library AR-chive in arduino build system 

* enable dot_a_linkage on internal libraries
* add device tests
* boards generator: deprecate --noextra4k/--allowWPS and fix documentation
This commit is contained in:
david gauchard
2018-08-20 14:35:52 +02:00
committed by GitHub
parent 9f67d83907
commit 85e68093e9
37 changed files with 268 additions and 151 deletions

View File

@ -1275,9 +1275,6 @@ def all_boards ():
if nofloat:
print(id + '.build.float=')
if noextra4kheap:
print(id + '.build.noextra4kheap=-DNO_EXTRA_4K_HEAP')
print('')
if boardsgen:
@ -1372,8 +1369,6 @@ def usage (name,ret):
print(" --speed s - change default serial speed")
print(" --customspeed s - new serial speed for all boards")
print(" --nofloat - disable float support in printf/scanf")
print(" --noextra4kheap - disable extra 4k heap (will enable WPS)")
print(" --allowWPS - synonym for --noextra4kheap")
print("")
print(" mandatory option (at least one):")
print("")
@ -1417,7 +1412,6 @@ default_speed = '115'
led_default = 2
led_max = 16
nofloat = False
noextra4kheap = False
ldgen = False
ldshow = False
boardsgen = False
@ -1478,7 +1472,7 @@ for o, a in opts:
nofloat=True
elif o in ("--noextra4kheap", "--allowWPS"):
noextra4kheap=True
print('option ' + o + ' is now deprecated, without effect, and will be removed')
elif o in ("--ldshow"):
ldshow = True

View File

@ -577,25 +577,11 @@ enum wps_cb_status {
typedef void (*wps_st_cb_t)(int status);
#ifdef NO_EXTRA_4K_HEAP
/* check cores/esp8266/core_esp8266_main.cpp for comments about this */
bool wifi_wps_enable(WPS_TYPE_t wps_type);
bool wifi_wps_disable(void);
bool wifi_wps_start(void);
bool wifi_set_wps_cb(wps_st_cb_t cb);
#else
bool WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool ();
#define wifi_wps_enable(...) WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool()
#define wifi_wps_disable() WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool()
#define wifi_wps_start() WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool()
#define wifi_set_wps_cb(...) WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool()
#endif
typedef void (*freedom_outside_cb_t)(uint8 status);
int wifi_register_send_pkt_freedom_cb(freedom_outside_cb_t cb);
void wifi_unregister_send_pkt_freedom_cb(void);