Skip to content

Commit a9845cf

Browse files
committed
Define sleep_reset() as fast sleep_disable()
sleep_reset() just clears all sleep_mode() bits.
1 parent 172633a commit a9845cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/portmacro.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ typedef unsigned char UBaseType_t;
202202
#define portBYTE_ALIGNMENT 1
203203
#define portNOP() __asm__ __volatile__ ( "nop" );
204204

205+
#define sleep_reset() do { _SLEEP_CONTROL_REG = 0; } while(0) // reset all sleep_mode() configurations.
206+
205207
/* Timing for the scheduler.
206208
* Watchdog Timer is 128kHz nominal,
207209
* but 120 kHz at 5V DC and 25 degrees is actually more accurate,

0 commit comments

Comments
 (0)