mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-07 01:13:18 +00:00
Setup timing better (fuses, clock speed, TCB clock speed)
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <avr/interrupt.h>
|
||||
#include <avr/io.h>
|
||||
#include <avr/sfr_defs.h>
|
||||
#include <avr/xmega.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "avclandrv.h"
|
||||
@@ -217,6 +218,8 @@ void Setup() {
|
||||
printAllFrames = 1;
|
||||
echoCharacters = 1;
|
||||
|
||||
_PROTECTED_WRITE(CLKCTRL.MCLKCTRLB, (CLK_PRESCALE | CLK_PRESCALE_DIV));
|
||||
|
||||
general_GPIO_init();
|
||||
|
||||
// Setup RTC as 1 sec periodic timer
|
||||
|
||||
Reference in New Issue
Block a user