gnea\grbl-Mega  1.0f
Source Code Documentation ( Internal Workings )
sleep.h File Reference
#include "grbl.h"

Go to the source code of this file.

Functions

void sleep_init ()
 Initialize sleep timer. More...
 
void sleep_check ()
 Checks running conditions for sleep. If satisfied, enables sleep countdown and executes. More...
 

Function Documentation

void sleep_check ( )

Checks running conditions for sleep. If satisfied, enables sleep countdown and executes.

NOTE: Sleep procedures can be blocking, since Grbl isn't receiving any commands, nor moving.

NOTE: With overrides or in laser mode, modal spindle and coolant state are not guaranteed. Need

Definition at line 88 of file sleep.c.

void sleep_init ( )

Initialize sleep timer.

Initialize sleep timer.

NOTE: By using an overflow interrupt, the timer is automatically reloaded upon overflow.

< Normal operation. Overflow.

< Stop timer

< Enable timer with 1/64 prescaler. ~66.8sec max with uint8 and 0.262sec/tick

Definition at line 40 of file sleep.c.