gnea\grbl-Mega  1.0f
Source Code Documentation ( Internal Workings )
sleep.h
Go to the documentation of this file.
1 /*
2  sleep.h - Sleep methods header file
3  Part of Grbl
4 
5  Copyright (c) 2016 Sungeun K. Jeon
6 
7  Grbl is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  Grbl is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with Grbl. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef sleep_h
22 #define sleep_h
23 
24 #include "grbl.h"
25 
27 void sleep_init();
29 // sleep mode upon elapse.
30 void sleep_check();
31 
32 #endif
void sleep_init()
Initialize sleep timer.
Definition: sleep.c:40
void sleep_check()
Checks running conditions for sleep. If satisfied, enables sleep countdown and executes.
Definition: sleep.c:88