some refactoring,
minor code changes added a small class for SNESController reading
This commit is contained in:
@@ -9,9 +9,11 @@
|
||||
#define WROOM32_DEVKIT 32
|
||||
#define TTGO 33
|
||||
|
||||
#define TEENSY_41 41
|
||||
|
||||
#define ESP8266 (PLATFORM == WEMOS_D1_MINI) || (PLATFORM == NODE_MCU)
|
||||
#define ESP32 (PLATFORM == WROOM32_DEVKIT) || (PLATFORM == TTGO)
|
||||
#define TEENSY (PLATFORM == TEENSY_41)
|
||||
|
||||
#ifndef PLATFORM
|
||||
#error "PLATFORM compile time variable not defined"
|
||||
@@ -29,9 +31,13 @@
|
||||
#define DELAY_US(us) os_delay_us(us)
|
||||
#define IN_FLASH ICACHE_FLASH_ATTR
|
||||
|
||||
#elif (TEENSY)
|
||||
|
||||
#pragma message "Using Teensy"
|
||||
|
||||
#else
|
||||
|
||||
#error "unsupported platform";
|
||||
#error "Platforms.h: unsupported platform";
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user