cores icon indicating copy to clipboard operation
cores copied to clipboard

bug fix, No blind USB irq enable

Open dfries opened this issue 5 years ago • 1 comments

I have a program that's receiving data over USB serial and consuming that data as timers expire (two interrupt routines). I'm having data corruption, hangs, and other odd problems. I disabled interrupts in my routines, but I'm calling the usb_serial routines and they unconditionally enable interrupts. Here are corrected versions of the usb routines that will only enable interrupts if interrupts were previously enabled. This fixed the problems I was seeing.

dfries avatar Mar 02 '19 19:03 dfries