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

Allow test framework to use cores/esp8266/Arduino.h directly (#7377)

* Allow test framework to use cores/esp8266/Arduino.h directly
* fix wps debugging
* some more missing debug.h
* Hunt down debug.h and roll-back
  TODO: rename it to something else... it is an internal header
* Move abs+round checks to test/device/test_sw
* Restore macros for C code
* fixup! Move abs+round checks to test/device/test_sw
* Fix bad c/p, actually try round with ints
* tweak c macros per review
* fix gcc-10 missing cerrno include
This commit is contained in:
Max Prokhorov
2020-10-06 17:18:00 +03:00
committed by GitHub
parent 7ba31010be
commit 36b444dba3
17 changed files with 147 additions and 335 deletions

View File

@ -30,6 +30,7 @@
*/
#define CORE_MOCK 1
#define MOCK "(mock) " // TODO: provide common logging API instead of adding this string everywhere?
//
@ -37,7 +38,6 @@
#define ESP8266 1
#define A0 0
#define LED_BUILTIN 0
#define F_CPU 80000000
#define LWIP_OPEN_SRC
#define TCP_MSS 536
#define LWIP_FEATURES 1
@ -54,19 +54,12 @@
#define D7 7
#define D8 8
// include host's STL before any other include file
// because core definition like max() is in the way
#ifdef __cplusplus
#include <vector>
#endif
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
//#include <stdlib_noniso.h>
// TODO: #include <stdlib_noniso.h> ?
char* itoa (int val, char *s, int radix);
char* ltoa (long val, char *s, int radix);
#ifdef __cplusplus
@ -91,9 +84,6 @@ uint32_t esp_get_cycle_count();
#include <Arduino.h>
//
#include <stdlib.h>
#define RANDOM_REG32 ((uint32_t)random())
// net tweak