Skip to content

Commit be531f7

Browse files
committed
enabling SOF cleared other interrupt enables
Signed-off-by: Rafael Silva <[email protected]>
1 parent c4b2c94 commit be531f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/portable/microchip/samhs/dcd_samhs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void dcd_connect(uint8_t rhport)
164164
// Enable the End Of Reset, Suspend & Wakeup interrupts
165165
SAMHS_REG->SAMHS_DEV_IER = (SAMHS_DEV_IER_EORSTES | SAMHS_DEV_IER_SUSPES | SAMHS_DEV_IER_WAKEUPES);
166166
#if USE_SOF
167-
SAMHS_REG->SAMHS_DEV_IER = SAMHS_DEV_IER_SOFES;
167+
SAMHS_REG->SAMHS_DEV_IER |= SAMHS_DEV_IER_SOFES;
168168
#endif
169169
// Clear the End Of Reset, SOF & Wakeup interrupts
170170
SAMHS_REG->SAMHS_DEV_ICR = (SAMHS_DEV_ICR_EORSTC | SAMHS_DEV_ICR_SOFC | SAMHS_DEV_ICR_WAKEUPC);

0 commit comments

Comments
 (0)