Skip to content

Commit e51b6f4

Browse files
committed
Added resumeLoop functionality
1 parent 3951aaa commit e51b6f4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

cores/nRF5/Arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ void setup( void ) ;
3636
void loop( void ) ;
3737

3838
void suspendLoop(void);
39+
void resumeLoop(void);
40+
void resumeLoopFromISR(void);
3941

4042
#include "WVariant.h"
4143

cores/nRF5/main.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ void suspendLoop(void)
100100
vTaskSuspend(_loopHandle);
101101
}
102102

103+
void resumeLoop(void)
104+
{
105+
vTaskResume(_loopHandle);
106+
}
107+
108+
void resumeLoopFromISR(void) {
109+
xTaskResumeFromISR(_loopHandle);
110+
}
111+
103112
extern "C"
104113
{
105114

0 commit comments

Comments
 (0)