URL
https://opencores.org/ocsvn/plasma/plasma/trunk
[/] [plasma/] [trunk/] [tools/] [no_os.c] - Diff between revs 137 and 200
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 137 |
Rev 200 |
Line 1... |
Line 1... |
#include "plasma.h"
|
#include "plasma.h"
|
|
|
#define MemoryRead(A) (*(volatile unsigned int*)(A))
|
#define MemoryRead(A) (*(volatile unsigned int*)(A))
|
#define MemoryWrite(A,V) *(volatile unsigned int*)(A)=(V)
|
#define MemoryWrite(A,V) *(volatile unsigned int*)(A)=(V)
|
|
|
|
int InitStack[128]; //used by boot.asm
|
|
|
void putchar(int value)
|
void putchar(int value)
|
{
|
{
|
while((MemoryRead(IRQ_STATUS) & IRQ_UART_WRITE_AVAILABLE) == 0)
|
while((MemoryRead(IRQ_STATUS) & IRQ_UART_WRITE_AVAILABLE) == 0)
|
;
|
;
|
MemoryWrite(UART_WRITE, value);
|
MemoryWrite(UART_WRITE, value);
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.