Use clock_prescale_set() from avr-libc (#7540)
* Use `clock_prescale_set()` from avr-libc * Remove outdated FAQ info
This commit is contained in:
@@ -1028,14 +1028,11 @@ void virtser_send(const uint8_t byte) {
|
|||||||
*/
|
*/
|
||||||
static void setup_mcu(void) {
|
static void setup_mcu(void) {
|
||||||
/* Disable watchdog if enabled by bootloader/fuses */
|
/* Disable watchdog if enabled by bootloader/fuses */
|
||||||
MCUSR &= ~(1 << WDRF);
|
MCUSR &= ~_BV(WDRF);
|
||||||
wdt_disable();
|
wdt_disable();
|
||||||
|
|
||||||
/* Disable clock division */
|
/* Disable clock division */
|
||||||
// clock_prescale_set(clock_div_1);
|
clock_prescale_set(clock_div_1);
|
||||||
|
|
||||||
CLKPR = (1 << CLKPCE);
|
|
||||||
CLKPR = (0 << CLKPS3) | (0 << CLKPS2) | (0 << CLKPS1) | (0 << CLKPS0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** \brief Setup USB
|
/** \brief Setup USB
|
||||||
|
|||||||
Reference in New Issue
Block a user