blob: 43ceb482139b09b0a3c9379ba86f6b47aaec2ec2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include "../Include/serial.h"
void wakeup()
{
/* Set signal to this function. */
signal(SIGALRM, wakeup);
/* Set alarm clock for 5 seconds. */
alarm(2);
}
|