In trying to reduce battery consumption, I accidentally uploaded the following code, and my feather went into deep sleep. With all clocks off, it seems USB is dead also, so my attempts to upload a fix resulted in, "No device found on cu.usbmodem14101". Since the "attachInterrupt" and EIC pins, don't match, pulling either one high doesn't help. Is my feather permanently bricked?
void onInt()
{
// resume
}
void setup(){
pinMode(15,INPUT); // Set sensor pin as input
attachInterrupt(15,onInt,HIGH); // Attach interrupt to sensor Pin
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; // Enable deep-sleep mode
EIC->WAKEUP.reg = EIC_WAKEUP_WAKEUPEN7; // I think this should have been 8 !!!!!
__WFI(); // Wait for interrupt
}