AVRTools
A Library for the AVR ATmega328 and ATmega2560 Microcontrollers
SimpleDelays.h
Go to the documentation of this file.
1 /*
2  SimpleDelays.h - Simple delay functions.
3  This is part of the AVRTools library.
4  Copyright (c) 2015 Igor Mikolic-Torreira. All right reserved.
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 
21 
37 #ifndef SimpleDelays_h
38 #define SimpleDelays_h
39 
40 
41 #include <stdint.h>
42 
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 
49 
50 
51 
52 
83 void delayQuartersOfMicroSeconds( uint16_t nbrOfQuartersOfMicroSeconds );
84 
85 
86 
87 
88 
107 void delayWholeMilliSeconds( uint8_t nbrOfMilliSeconds );
108 
109 
110 
111 
112 
131 void delayTenthsOfSeconds( uint8_t nbrOfTenthsOfSeconds );
132 
133 
134 
135 
136 
137 #ifdef __cplusplus
138 }
139 #endif
140 
141 
142 #endif
void delayQuartersOfMicroSeconds(uint16_t nbrOfQuartersOfMicroSeconds)
Delay a given number of quarter microseconds. Due to function call overhead, at 16 MHz the smallest p...
void delayTenthsOfSeconds(uint8_t nbrOfTenthsOfSeconds)
Delay a given number of tenths of a seconds. Despite function call overhead, this function is accurat...
void delayWholeMilliSeconds(uint8_t nbrOfMilliSeconds)
Delay a given number of milliseconds. Despite function call overhead, this function is accurate withi...