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:
24
tests/device/test_stack_in_heap/test_stack_in_heap.ino
Normal file
24
tests/device/test_stack_in_heap/test_stack_in_heap.ino
Normal 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();
|
||||
}
|
21
tests/device/test_stack_in_sys/test_stack_in_sys.ino
Normal file
21
tests/device/test_stack_in_sys/test_stack_in_sys.ino
Normal 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 ()
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user