cleanup IRAM_ATTR

This commit is contained in:
cyberman54 2022-02-26 17:26:14 +01:00
parent 37568d1a06
commit 375764f87c
9 changed files with 13 additions and 13 deletions

View File

@ -4,6 +4,6 @@
#include <Arduino.h> #include <Arduino.h>
#include <RokkitHash.h> #include <RokkitHash.h>
uint32_t IRAM_ATTR myhash(const char *data, int len); uint32_t myhash(const char *data, int len);
#endif #endif

View File

@ -38,10 +38,10 @@ void lora_send(void *pvParameters);
void lora_enqueuedata(MessageBuffer_t *message); void lora_enqueuedata(MessageBuffer_t *message);
void lora_queuereset(void); void lora_queuereset(void);
uint32_t lora_queuewaiting(void); uint32_t lora_queuewaiting(void);
void IRAM_ATTR myEventCallback(void *pUserData, ev_t ev); void myEventCallback(void *pUserData, ev_t ev);
void IRAM_ATTR myRxCallback(void *pUserData, uint8_t port, const uint8_t *pMsg, void myRxCallback(void *pUserData, uint8_t port, const uint8_t *pMsg,
size_t nMsg); size_t nMsg);
void IRAM_ATTR myTxCallback(void *pUserData, int fSuccess); void myTxCallback(void *pUserData, int fSuccess);
const char *getSfName(rps_t rps); const char *getSfName(rps_t rps);
const char *getBwName(rps_t rps); const char *getBwName(rps_t rps);
const char *getCrName(rps_t rps); const char *getCrName(rps_t rps);

View File

@ -34,7 +34,7 @@ typedef struct {
uint8_t cmdLen; uint8_t cmdLen;
} RcmdBuffer_t; } RcmdBuffer_t;
void IRAM_ATTR rcommand(const uint8_t *cmd, const size_t cmdlength); void rcommand(const uint8_t *cmd, const size_t cmdlength);
void rcmd_queuereset(void); void rcmd_queuereset(void);
uint32_t rcmd_queuewaiting(void); uint32_t rcmd_queuewaiting(void);
void rcmd_deinit(void); void rcmd_deinit(void);

View File

@ -34,7 +34,7 @@ void setTimeSyncIRQ(void);
uint8_t timepulse_init(void); uint8_t timepulse_init(void);
bool timeIsValid(time_t const t); bool timeIsValid(time_t const t);
void calibrateTime(void); void calibrateTime(void);
bool IRAM_ATTR setMyTime(uint32_t t_sec, uint16_t t_msec, bool setMyTime(uint32_t t_sec, uint16_t t_msec,
timesource_t mytimesource); timesource_t mytimesource);
time_t compileTime(void); time_t compileTime(void);
time_t mkgmtime(const struct tm *ptm); time_t mkgmtime(const struct tm *ptm);

View File

@ -21,7 +21,7 @@ enum timesync_t {
void timesync_init(void); void timesync_init(void);
void timesync_request(void); void timesync_request(void);
void timesync_store(uint32_t timestamp, timesync_t timestamp_type); void timesync_store(uint32_t timestamp, timesync_t timestamp_type);
void IRAM_ATTR timesync_processReq(void *taskparameter); void timesync_processReq(void *taskparameter);
void IRAM_ATTR timesync_serverAnswer(void *pUserData, int flag); void timesync_serverAnswer(void *pUserData, int flag);
#endif #endif

View File

@ -40,6 +40,6 @@
#undef ROKKIT_ENABLE_8BIT_OPTIMIZATIONS #undef ROKKIT_ENABLE_8BIT_OPTIMIZATIONS
#endif #endif
uint32_t IRAM_ATTR myhash(const char *data, int len) { uint32_t myhash(const char *data, int len) {
return rokkit(data, len); return rokkit(data, len);
} }

View File

@ -487,7 +487,7 @@ void rcmd_process(void *pvParameters) {
} // rcmd_process() } // rcmd_process()
// enqueue remote command // enqueue remote command
void IRAM_ATTR rcommand(const uint8_t *cmd, const size_t cmdlength) { void rcommand(const uint8_t *cmd, const size_t cmdlength) {
RcmdBuffer_t rcmd = {0}; RcmdBuffer_t rcmd = {0};

View File

@ -60,7 +60,7 @@ void calibrateTime(void) {
} // calibrateTime() } // calibrateTime()
// set system time (UTC), calibrate RTC and RTC_INT pps // set system time (UTC), calibrate RTC and RTC_INT pps
bool IRAM_ATTR setMyTime(uint32_t t_sec, uint16_t t_msec, bool setMyTime(uint32_t t_sec, uint16_t t_msec,
timesource_t mytimesource) { timesource_t mytimesource) {
struct timeval tv = {0}; struct timeval tv = {0};

View File

@ -55,7 +55,7 @@ void timesync_request(void) {
} }
// task for processing time sync request // task for processing time sync request
void IRAM_ATTR timesync_processReq(void *taskparameter) { void timesync_processReq(void *taskparameter) {
uint32_t rcv_seqNo = TIME_SYNC_END_FLAG; uint32_t rcv_seqNo = TIME_SYNC_END_FLAG;
uint32_t time_offset_sec = 0, time_offset_ms = 0; uint32_t time_offset_sec = 0, time_offset_ms = 0;
@ -173,7 +173,7 @@ void timesync_store(uint32_t timestamp, timesync_t timestamp_type) {
} }
// callback function to receive time answer from network or answer // callback function to receive time answer from network or answer
void IRAM_ATTR timesync_serverAnswer(void *pUserData, int flag) { void timesync_serverAnswer(void *pUserData, int flag) {
#if (HAS_LORA_TIME) #if (HAS_LORA_TIME)