stkarm/include/dbg.h

18 lines
407 B
C
Raw Normal View History

2018-12-28 10:30:39 +00:00
#ifndef DBG_H
#define DBG_H
#include <stdint.h>
2018-12-28 10:30:39 +00:00
extern "C" int printk(const char* msg);
extern "C" int printkl(const char* msg);
extern "C" const char* itoa(uint32_t n);
2018-12-28 10:30:39 +00:00
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