stkarm/include/dbg.h
giomba b431e382e8 Interrupt Vector Table, first tests
Populated a relocated IVT, and tested SWI (Software Interrupt)
2018-12-30 22:44:14 +01:00

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