Commit Graph

15 Commits

Author SHA1 Message Date
Jim Paris
b2c64dc233 Provide a function to change timer interrrupt handlers
Function irq_register_timer_handler(int timer, void (*isr)(void))
lets you change the handler at runtime.  This lets us set handlers
without necessarily knowing the name at link-time.  The old way of
having weakly-linked tmr0_isr functions should still work.
2010-10-16 13:28:20 -04:00
Jim Paris
ac2cac1e1d Register definitions: get rid of some macro magic that doesn't help much
Instead of e.g. GPIO.DATA.GPIO_08, you now use GPIO->DATA.GPIO_08.
2010-09-26 16:05:12 -04:00
Jim Paris
2f52fdd156 Add cal_isr() support 2010-09-25 22:51:19 -04:00
Jim Paris
0a41939407 Makefile cleanup.
This is an attempt to fix and cleanup all of the rules, and get rid of
some of the recursion.  We still need to invoke make several times
when we're building for more than one board, and some things can get a
bit weird when that happens, but it should generally work.  A single
BOARD=foo build should be fully correct, now.

I attempted to keep things compatible, so existing Makefiles that
include libmc1322x/Makefile.include should still work correctly.
2010-09-24 16:29:43 -04:00
Mariano Alvira
50102c2516 clear forced interrupts after the have been serviced. 2010-05-22 15:45:00 -04:00
Mariano Alvira
6195931bd4 add attribution and license headers to source files. TODO item about
start.S and printf.c
2010-05-08 13:03:36 -04:00
Mariano Alvira
3178906b43 surpress warning. 2010-03-08 18:13:19 -05:00
Mariano Alvira
20f6a749d1 isr updates 2010-03-04 18:52:04 -05:00
Mariano Alvira
d3fed95235 tmr-ints 2010-02-26 16:15:26 -05:00
Mariano Alvira
e340e234c6 clean up 2009-11-04 17:30:18 -05:00
Mariano Alvira
be410aceaf cleanup 2009-05-05 16:24:47 -04:00
Mariano Alvira
d869766664 using weak links for individual isrs 2009-04-24 16:04:04 -04:00
Mariano Alvira
2288c9e2ff better way to do irqs 2009-04-24 15:42:15 -04:00
Mariano Alvira
bdbf279d0f tmr imts works. I'm not thrilled with how the interrupts and modes are
set... but I'm not sure what to do about it. The big problem is that I
have to be in user mode to service irqs, but I can't enable and
disable F and I in usermode. All I can do is an swi and then have
handler which lets me enable or disable them (like a mini-syscall).
2009-04-22 14:55:40 -04:00
Mariano Alvira
10fdafbcb2 initial isr. has problems. 2009-04-20 18:38:45 -04:00