From 7cb33f65a501e37ae25d434979615a1fa7d66f59 Mon Sep 17 00:00:00 2001 From: Steins7 Date: Tue, 14 May 2024 15:03:18 +0200 Subject: [PATCH] Create new delay module --- srv/delay.c | 23 +++++++++++++++++++++++ srv/delay.h | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 srv/delay.c create mode 100644 srv/delay.h diff --git a/srv/delay.c b/srv/delay.c new file mode 100644 index 0000000..9ce5bf6 --- /dev/null +++ b/srv/delay.c @@ -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------------------------------------------------------------- + diff --git a/srv/delay.h b/srv/delay.h new file mode 100644 index 0000000..7b6d46d --- /dev/null +++ b/srv/delay.h @@ -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_ +