mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Remove IRAM_ATTR to save some space
This commit is contained in:
parent
869bdf4dd9
commit
4ee9937950
@ -11,7 +11,7 @@
|
||||
FT5206_Class * touchpanel;
|
||||
|
||||
// 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;
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#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();
|
||||
|
||||
#endif
|
||||
|
@ -11,7 +11,7 @@
|
||||
FT6336U * touchpanel;
|
||||
|
||||
// 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;
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#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();
|
||||
|
||||
#endif
|
||||
|
@ -14,7 +14,7 @@ static int8_t GT911_num_touches;
|
||||
static GTPoint * GT911_points;
|
||||
|
||||
// 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_points = points;
|
||||
@ -27,7 +27,7 @@ void IRAM_ATTR GT911_setXY(int8_t contacts, GTPoint * points)
|
||||
}
|
||||
|
||||
// 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];
|
||||
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"));
|
||||
}
|
||||
|
||||
void IRAM_ATTR GT911_loop()
|
||||
void GT911_loop()
|
||||
{
|
||||
touch.loop();
|
||||
}
|
||||
|
@ -8,9 +8,9 @@
|
||||
|
||||
#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 IRAM_ATTR GT911_loop();
|
||||
void GT911_loop();
|
||||
|
||||
#endif
|
||||
#endif
|
@ -151,7 +151,7 @@ bool touch_rotate = false;
|
||||
bool touch_invert_x = 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
|
||||
int16_t touchX = 0;
|
||||
|
@ -459,7 +459,7 @@ void haspSetup(void)
|
||||
* STATIC FUNCTIONS
|
||||
**********************/
|
||||
|
||||
void IRAM_ATTR haspLoop(void)
|
||||
void haspLoop(void)
|
||||
{}
|
||||
|
||||
/*
|
||||
|
@ -43,7 +43,7 @@ extern "C" {
|
||||
* Create a hasp application
|
||||
*/
|
||||
void haspSetup(void);
|
||||
void IRAM_ATTR haspLoop(void);
|
||||
void haspLoop(void);
|
||||
// void haspEverySecond(void); // See MACROS
|
||||
|
||||
void haspReconnect(void);
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
/* ===== Default Event Processors ===== */
|
||||
void configSetup(void);
|
||||
void IRAM_ATTR configLoop(void);
|
||||
void configLoop(void);
|
||||
void configEverySecond(void);
|
||||
void configStart(void);
|
||||
void configStop(void);
|
||||
|
@ -685,7 +685,7 @@ void debugLvglLogEvent(lv_log_level_t level, const char * file, uint32_t line, c
|
||||
}
|
||||
#endif
|
||||
|
||||
void IRAM_ATTR debugLoop(void)
|
||||
void debugLoop(void)
|
||||
{
|
||||
int16_t keypress;
|
||||
do {
|
||||
|
@ -13,7 +13,7 @@
|
||||
/* ===== Default Event Processors ===== */
|
||||
void debugPreSetup(JsonObject settings);
|
||||
void debugSetup();
|
||||
void IRAM_ATTR debugLoop(void);
|
||||
void debugLoop(void);
|
||||
void debugEverySecond(void);
|
||||
void debugStart(void);
|
||||
void debugStop(void);
|
||||
|
@ -22,5 +22,5 @@ void eepromSetup()
|
||||
// debugPrintln("EEPROM: Started Eeprom");
|
||||
}
|
||||
|
||||
void IRAM_ATTR eepromLoop()
|
||||
void eepromLoop()
|
||||
{}
|
@ -7,7 +7,7 @@
|
||||
#include <Arduino.h>
|
||||
|
||||
void eepromSetup(void);
|
||||
void IRAM_ATTR eepromLoop(void);
|
||||
void eepromLoop(void);
|
||||
void eepromWrite(uint16_t addr, std::string & data);
|
||||
std::string eepromRead(uint16_t addr);
|
||||
|
||||
|
@ -113,7 +113,7 @@ void aceButtonSetup(void)
|
||||
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.
|
||||
for(uint8_t i = 0; i < gpioUsedInputCount; i++) {
|
||||
|
@ -20,7 +20,7 @@ struct hasp_gpio_config_t
|
||||
};
|
||||
|
||||
void gpioSetup(void);
|
||||
void IRAM_ATTR gpioLoop(void);
|
||||
void gpioLoop(void);
|
||||
void gpioEvery5Seconds(void);
|
||||
|
||||
// void gpio_set_group_onoff(uint8_t groupid, bool ison);
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
/* ===== Default Event Processors ===== */
|
||||
void guiSetup();
|
||||
void IRAM_ATTR guiLoop(void);
|
||||
void guiLoop(void);
|
||||
void guiEverySecond(void);
|
||||
void guiStart(void);
|
||||
void guiStop(void);
|
||||
|
@ -54,7 +54,7 @@ void ethernetSetup()
|
||||
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()
|
||||
|
@ -7,7 +7,7 @@
|
||||
static bool eth_connected = false;
|
||||
|
||||
void ethernetSetup();
|
||||
void IRAM_ATTR ethernetLoop(void);
|
||||
void ethernetLoop(void);
|
||||
|
||||
bool ethernetEvery5Seconds();
|
||||
void ethernet_get_statusupdate(char * buffer, size_t len);
|
||||
|
@ -50,7 +50,7 @@ void networkSetup()
|
||||
#endif
|
||||
}
|
||||
|
||||
void IRAM_ATTR networkLoop(void)
|
||||
void networkLoop(void)
|
||||
{
|
||||
#if HASP_USE_ETHERNET > 0
|
||||
ethernetLoop();
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
/* ===== Default Event Processors ===== */
|
||||
void networkSetup();
|
||||
void IRAM_ATTR networkLoop(void);
|
||||
void networkLoop(void);
|
||||
bool networkEvery5Seconds(void);
|
||||
// bool networkEverySecond(void);
|
||||
void networkStart(void);
|
||||
|
@ -16,7 +16,7 @@ struct hasp_http_config_t
|
||||
};
|
||||
|
||||
void httpSetup();
|
||||
void IRAM_ATTR httpLoop(void);
|
||||
void httpLoop(void);
|
||||
void httpEvery5Seconds(void);
|
||||
// void httpReconnect(void);
|
||||
void httpStart(void);
|
||||
|
@ -13,7 +13,7 @@ struct hasp_mdns_config_t
|
||||
|
||||
/* ===== Default Event Processors ===== */
|
||||
void mdnsSetup();
|
||||
void IRAM_ATTR mdnsLoop(void);
|
||||
void mdnsLoop(void);
|
||||
void mdnsStart(void);
|
||||
void mdnsStop(void);
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "ArduinoJson.h"
|
||||
|
||||
void mqttSetup();
|
||||
void IRAM_ATTR mqttLoop();
|
||||
void mqttLoop();
|
||||
void mqttEvery5Seconds(bool wifiIsConnected);
|
||||
void mqttStart();
|
||||
void mqttStop();
|
||||
@ -15,7 +15,7 @@ void mqttStop();
|
||||
void mqtt_send_object_state(uint8_t pageid, uint8_t btnid, char * payload);
|
||||
void mqtt_send_state(const __FlashStringHelper * subtopic, const char * payload);
|
||||
|
||||
bool IRAM_ATTR mqttIsConnected();
|
||||
bool mqttIsConnected();
|
||||
|
||||
#if HASP_USE_CONFIG > 0
|
||||
bool mqttGetConfig(const JsonObject & settings);
|
||||
|
@ -170,7 +170,7 @@ void otaSetup(void)
|
||||
}
|
||||
}
|
||||
|
||||
void IRAM_ATTR otaLoop(void)
|
||||
void otaLoop(void)
|
||||
{
|
||||
ArduinoOTA.handle();
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
/* ===== Default Event Processors ===== */
|
||||
void otaSetup(void);
|
||||
void IRAM_ATTR otaLoop(void);
|
||||
void otaLoop(void);
|
||||
void otaEverySecond(void);
|
||||
|
||||
/* ===== Special Event Processors ===== */
|
||||
|
@ -153,7 +153,7 @@ void slaveSetup()
|
||||
Log.notice(TAG_TASM, F("HASP SLAVE LOADED"));
|
||||
}
|
||||
|
||||
void IRAM_ATTR slaveLoop(void)
|
||||
void slaveLoop(void)
|
||||
{
|
||||
slave.loop();
|
||||
// demo code to run the led without tasmota
|
||||
|
@ -16,7 +16,7 @@ void slave_send_input(uint8_t id, const char * payload);
|
||||
void slave_send_statusupdate();
|
||||
|
||||
void slaveSetup();
|
||||
void IRAM_ATTR slaveLoop(void);
|
||||
void slaveLoop(void);
|
||||
|
||||
|
||||
#endif
|
@ -258,7 +258,7 @@ void telnetSetup()
|
||||
}
|
||||
}
|
||||
|
||||
void IRAM_ATTR telnetLoop()
|
||||
void telnetLoop()
|
||||
{
|
||||
// Basic telnet client handling code from: https://gist.github.com/tablatronix/4793677ca748f5f584c95ec4a2b10303
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
/* ===== Default Event Processors ===== */
|
||||
void telnetSetup();
|
||||
void IRAM_ATTR telnetLoop(void);
|
||||
void telnetLoop(void);
|
||||
void telnetEvery5Seconds(void);
|
||||
void telnetEverySecond(void);
|
||||
void telnetStart(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user