We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d701922 commit dc9bf67Copy full SHA for dc9bf67
src/samd/ArduinoLowPower.cpp
@@ -5,7 +5,7 @@
5
static void configGCLK6()
6
{
7
// enable EIC clock
8
- GCLK->CLKCTRL.bit.CLKEN = 0; //disable GCLK module
+ GCLK->CLKCTRL.reg = (uint16_t)(GCLK_CLKCTRL_ID(GCM_EIC)); // Disable EIC clock (also sets GCLK_CTRL_CLKEN bit to 0)
9
while (GCLK->STATUS.bit.SYNCBUSY);
10
11
GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK6 | GCLK_CLKCTRL_ID( GCM_EIC )) ; //EIC clock switched on GCLK6
0 commit comments