arduino / arduino/ArduinoCore-avr

Caterina leaves UDIEN and UDINT non-zero

Open
#252 0 comments 0 reactions 1 assignee Claimed by @cmaglie View on GitHub
Dominant language
C
Stars
1.5k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I have some code that does not use USB but does have some interrupt handlers that were refusing to fire. Turns out the code works fine if I include USB stuff but not if I don't. After much digging, it seems that Caterina leaves UDIEN=0x09 and UDINT=0x14 after exiting. I think it should leave USB in the state it would be in immediately after a reset, in particular with these two registers containing 0.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.