2021-04-13 03:10:06 +00:00
|
|
|
#ifndef _TIMER_H_
|
|
|
|
#define _TIMER_H_
|
|
|
|
|
|
|
|
#define TIMER0_BASE (0x40000000)
|
|
|
|
#define TIMER0_CTRL (TIMER0_BASE + (0x00))
|
|
|
|
#define TIMER0_COUNT (TIMER0_BASE + (0x04))
|
|
|
|
#define TIMER0_VALUE (TIMER0_BASE + (0x08))
|
|
|
|
|
|
|
|
#define TIMER0_REG(addr) (*((volatile uint32_t *)addr))
|
|
|
|
|
|
|
|
#endif
|