Remove IRAM_ATTR to save some space

This commit is contained in:
fvanroie 2021-02-08 00:36:41 +01:00
parent 869bdf4dd9
commit 4ee9937950
30 changed files with 34 additions and 34 deletions

View File

@ -11,7 +11,7 @@
FT5206_Class * touchpanel; FT5206_Class * touchpanel;
// Read touch points // Read touch points
bool IRAM_ATTR FT5206_getXY(int16_t * touchX, int16_t * touchY, bool debug) bool FT5206_getXY(int16_t * touchX, int16_t * touchY, bool debug)
{ {
if(!touchpanel->touched()) return false; if(!touchpanel->touched()) return false;

View File

@ -10,7 +10,7 @@
#include "hasp_debug.h" // for TAG_DRVR #include "hasp_debug.h" // for TAG_DRVR
bool IRAM_ATTR FT5206_getXY(int16_t * touchX, int16_t * touchY, bool debug); bool FT5206_getXY(int16_t * touchX, int16_t * touchY, bool debug);
void FT5206_init(); void FT5206_init();
#endif #endif

View File

@ -11,7 +11,7 @@
FT6336U * touchpanel; FT6336U * touchpanel;
// Read touch points // Read touch points
bool IRAM_ATTR FT6336U_getXY(int16_t * touchX, int16_t * touchY, bool debug) bool FT6336U_getXY(int16_t * touchX, int16_t * touchY, bool debug)
{ {
if(touchpanel->read_touch_number() != 1) return false; if(touchpanel->read_touch_number() != 1) return false;

View File

@ -8,7 +8,7 @@
#include "hasp_debug.h" // for TAG_DRVR #include "hasp_debug.h" // for TAG_DRVR
bool IRAM_ATTR FT6336U_getXY(int16_t * touchX, int16_t * touchY, bool debug); bool FT6336U_getXY(int16_t * touchX, int16_t * touchY, bool debug);
void FT6336U_init(); void FT6336U_init();
#endif #endif

View File

@ -14,7 +14,7 @@ static int8_t GT911_num_touches;
static GTPoint * GT911_points; static GTPoint * GT911_points;
// Store touch points into global variable // Store touch points into global variable
void IRAM_ATTR GT911_setXY(int8_t contacts, GTPoint * points) void GT911_setXY(int8_t contacts, GTPoint * points)
{ {
GT911_num_touches = contacts; GT911_num_touches = contacts;
GT911_points = points; GT911_points = points;
@ -27,7 +27,7 @@ void IRAM_ATTR GT911_setXY(int8_t contacts, GTPoint * points)
} }
// Read touch points from global variable // Read touch points from global variable
bool IRAM_ATTR GT911_getXY(int16_t * touchX, int16_t * touchY, bool debug) bool GT911_getXY(int16_t * touchX, int16_t * touchY, bool debug)
{ {
static GTPoint points[5]; static GTPoint points[5];
int16_t contacts = touch.readInput((uint8_t *)&points); int16_t contacts = touch.readInput((uint8_t *)&points);
@ -101,7 +101,7 @@ void GT911_init()
Log.trace(TAG_DRVR, F("Goodix GT911x touch driver started")); Log.trace(TAG_DRVR, F("Goodix GT911x touch driver started"));
} }
void IRAM_ATTR GT911_loop() void GT911_loop()
{ {
touch.loop(); touch.loop();
} }

View File

@ -8,9 +8,9 @@
#include "hasp_debug.h" // for TAG_DRVR #include "hasp_debug.h" // for TAG_DRVR
bool IRAM_ATTR GT911_getXY(int16_t * touchX, int16_t * touchY, bool debug); bool GT911_getXY(int16_t * touchX, int16_t * touchY, bool debug);
void GT911_init(); void GT911_init();
void IRAM_ATTR GT911_loop(); void GT911_loop();
#endif #endif
#endif #endif

View File

@ -151,7 +151,7 @@ bool touch_rotate = false;
bool touch_invert_x = false; bool touch_invert_x = false;
bool touch_invert_y = false; bool touch_invert_y = false;
bool IRAM_ATTR drv_touch_read(lv_indev_drv_t * indev_driver, lv_indev_data_t * data) bool drv_touch_read(lv_indev_drv_t * indev_driver, lv_indev_data_t * data)
{ {
#if TOUCH_DRIVER > 0 #if TOUCH_DRIVER > 0
int16_t touchX = 0; int16_t touchX = 0;

View File

@ -459,7 +459,7 @@ void haspSetup(void)
* STATIC FUNCTIONS * STATIC FUNCTIONS
**********************/ **********************/
void IRAM_ATTR haspLoop(void) void haspLoop(void)
{} {}
/* /*

View File

@ -43,7 +43,7 @@ extern "C" {
* Create a hasp application * Create a hasp application
*/ */
void haspSetup(void); void haspSetup(void);
void IRAM_ATTR haspLoop(void); void haspLoop(void);
// void haspEverySecond(void); // See MACROS // void haspEverySecond(void); // See MACROS
void haspReconnect(void); void haspReconnect(void);

View File

@ -12,7 +12,7 @@
/* ===== Default Event Processors ===== */ /* ===== Default Event Processors ===== */
void configSetup(void); void configSetup(void);
void IRAM_ATTR configLoop(void); void configLoop(void);
void configEverySecond(void); void configEverySecond(void);
void configStart(void); void configStart(void);
void configStop(void); void configStop(void);

View File

@ -685,7 +685,7 @@ void debugLvglLogEvent(lv_log_level_t level, const char * file, uint32_t line, c
} }
#endif #endif
void IRAM_ATTR debugLoop(void) void debugLoop(void)
{ {
int16_t keypress; int16_t keypress;
do { do {

View File

@ -13,7 +13,7 @@
/* ===== Default Event Processors ===== */ /* ===== Default Event Processors ===== */
void debugPreSetup(JsonObject settings); void debugPreSetup(JsonObject settings);
void debugSetup(); void debugSetup();
void IRAM_ATTR debugLoop(void); void debugLoop(void);
void debugEverySecond(void); void debugEverySecond(void);
void debugStart(void); void debugStart(void);
void debugStop(void); void debugStop(void);

View File

@ -22,5 +22,5 @@ void eepromSetup()
// debugPrintln("EEPROM: Started Eeprom"); // debugPrintln("EEPROM: Started Eeprom");
} }
void IRAM_ATTR eepromLoop() void eepromLoop()
{} {}

View File

@ -7,7 +7,7 @@
#include <Arduino.h> #include <Arduino.h>
void eepromSetup(void); void eepromSetup(void);
void IRAM_ATTR eepromLoop(void); void eepromLoop(void);
void eepromWrite(uint16_t addr, std::string & data); void eepromWrite(uint16_t addr, std::string & data);
std::string eepromRead(uint16_t addr); std::string eepromRead(uint16_t addr);

View File

@ -113,7 +113,7 @@ void aceButtonSetup(void)
buttonConfig->setRepeatPressInterval(LV_INDEV_DEF_LONG_PRESS_REP_TIME); buttonConfig->setRepeatPressInterval(LV_INDEV_DEF_LONG_PRESS_REP_TIME);
} }
void IRAM_ATTR gpioLoop(void) void gpioLoop(void)
{ {
// Should be called every 4-5ms or faster, for the default debouncing time of ~20ms. // Should be called every 4-5ms or faster, for the default debouncing time of ~20ms.
for(uint8_t i = 0; i < gpioUsedInputCount; i++) { for(uint8_t i = 0; i < gpioUsedInputCount; i++) {

View File

@ -20,7 +20,7 @@ struct hasp_gpio_config_t
}; };
void gpioSetup(void); void gpioSetup(void);
void IRAM_ATTR gpioLoop(void); void gpioLoop(void);
void gpioEvery5Seconds(void); void gpioEvery5Seconds(void);
// void gpio_set_group_onoff(uint8_t groupid, bool ison); // void gpio_set_group_onoff(uint8_t groupid, bool ison);

View File

@ -9,7 +9,7 @@
/* ===== Default Event Processors ===== */ /* ===== Default Event Processors ===== */
void guiSetup(); void guiSetup();
void IRAM_ATTR guiLoop(void); void guiLoop(void);
void guiEverySecond(void); void guiEverySecond(void);
void guiStart(void); void guiStart(void);
void guiStop(void); void guiStop(void);

View File

@ -54,7 +54,7 @@ void ethernetSetup()
ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLKMODE); ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLKMODE);
} }
void IRAM_ATTR ethernetLoop(void) void ethernetLoop(void)
{} {}
bool ethernetEvery5Seconds() bool ethernetEvery5Seconds()

View File

@ -7,7 +7,7 @@
static bool eth_connected = false; static bool eth_connected = false;
void ethernetSetup(); void ethernetSetup();
void IRAM_ATTR ethernetLoop(void); void ethernetLoop(void);
bool ethernetEvery5Seconds(); bool ethernetEvery5Seconds();
void ethernet_get_statusupdate(char * buffer, size_t len); void ethernet_get_statusupdate(char * buffer, size_t len);

View File

@ -50,7 +50,7 @@ void networkSetup()
#endif #endif
} }
void IRAM_ATTR networkLoop(void) void networkLoop(void)
{ {
#if HASP_USE_ETHERNET > 0 #if HASP_USE_ETHERNET > 0
ethernetLoop(); ethernetLoop();

View File

@ -6,7 +6,7 @@
/* ===== Default Event Processors ===== */ /* ===== Default Event Processors ===== */
void networkSetup(); void networkSetup();
void IRAM_ATTR networkLoop(void); void networkLoop(void);
bool networkEvery5Seconds(void); bool networkEvery5Seconds(void);
// bool networkEverySecond(void); // bool networkEverySecond(void);
void networkStart(void); void networkStart(void);

View File

@ -16,7 +16,7 @@ struct hasp_http_config_t
}; };
void httpSetup(); void httpSetup();
void IRAM_ATTR httpLoop(void); void httpLoop(void);
void httpEvery5Seconds(void); void httpEvery5Seconds(void);
// void httpReconnect(void); // void httpReconnect(void);
void httpStart(void); void httpStart(void);

View File

@ -13,7 +13,7 @@ struct hasp_mdns_config_t
/* ===== Default Event Processors ===== */ /* ===== Default Event Processors ===== */
void mdnsSetup(); void mdnsSetup();
void IRAM_ATTR mdnsLoop(void); void mdnsLoop(void);
void mdnsStart(void); void mdnsStart(void);
void mdnsStop(void); void mdnsStop(void);

View File

@ -7,7 +7,7 @@
#include "ArduinoJson.h" #include "ArduinoJson.h"
void mqttSetup(); void mqttSetup();
void IRAM_ATTR mqttLoop(); void mqttLoop();
void mqttEvery5Seconds(bool wifiIsConnected); void mqttEvery5Seconds(bool wifiIsConnected);
void mqttStart(); void mqttStart();
void mqttStop(); void mqttStop();
@ -15,7 +15,7 @@ void mqttStop();
void mqtt_send_object_state(uint8_t pageid, uint8_t btnid, char * payload); void mqtt_send_object_state(uint8_t pageid, uint8_t btnid, char * payload);
void mqtt_send_state(const __FlashStringHelper * subtopic, const char * payload); void mqtt_send_state(const __FlashStringHelper * subtopic, const char * payload);
bool IRAM_ATTR mqttIsConnected(); bool mqttIsConnected();
#if HASP_USE_CONFIG > 0 #if HASP_USE_CONFIG > 0
bool mqttGetConfig(const JsonObject & settings); bool mqttGetConfig(const JsonObject & settings);

View File

@ -170,7 +170,7 @@ void otaSetup(void)
} }
} }
void IRAM_ATTR otaLoop(void) void otaLoop(void)
{ {
ArduinoOTA.handle(); ArduinoOTA.handle();
} }

