summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/gigabeat/meg-fx/kernel-meg-fx.c
blob: 9df90a234413361b3d63737ca52a5bd9c94d5bc5 (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
#include "kernel.h"
#include "thread.h"

#include <stdio.h>
#include "lcd.h"

extern void (*tick_funcs[MAX_NUM_TICK_TASKS])(void);

void timer4(void) {
	int i;
    /* Run through the list of tick tasks */
    for(i = 0; i < MAX_NUM_TICK_TASKS; i++)
    {
        if(tick_funcs[i])
        {
            tick_funcs[i]();
        }
    }

    current_tick++;

    /* following needs to be fixed.  */
    /*wake_up_thread();*/
}