File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
MAX32655/Hello_World-riscv
MAX32680/Hello_World-riscv
MAX78002/CNN/imagenet-riscv Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ int main(void)
47
47
Debug_Init (); // Set up RISCV JTAG
48
48
MXC_ICC_Enable (MXC_ICC1 ); // Enable cache
49
49
50
+ // Signal the Cortex-M4
51
+ MXC_SEMA -> irq0 = MXC_F_SEMA_IRQ0_EN | MXC_F_SEMA_IRQ0_CM4_IRQ ;
52
+
50
53
printf ("Hello World!\n" );
51
54
while (1 ) {
52
55
LED_On (0 );
@@ -56,8 +59,5 @@ int main(void)
56
59
printf ("count = %d\n" , cnt ++ );
57
60
}
58
61
59
- // Signal the Cortex-M4
60
- MXC_SEMA -> irq0 = MXC_F_SEMA_IRQ0_EN | MXC_F_SEMA_IRQ0_CM4_IRQ ;
61
-
62
62
return 0 ;
63
63
}
Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ int main(void)
47
47
Debug_Init (); // Set up RISCV JTAG
48
48
MXC_ICC_Enable (MXC_ICC1 ); // Enable cache
49
49
50
+ // Signal the Cortex-M4
51
+ MXC_SEMA -> irq0 = MXC_F_SEMA_IRQ0_EN | MXC_F_SEMA_IRQ0_CM4_IRQ ;
52
+
50
53
printf ("Hello World!\n" );
51
54
while (1 ) {
52
55
LED_On (0 );
@@ -56,8 +59,5 @@ int main(void)
56
59
printf ("count = %d\n" , cnt ++ );
57
60
}
58
61
59
- // Signal the Cortex-M4
60
- MXC_SEMA -> irq0 = MXC_F_SEMA_IRQ0_EN | MXC_F_SEMA_IRQ0_CM4_IRQ ;
61
-
62
62
return 0 ;
63
63
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ int main(void)
62
62
63
63
MXC_FCR -> urvbootaddr = (uint32_t )& __FlashStart_ ; // Set RISC-V boot address
64
64
MXC_SYS_ClockEnable (MXC_SYS_PERIPH_CLOCK_SMPHR ); // Enable Sempahore clock
65
- NVIC_SetVector (RISCV_IRQn , WakeISR ); // Set wakeup ISR
65
+ MXC_NVIC_SetVector (RISCV_IRQn , WakeISR ); // Set wakeup ISR
66
66
67
67
// DO NOT DELETE THIS LINE:
68
68
MXC_Delay (SEC (2 )); // Let debugger interrupt if needed
You can’t perform that action at this time.
0 commit comments