18 lines
407 B
C++
18 lines
407 B
C++
#ifndef DBG_H
|
|
#define DBG_H
|
|
#include <stdint.h>
|
|
|
|
extern "C" int printk(const char* msg);
|
|
extern "C" int printkl(const char* msg);
|
|
extern "C" const char* itoa(uint32_t n);
|
|
|
|
namespace dbg {
|
|
|
|
char* const UART_RBR = (char* const)0x01c28000;
|
|
char* const UART_THR = (char* const)0x01c28000;
|
|
char* const UART_IER = (char* const)0x01c28004;
|
|
char* const UART_LSR = (char* const)0x01c28014;
|
|
}
|
|
|
|
#endif
|