blob: 69969837988da97fded107804a2ec105c533cfb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "../sys/core.h"
#include "../sys/timer.h"
#include "../util/time.h"
#include "../drivers/uart.a.h"
#include "../drivers/uart.h"
void c_timer() {
// Reset the counter
write_cntv_tval(cntfrq);
// Output the value
uart_string((char*)"Timer Value: ");
unsigned long v = read_cntv_tval();
uart_10(v);
uart_char(0x20);
uart_hexn(v);
}
|