mbv: now with functioning timer interrupts!
And a few other nice things. The bootloader now has an embedded wozmon! If you know its offset, you can jump to it from the app.
This commit is contained in:
18
mbv/hal/pol0.h
Normal file
18
mbv/hal/pol0.h
Normal file
@@ -0,0 +1,18 @@
|
||||
// Platform definitions for pol0
|
||||
|
||||
// LED output
|
||||
#define GPIO0_BASE (0x40000000)
|
||||
|
||||
// /dev/ttyUSB1
|
||||
#define UART0_BASE (0x40600000)
|
||||
|
||||
// Interrupt controller
|
||||
#define INTC_BASE (0x41200000)
|
||||
|
||||
// It's uh.. a timer.
|
||||
#define TIMER0_BASE (0x41c00000)
|
||||
|
||||
// IRQs
|
||||
#define UART0_IRQN (0)
|
||||
#define TIMER0_IRQN (1)
|
||||
#define NIRQ (2)
|
||||
Reference in New Issue
Block a user