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:
2025-06-10 23:46:43 -07:00
parent fa6ae7b667
commit 3db383d461
17 changed files with 485 additions and 93 deletions

18
mbv/hal/pol0.h Normal file
View 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)