From b4b6aa36e3486a3544acc52419149b5671f841e9 Mon Sep 17 00:00:00 2001 From: Siddharth11235 Date: Tue, 3 Sep 2019 18:09:16 +0530 Subject: Pushing entire Modelica HIL Tasks repo --- .../Resources/src/wakeup.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 Modelica-Arduino-MDD_Arduino_Revised/Resources/src/wakeup.c (limited to 'Modelica-Arduino-MDD_Arduino_Revised/Resources/src/wakeup.c') diff --git a/Modelica-Arduino-MDD_Arduino_Revised/Resources/src/wakeup.c b/Modelica-Arduino-MDD_Arduino_Revised/Resources/src/wakeup.c new file mode 100755 index 0000000..43ceb48 --- /dev/null +++ b/Modelica-Arduino-MDD_Arduino_Revised/Resources/src/wakeup.c @@ -0,0 +1,16 @@ +#include +#include +#include +#include +#include "../Include/serial.h" + + + +void wakeup() +{ + /* Set signal to this function. */ + signal(SIGALRM, wakeup); + /* Set alarm clock for 5 seconds. */ + alarm(2); +} + -- cgit