1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-23 10:52:13 +00:00
Atmosphere/exosphere/timers.h

16 lines
335 B
C
Raw Normal View History

2018-02-18 02:50:39 +00:00
#ifndef EXOSPHERE_TIMERS_H
#define EXOSPHERE_TIMERS_H
#include <stdint.h>
2018-02-24 16:13:42 +00:00
#include "memory_map.h"
2018-02-18 02:50:39 +00:00
/* Exosphere driver for the Tegra X1 Timers. */
#define TIMERS_BASE (mmio_get_device_address(MMIO_DEVID_TMRs_WDTs))
2018-02-18 02:50:39 +00:00
#define TIMERUS_CNTR_1US_0 (*((volatile uint32_t *)(TIMERS_BASE + 0x10)))
2018-02-18 02:50:39 +00:00
void wait(uint32_t microseconds);
2018-02-24 16:13:42 +00:00
#endif