SummerCart64/sw/controller/src/timer.h
Mateusz Faderewski 0dbec80183
[SC64][SW] USB debug improvements (#38)
- N64 -> PC heartbeat datatype support
 - PC -> N64 debug write timeout implementation (1 second)
 - PC -> N64 text datatype bug fix (added null byte at the end)
 - 64DD disk insertion by default
2023-04-23 13:07:47 +02:00

22 lines
297 B
C

#ifndef TIMER_H__
#define TIMER_H__
#include <stdint.h>
typedef enum {
TIMER_ID_USB,
TIMER_ID_WRITEBACK,
__TIMER_ID_COUNT
} timer_id_t;
uint32_t timer_get (timer_id_t id);
void timer_set (timer_id_t id, uint32_t ticks);
void timer_init (void);
void timer_update (void);
#endif