Newer
Older
Atmosphere / exosphere / timers.c
@Michael Scire Michael Scire on 23 Feb 2018 186 bytes Switch all MMIO to the new access style
#include "timers.h"

void wait(uint32_t microseconds) {
    uint32_t old_time = TIMERUS_CNTR_1US_0;
    while (TIMERUS_CNTR_1US_0 - old_time <= result) {
        /* Spin-lock. */
    }
}