3 #define MemoryRead(A) (*(volatile unsigned int*)(A))
4 #define MemoryWrite(A,V) *(volatile unsigned int*)(A)=(V)
8 while((MemoryRead(IRQ_STATUS) & IRQ_UART_WRITE_AVAILABLE) == 0)
10 MemoryWrite(UART_WRITE, value);
14 int puts(const char *string)
25 void print_hex(unsigned long num)
29 for(i = 28; i >= 0; i -= 4)
35 putchar('a' - 10 + j);
39 void OS_InterruptServiceRoutine(unsigned int status)
47 return MemoryRead(IRQ_STATUS) & IRQ_UART_READ_AVAILABLE;
53 return MemoryRead(UART_READ);