aboutsummaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-23 23:19:02 -0700
committerChristian Cunningham <cc@localhost>2022-03-23 23:19:02 -0700
commit3e64dda5d5c350cc325650133f7e64967f1efe84 (patch)
treee42452c9140327e3f9c53a32c6d42aecce731b91 /src/cpu
parent48bc61ac76b82b1514ed4bf1d3dc7ba6cb2c991c (diff)
Toy task start - 1/40u
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/irq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/irq.c b/src/cpu/irq.c
index dcca9e8..d3eefa2 100644
--- a/src/cpu/irq.c
+++ b/src/cpu/irq.c
@@ -9,6 +9,7 @@
#include <util/mutex.h>
#include <util/status.h>
#include <util/time.h>
+#include <usr/main.h>
#define CPS 1000
@@ -59,10 +60,9 @@ unsigned long c_irq_handler(void)
volatile unsigned long* timer_cs = (volatile unsigned long*)SYS_TIMER_CS;
volatile unsigned long* timer_chi = (volatile unsigned long*)SYS_TIMER_CHI;
volatile unsigned long* nexttime = (volatile unsigned long*)SYS_TIMER_C0;
- add_thread_without_duplicate(test_entry, 0, 2);
- *nexttime = *timer_chi + 4000000;
+ add_thread_without_duplicate(main, 0, 0);
+ *nexttime = *timer_chi + 40;
*timer_cs = SYS_TIMER_SC_M0;
- status();
return 1;
}
}