dunno, changes and stuff
This commit is contained in:
29
Platforms.h
29
Platforms.h
@@ -25,24 +25,24 @@
|
||||
|
||||
#if (IS_ESP32)
|
||||
|
||||
#pragma message "Using ESP32"
|
||||
//#pragma message "Using ESP32"
|
||||
#define DELAY_US(us) ets_delay_us(us)
|
||||
#define IN_FLASH
|
||||
|
||||
#elif (IS_ESP8266)
|
||||
|
||||
#pragma message "Using ESP8266"
|
||||
//#pragma message "Using ESP8266"
|
||||
#define DELAY_US(us) os_delay_us(us)
|
||||
#define IN_FLASH ICACHE_FLASH_ATTR
|
||||
|
||||
#elif (IS_TEENSY)
|
||||
|
||||
#pragma message "Using Teensy"
|
||||
//#pragma message "Using Teensy"
|
||||
#define DELAY_MS(ms) delay(ms)
|
||||
|
||||
#elif (IS_DESKTOP)
|
||||
|
||||
#pragma message "Using Desktop"
|
||||
//#pragma message "Using Desktop"
|
||||
#define DELAY_MS(ms) delay(ms)
|
||||
|
||||
#else
|
||||
@@ -62,21 +62,22 @@
|
||||
// return (a>b) ? (a) : (b);
|
||||
//}
|
||||
|
||||
#if ESP8266
|
||||
#if IS_ESP8266
|
||||
#define sprintf os_sprintf
|
||||
extern "C" {
|
||||
#include "ets_sys.h"
|
||||
#include "c_types.h"
|
||||
#include "osapi.h"
|
||||
#include "user_interface.h"
|
||||
#include "mem.h"
|
||||
#include "espconn.h"
|
||||
extern "C" {
|
||||
// #include "ets_sys.h"
|
||||
// #include "c_types.h"
|
||||
// #include "osapi.h"
|
||||
// #include "user_interface.h"
|
||||
// #include "mem.h"
|
||||
// #include "espconn.h"
|
||||
#include "esp_system.h"
|
||||
}
|
||||
#elif ESP32
|
||||
#elif IS_ESP32
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#if TEENSY
|
||||
#if IS_TEENSY
|
||||
#define IRAM_ATTR
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user