mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-24 19:54:22 -04:00
Switch all MMIO to the new access style
This commit is contained in:
parent
5d97ac48f2
commit
d1d8d3da34
8 changed files with 137 additions and 197 deletions
|
@ -1,15 +1,5 @@
|
|||
#include "uart.h"
|
||||
|
||||
volatile void *g_uart_registers = NULL;
|
||||
|
||||
void set_uart_address(void *uart_base) {
|
||||
g_uart_registers = uart_base;
|
||||
}
|
||||
|
||||
inline void *get_uart_address(void) {
|
||||
return g_uart_registers;
|
||||
}
|
||||
|
||||
void uart_initialize(uint16_t divider) {
|
||||
/* Setup UART in 16450 mode. We assume the relevant UART clock has been enabled. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue