blob: 98a3a08bf85397b125298bd7ea64e8c8edfd2c49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include "arch.h"
#include <unistd.h>
#if defined(WITH_LOOP) || defined(TIMER_S)
#include "driver/uptime.h"
void loop();
#endif
#ifdef WITH_WAKEUP
void wakeup();
#endif
void Arch::setup(void) { }
void Arch::idle_loop(void)
{
while (1) {
sleep(1);
#ifdef WITH_LOOP
loop();
#endif
#ifdef WITH_WAKEUP
wakeup();
#endif
#ifdef TIMER_S
uptime.tick_s();
#endif
}
}
void Arch::idle(void)
{
}
Arch arch;
|