Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cores/esp8266/FunctionalInterrupt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ typedef void (*voidFuncPtrArg)(void*);
extern "C" void ICACHE_RAM_ATTR __attachInterruptArg(uint8_t pin, voidFuncPtr userFunc, void*fp , int mode);


void interruptFunctional(void* arg)
void ICACHE_RAM_ATTR interruptFunctional(void* arg)
{
ArgStructure* localArg = (ArgStructure*)arg;
if (localArg->functionInfo->reqScheduledFunction)
Expand All @@ -27,7 +27,7 @@ void interruptFunctional(void* arg)

extern "C"
{
void cleanupFunctional(void* arg)
void ICACHE_RAM_ATTR cleanupFunctional(void* arg)
{
ArgStructure* localArg = (ArgStructure*)arg;
delete (FunctionInfo*)localArg->functionInfo;
Expand All @@ -36,7 +36,7 @@ extern "C"
}
}

void attachInterrupt(uint8_t pin, std::function<void(void)> intRoutine, int mode)
void ICACHE_RAM_ATTR attachInterrupt(uint8_t pin, std::function<void(void)> intRoutine, int mode)
{
// use the local interrupt routine which takes the ArgStructure as argument

Expand All @@ -52,7 +52,7 @@ void attachInterrupt(uint8_t pin, std::function<void(void)> intRoutine, int mode
__attachInterruptArg (pin, (voidFuncPtr)interruptFunctional, as, mode);
}

void attachScheduledInterrupt(uint8_t pin, std::function<void(InterruptInfo)> scheduledIntRoutine, int mode)
void ICACHE_RAM_ATTR attachScheduledInterrupt(uint8_t pin, std::function<void(InterruptInfo)> scheduledIntRoutine, int mode)
{
if (!scheduledInterrupts)
{
Expand Down