aboutsummaryrefslogtreecommitdiff
path: root/usr/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/main.c')
-rw-r--r--usr/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/main.c b/usr/main.c
index 9c8a7d8..5a49f49 100644
--- a/usr/main.c
+++ b/usr/main.c
@@ -66,14 +66,16 @@ void loop(void)
void loopt(void)
{
static char str[13];
- draw_string(0, 9, ulong_to_string(*(volatile unsigned long*)SYS_TIMER_CHI, str));
+ draw_string(0, 14, ulong_to_string(*(volatile unsigned long*)SYS_TIMER_CHI, str));
}
-static unsigned long TICK_RATE = 5000000;
+static unsigned long TICK_RATE_0 = 5000000;
+static unsigned long TICK_RATE_1 = 300000;
static unsigned long UART_PRIORITY = 2;
void main(void)
{
subscribe_irq(UART_IRQ, handle_data, &UART_PRIORITY);
- subscribe_irq(SYS_TIMER_0_IRQ, loopt, &TICK_RATE);
+ subscribe_irq(SYS_TIMER_0_IRQ, loopt, &TICK_RATE_0);
+ subscribe_irq(SYS_TIMER_1_IRQ, loopt, &TICK_RATE_1);
add_thread(loop, 0, 0);
}