mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-06 01:21:18 -04:00
Refactor 32-bit register definitions
This commit is contained in:
parent
c0f99fcd1c
commit
a6c7a2c57e
26 changed files with 126 additions and 98 deletions
|
@ -90,7 +90,7 @@ uint32_t cpu_suspend(uint64_t power_state, uint64_t entrypoint, uint64_t argumen
|
|||
uint32_t start_time = get_time();
|
||||
bool should_wait = true;
|
||||
/* TODO: This is GPIO-6 GPIO_IN_1 */
|
||||
while ((*((volatile uint32_t *)(MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_GPIO) + 0x634))) & 1) {
|
||||
while (MAKE_REG32(MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_GPIO) + 0x634) & 1) {
|
||||
if (get_time() - start_time > 50000) {
|
||||
should_wait = false;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue