OpenCores
URL https://opencores.org/ocsvn/plasma/plasma/trunk

Subversion Repositories plasma

[/] [plasma/] [trunk/] [kernel/] [os_stubs.c] - Diff between revs 402 and 407

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 402 Rev 407
Line 39... Line 39...
   memset(flash+byteOffset, 0xff, 1024*128);
   memset(flash+byteOffset, 0xff, 1024*128);
}
}
 
 
 
 
//Stub out RTOS functions
//Stub out RTOS functions
 
#undef malloc
 
#undef free
 
void *OS_HeapMalloc(OS_Heap_t *heap, int bytes) {(void)heap; return malloc(bytes);}
 
void OS_HeapFree(void *block)                {free(block);}
void UartPrintfCritical(const char *format, ...) {(void)format;}
void UartPrintfCritical(const char *format, ...) {(void)format;}
uint32 OS_AsmInterruptEnable(uint32 state)   {(void)state; return 0;}
uint32 OS_AsmInterruptEnable(uint32 state)   {(void)state; return 0;}
void OS_Assert(void)                         {}
void OS_Assert(void)                         {}
OS_Thread_t *OS_ThreadSelf(void)             {return NULL;}
OS_Thread_t *OS_ThreadSelf(void)             {return NULL;}
void OS_ThreadSleep(int ticks)               {(void)ticks;}
void OS_ThreadSleep(int ticks)               {(void)ticks;}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.