mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-27 13:14:15 -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 "timers.h"
|
||||
|
||||
volatile void *g_timer_registers = NULL;
|
||||
|
||||
void set_timer_address(void *timer_base) {
|
||||
g_timer_registers = timer_base;
|
||||
}
|
||||
|
||||
inline void *get_timer_address(void) {
|
||||
return g_timer_registers;
|
||||
}
|
||||
|
||||
void wait(uint32_t microseconds) {
|
||||
uint32_t old_time = TIMERUS_CNTR_1US_0;
|
||||
while (TIMERUS_CNTR_1US_0 - old_time <= result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue