Skip to content

Commit

Permalink
add cfe emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbinc committed Jul 13, 2009
1 parent b4686ac commit 1ff4711
Show file tree
Hide file tree
Showing 10 changed files with 1,264 additions and 0 deletions.
26 changes: 26 additions & 0 deletions nocfe/cfe.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include "lib_types.h"
#include "lib_queue.h"
#include "lib_malloc.h"
#include "cfe_console.h"
#include "addrspace.h"
#include <cache.h>

#include <string.h>
#include <vsprintf.h>

typedef void *hsaddr_t;
#define HSADDR2PTR(x) x
#define PTR2HSADDR(x) x

#define CFE_HZ 1000

#define cfe_sleep mdelay

#define xprintf printf

#define hs_memcpy_from_hs memcpy
#define hs_memcpy_to_hs memcpy

static inline void CACHE_DMA_SYNC(void *x, int l) { dcache_flush(x, l); }
static inline void CACHE_DMA_INVAL(void *x, int l) { dcache_flush(x, l); }

Loading

0 comments on commit 1ff4711

Please sign in to comment.