diff --git a/src/main.cpp b/src/main.cpp index 45ba042..4e068b8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,11 @@ -//#include "stddefs.h" +/* + * Subject: Interrupt Controller (IRQ), irq@MuraxSoc (RV32I) + * Lang_s: asm, c, c++ + * Env: Bare Metal verilated MuraxSoc + * Tested: gdb@jtag + * mpabi@2024/PI + */ + #include #include "murax.h" @@ -14,12 +21,6 @@ void println(const char*str){ // uart_write(UART,'\n'); } -void delay(uint32_t loops){ - for(int i=0;iOUTPUT; - } -} - volatile int mati = 0; @@ -41,12 +42,8 @@ const Timer_Reg* TimeR::ptr = reinterpret_cast(0xF0020040); int main() { - GPIO_A->OUTPUT_ENABLE = 0x0000000F; - GPIO_A->OUTPUT = 0x00000001; - println("hello world arty a7 v1"); +// println("hello world arty a7 v1"); - const int nleds = 4; - const int nloops = 10; interruptCtrl_init(TIMER_INTERRUPT); prescaler_init(TIMER_PRESCALER);