view cos/kernel/timer.c @ 290:7b38782ed496

File moves
author Windel Bouwman
date Sun, 24 Nov 2013 11:24:15 +0100
parents 8012221dd740
children
line wrap: on
line source

#include "kernel.h"

static uint64_t ticks = 0;

void timerDriverUpdate()
{
   ticks++;
   task_scheduler();
}

uint64_t getTimeMS()
{
  return 55*ticks;
}

void timer_init()
{
   ticks = 0;
}