Master Thesis  V1.0
Research and Design of Sensor Node for NMSD Treatment
delay.h
Go to the documentation of this file.
1 /***************************************************************************/
36 /* Include guards prevent multiple inclusions of the same header */
37 #ifndef _DELAY_H_
38 #define _DELAY_H_
39 
40 
41 /* Includes necessary for this header file */
42 #include <stdint.h> /* (u)intXX_t */
43 #include <stdbool.h>
44 
45 
49 #define SYSTICKDELAY 1
50 
51 
56 #define ULFRCO 0
57 
58 
59 /* Public prototypes */
60 void delay (uint32_t msDelay);
61 void sleep (uint32_t sSleep);
62 bool RTC_checkWakeup (void);
63 void RTC_clearWakeup (void);
64 uint32_t RTC_getPassedSleeptime (void);
65 
66 
67 #endif /* _DELAY_H_ */
RTC_clearWakeup
void RTC_clearWakeup(void)
Method to clear RTC_sleep_wakeup.
Definition: delay.c:406
sleep
void sleep(uint32_t sSleep)
Sleep for a certain amount of seconds in EM2/3.
Definition: delay.c:268
delay
void delay(uint32_t msDelay)
Wait for a certain amount of milliseconds in EM2/3.
Definition: delay.c:116
RTC_checkWakeup
bool RTC_checkWakeup(void)
Method to check if the wakeup was caused by the RTC.
Definition: delay.c:396
RTC_getPassedSleeptime
uint32_t RTC_getPassedSleeptime(void)
Method to get the time spend sleeping (in seconds) in the case of GPIO wake-up.
Definition: delay.c:420