Skip to content

Commit

Permalink
recover lock
Browse files Browse the repository at this point in the history
  • Loading branch information
zzxcanaan committed Mar 22, 2019
1 parent ed77af0 commit 2d7fb16
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 283 deletions.
283 changes: 0 additions & 283 deletions lib/bsp/locks.c

This file was deleted.

48 changes: 48 additions & 0 deletions lib/freertos/locks.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#include <sys/lock.h>
#include <stdlib.h>
#include "FreeRTOS.h"
#include "semphr.h"
#include "portmacro.h"
#include "task.h"

typedef long _lock_t;

void _lock_init(_lock_t *lock)
{
}

void _lock_init_recursive(_lock_t *lock)
{
}

void _lock_close(_lock_t *lock)
{
}

void _lock_close_recursive(_lock_t *lock) __attribute__((alias("_lock_close")));

void _lock_acquire(_lock_t *lock)
{
}

void _lock_acquire_recursive(_lock_t *lock)
{
}

int _lock_try_acquire(_lock_t *lock)
{
return 1;
}

int _lock_try_acquire_recursive(_lock_t *lock)
{
return 1;
}

void _lock_release(_lock_t *lock)
{
}

void _lock_release_recursive(_lock_t *lock)
{
}

0 comments on commit 2d7fb16

Please sign in to comment.