On the teensy 3.2 I was able to detect if a USB cable was connected by testing a register USB0_OTGSTAT.
which is documented in K20 Sub-Family Reference Manual for: MK20DX64VLH7, MK20DX128VLH7, MK20DX256VLH7
a search for a similar manual on the arm website didn't turn up anything useful.
What would I need to check on the teensy 4.0 to detect the USB connected status?
Any ideas on where to find the ARM M7 reference manual would also be appreciated.
Code:
if (!bitRead(USB0_OTGSTAT,5))
{
USBConnected = true;
}
which is documented in K20 Sub-Family Reference Manual for: MK20DX64VLH7, MK20DX128VLH7, MK20DX256VLH7
a search for a similar manual on the arm website didn't turn up anything useful.
What would I need to check on the teensy 4.0 to detect the USB connected status?
Any ideas on where to find the ARM M7 reference manual would also be appreciated.