diff options
Diffstat (limited to 'firmware/target/arm/olympus/mrobe-500/kernel-mr500.c')
-rw-r--r-- | firmware/target/arm/olympus/mrobe-500/kernel-mr500.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/firmware/target/arm/olympus/mrobe-500/kernel-mr500.c b/firmware/target/arm/olympus/mrobe-500/kernel-mr500.c new file mode 100644 index 0000000000..27bb0475e4 --- /dev/null +++ b/firmware/target/arm/olympus/mrobe-500/kernel-mr500.c | |||
@@ -0,0 +1,48 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: $ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Karl Kurbjun | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #include "config.h" | ||
21 | #include "system.h" | ||
22 | #include "kernel.h" | ||
23 | #include "timer.h" | ||
24 | #include "thread.h" | ||
25 | |||
26 | extern void (*tick_funcs[MAX_NUM_TICK_TASKS])(void); | ||
27 | |||
28 | void tick_start(unsigned int interval_in_ms) | ||
29 | { | ||
30 | (void)interval_in_ms; | ||
31 | } | ||
32 | |||
33 | void TIMER4(void) | ||
34 | { | ||
35 | int i; | ||
36 | |||
37 | /* Run through the list of tick tasks */ | ||
38 | for(i = 0; i < MAX_NUM_TICK_TASKS; i++) | ||
39 | { | ||
40 | if(tick_funcs[i]) | ||
41 | { | ||
42 | tick_funcs[i](); | ||
43 | } | ||
44 | } | ||
45 | |||
46 | current_tick++; | ||
47 | |||
48 | } | ||