Open supersimple33 opened 2 days ago
GCLK1 is the 32KHz osciallator. You probably want gclk0.
@sajattack Ohh yeah I forgot that. But after switching to GCLK0 the code still does not work.
@supersimple33, according to the datasheet, looks like you should be using the EXTINT[6] line for the PC06 (d46) pin. Can you try modifying your code to see if that works?
From a quick glance at the eic
module, it looks like an ExtInt*
will accept any pin without emitting a compile error, not just the pins that belong to its interrupt line. This is clearly a bug with the HAL and I think it should be addressed.
@jbeaurivage Yeah that was totally it I forgot to double check the interrupts lines. You relieved so much pain, thank you!
No problem! I'll keep this open, because the eic
module needs some work to avoid this kind of mistake happening in the future.
I have been trying to implement a external interrupt controller on the grand_central_m4. I believe the following code is correct based on what I saw in a few examples on here however the led does not turn on when pressing the connected switch.