rpi4-osdev/part7-bluetooth/io.h
2020-07-23 20:37:48 +01:00

13 lines
408 B
C

#define PERIPHERAL_BASE 0xFE000000
void uart_init();
void uart_writeText(char *buffer);
void uart_loadOutputFifo();
unsigned char uart_readByte();
unsigned int uart_isReadByteReady();
void uart_writeByteBlocking(unsigned char ch);
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);