Complete the code to enable the window watchdog timer.
WWDG->CR = [1];The control register (CR) is set with 0x80 to activate the watchdog counter.
Complete the code to set the window value for the watchdog timer.
WWDG->CFR = ([1] << 0);
The window value is set by writing 0x3F to the lower 7 bits of the CFR register.
Fix the error in the code to refresh the watchdog counter correctly.
WWDG->CR = [1];Refreshing the watchdog requires writing 0x7F to the CR register to reset the counter.
Fill both blanks to configure the prescaler and enable the watchdog interrupt.
WWDG->CFR = ([1] << 7) | (1 << [2]);
The prescaler is set by shifting 3 to bit 7, and the interrupt enable is bit 6.
Fill all three blanks to initialize the watchdog with prescaler, window, and refresh.
WWDG->CFR = ([1] << 7) | [2]; WWDG->CR = [3];
Prescaler set to 4 (shifted to bit 7), window set to 0x3F, and refresh counter set to 0x7F.