From ef42a67d10e400407e1b98daf15deedb770c453b Mon Sep 17 00:00:00 2001 From: BlackMark Date: Fri, 10 Apr 2020 10:06:11 +0200 Subject: [PATCH] Change clock crystal to 18.432 MHz --- stk500v2/clock.hpp | 2 +- tsb/clock.hpp | 2 +- tsb/main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stk500v2/clock.hpp b/stk500v2/clock.hpp index 94845e9..9d22bb6 100644 --- a/stk500v2/clock.hpp +++ b/stk500v2/clock.hpp @@ -1,4 +1,4 @@ #pragma once -#define F_CPU 16000000 +#define F_CPU 18'432'000 #include diff --git a/tsb/clock.hpp b/tsb/clock.hpp index 94845e9..9d22bb6 100644 --- a/tsb/clock.hpp +++ b/tsb/clock.hpp @@ -1,4 +1,4 @@ #pragma once -#define F_CPU 16000000 +#define F_CPU 18'432'000 #include diff --git a/tsb/main.cpp b/tsb/main.cpp index 9543bdd..fb6b242 100644 --- a/tsb/main.cpp +++ b/tsb/main.cpp @@ -12,7 +12,7 @@ constexpr auto REQUEST_CMD = '?'; constexpr auto CONFIRM_CMD = '!'; constexpr auto AUTO_BAUDING_CMD = '@'; -using uart_interface = uart::Hardware0, uart::Driven::BLOCKING>; +using uart_interface = uart::Hardware0, uart::Driven::BLOCKING>; enum class State { WAITING,