View File

@ -10,7 +10,7 @@
/* ===== Default Event Processors ===== */ /* ===== Default Event Processors ===== */
void otaSetup(void); void otaSetup(void);
void IRAM_ATTR otaLoop(void); void otaLoop(void);
void otaEverySecond(void); void otaEverySecond(void);
/* ===== Special Event Processors ===== */ /* ===== Special Event Processors ===== */

View File

@ -153,7 +153,7 @@ void slaveSetup()
Log.notice(TAG_TASM, F("HASP SLAVE LOADED")); Log.notice(TAG_TASM, F("HASP SLAVE LOADED"));
} }
void IRAM_ATTR slaveLoop(void) void slaveLoop(void)
{ {
slave.loop(); slave.loop();
// demo code to run the led without tasmota // demo code to run the led without tasmota

View File

@ -16,7 +16,7 @@ void slave_send_input(uint8_t id, const char * payload);
void slave_send_statusupdate(); void slave_send_statusupdate();
void slaveSetup(); void slaveSetup();
void IRAM_ATTR slaveLoop(void); void slaveLoop(void);
#endif #endif

View File

@ -258,7 +258,7 @@ void telnetSetup()
} }
} }
void IRAM_ATTR telnetLoop() void telnetLoop()
{ {
// Basic telnet client handling code from: https://gist.github.com/tablatronix/4793677ca748f5f584c95ec4a2b10303 // Basic telnet client handling code from: https://gist.github.com/tablatronix/4793677ca748f5f584c95ec4a2b10303

View File

@ -11,7 +11,7 @@
/* ===== Default Event Processors ===== */ /* ===== Default Event Processors ===== */
void telnetSetup(); void telnetSetup();
void IRAM_ATTR telnetLoop(void); void telnetLoop(void);
void telnetEvery5Seconds(void); void telnetEvery5Seconds(void);
void telnetEverySecond(void); void telnetEverySecond(void);
void telnetStart(void); void telnetStart(void);