File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
src/portable/renesas/rusb2 Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ const bsp_interrupt_event_t g_interrupt_event_link_select[BSP_ICU_VECTOR_MAX_ENT
92
92
//--------------------------------------------------------------------+
93
93
94
94
void board_init (void ) {
95
+ // Enable global interrupts in CPSR register since board with bootloader such as Arduino Uno R4
96
+ // can transfer CPU control with CPSR.I bit set to 0 (disable IRQ)
97
+ __enable_irq ();
98
+
95
99
/* Configure pins. */
96
100
R_IOPORT_Open (& port_ctrl , & family_pin_cfg );
97
101
Original file line number Diff line number Diff line change @@ -740,6 +740,7 @@ void dcd_init(uint8_t rhport)
740
740
rusb -> BEMPENB = 1 ;
741
741
rusb -> BRDYENB = 1 ;
742
742
743
+ // If VBUS (detect) pin is not used, application need to call tud_connect() manually after tud_init()
743
744
if (rusb -> INTSTS0_b .VBSTS ) {
744
745
dcd_connect (rhport );
745
746
}
You can’t perform that action at this time.
0 commit comments