Create new delay module
This commit is contained in:
parent
c09d2cda67
commit
7cb33f65a5
23
srv/delay.c
Normal file
23
srv/delay.c
Normal file
@ -0,0 +1,23 @@
|
||||
/** @file delay.c
|
||||
* Module handling delays definitions and operations
|
||||
*
|
||||
* The module provides an API to delay the code execution with the most
|
||||
* accuraccy possible, putting the system in sleep whenever possible. The RTC is
|
||||
* required when using delays superior to a 1.5s. Accuraccy is only garenteed up
|
||||
* to the unit being used (to the millisecond when delaying in ms, to the second
|
||||
* when delaying in seconds)
|
||||
*/
|
||||
|
||||
//--includes--------------------------------------------------------------------
|
||||
|
||||
#include "delay.h"
|
||||
|
||||
|
||||
//--local definitions-----------------------------------------------------------
|
||||
|
||||
//--local variables-------------------------------------------------------------
|
||||
|
||||
//--public functions------------------------------------------------------------
|
||||
|
||||
//--local functions-------------------------------------------------------------
|
||||
|
||||
23
srv/delay.h
Normal file
23
srv/delay.h
Normal file
@ -0,0 +1,23 @@
|
||||
/** @file delay.h
|
||||
* Module handling delays definitions and operations
|
||||
*
|
||||
* The module provides an API to delay the code execution with the most
|
||||
* accuraccy possible, putting the system in sleep whenever possible. The RTC is
|
||||
* required when using delays superior to a 1.5s. Accuraccy is only garenteed up
|
||||
* to the unit being used (to the millisecond when delaying in ms, to the second
|
||||
* when delaying in seconds)
|
||||
*/
|
||||
|
||||
#ifndef _DELAY_H_
|
||||
#define _DELAY_H_
|
||||
|
||||
//--includes--------------------------------------------------------------------
|
||||
|
||||
//--type definitions------------------------------------------------------------
|
||||
|
||||
//--functions-------------------------------------------------------------------
|
||||
|
||||
//--internal_functions----------------------------------------------------------
|
||||
|
||||
#endif //_DELAY_H_
|
||||
|
||||
Loading…
Reference in New Issue
Block a user