mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-05 19:51:45 +00:00
15 lines
No EOL
327 B
C
15 lines
No EOL
327 B
C
#ifndef EXOSPHERE_TIMERS_H
|
|
#define EXOSPHERE_TIMERS_H
|
|
|
|
#include <stdint.h>
|
|
#include "mmu.h"
|
|
|
|
/* Exosphere driver for the Tegra X1 Timers. */
|
|
|
|
#define TIMERS_BASE (mmio_get_device_address(MMIO_DEVID_TMRs_WDTs))
|
|
|
|
#define TIMERUS_CNTR_1US_0 (*((volatile uint32_t *)(TIMERS_BASE + 0x10)))
|
|
|
|
void wait(uint32_t microseconds);
|
|
|
|
#endif |