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

@ -0,0 +1,24 @@
#include <BSTest.h>
BS_ENV_DECLARE();
#include <ESP8266WiFi.h>
#include <coredecls.h>
void setup()
{
Serial.begin(115200);
BS_RUN(Serial);
}
TEST_CASE("stack in user's HEAP ram", "[bs]")
{
bool sysstack = (((unsigned long)g_pcont) >> 16) == 0x3fff;
CHECK(!sysstack);
}
void loop ()
{
// WPS I link you !
WiFi.beginWPSConfig();
}

View File

@ -0,0 +1,21 @@
#include <BSTest.h>
BS_ENV_DECLARE();
#include <cont.h>
void setup()
{
Serial.begin(115200);
BS_RUN(Serial);
}
TEST_CASE("stack in SYS ram", "[bs]")
{
bool sysstack = (((unsigned long)g_pcont) >> 16) == 0x3fff;
CHECK(sysstack);
}
void loop ()
{
}