2020-07-23 19:37:48 +00:00
|
|
|
#define PERIPHERAL_BASE 0xFE000000
|
2021-02-08 13:51:20 +00:00
|
|
|
#define SAFE_ADDRESS 0x00210000 // Somewhere safe to store a lot of data
|
2020-07-23 19:37:48 +00:00
|
|
|
|
|
|
|
void uart_init();
|
|
|
|
void uart_writeText(char *buffer);
|
|
|
|
void uart_loadOutputFifo();
|
|
|
|
unsigned char uart_readByte();
|
|
|
|
unsigned int uart_isReadByteReady();
|
2020-07-26 18:28:44 +00:00
|
|
|
void uart_writeByteBlockingActual(unsigned char ch);
|
2020-07-23 19:37:48 +00:00
|
|
|
void uart_update();
|
|
|
|
void mmio_write(long reg, unsigned int val);
|
|
|
|
unsigned int mmio_read(long reg);
|
|
|
|
void gpio_useAsAlt3(unsigned int pin_number);
|
|
|
|
void uart_hex(unsigned int d);
|
2020-08-05 20:30:54 +00:00
|
|
|
void uart_byte(unsigned char b);
|