Skip to content
Snippets Groups Projects
Commit a02e00b6 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #122 from mehlis/hwtimer-fixes

Hwtimer fixes
parents 9b71ac00 735c4178
No related branches found
No related tags found
No related merge requests found
...@@ -18,13 +18,15 @@ ...@@ -18,13 +18,15 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <hwtimer.h>
#include <hwtimer_cpu.h>
#include <hwtimer_arch.h>
#include <kernel.h> #include "kernel.h"
#include <thread.h> #include "thread.h"
#include <lifo.h> #include "lifo.h"
#include "mutex.h"
#include "hwtimer.h"
#include "hwtimer_cpu.h"
#include "hwtimer_arch.h"
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
...@@ -50,12 +52,6 @@ static void hwtimer_releasemutex(void* mutex) { ...@@ -50,12 +52,6 @@ static void hwtimer_releasemutex(void* mutex) {
mutex_unlock((mutex_t*) mutex); mutex_unlock((mutex_t*) mutex);
} }
static void hwtimer_wakeup(void *ptr)
{
int pid = (int)ptr;
thread_wakeup(pid);
}
void hwtimer_spin(unsigned long ticks) void hwtimer_spin(unsigned long ticks)
{ {
unsigned long co = hwtimer_arch_now() + ticks; unsigned long co = hwtimer_arch_now() + ticks;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment