aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32/examples/clock.c
blob: ec23037a0c6aa3aceac0809c748b931870e434f8 (plain)
1
2
3
4
5
6
7
8

int clock()
{
	volatile int *t_addr;

	t_addr = (volatile int * ) 0x01F80080;	/* Real-time clock address */
	return(*t_addr);
}