From 0a656269756e98c66b148e5f8ce9d6d4810d703e Mon Sep 17 00:00:00 2001 From: BlackMark Date: Mon, 13 Apr 2020 00:22:02 +0200 Subject: [PATCH] Update uart submodule to fix 115200 baud with 16 MHz --- blink/clock.hpp | 3 +- stk500v2/clock.hpp | 3 +- stk500v2/stk500v2.cppproj | 116 +++++++++++++++++++------------------- stk500v2/uart | 2 +- tsb/uart | 2 +- 5 files changed, 64 insertions(+), 62 deletions(-) diff --git a/blink/clock.hpp b/blink/clock.hpp index 9d22bb6..0eaf2c2 100644 --- a/blink/clock.hpp +++ b/blink/clock.hpp @@ -1,4 +1,5 @@ #pragma once -#define F_CPU 18'432'000 +//#define F_CPU 18'432'000 +#define F_CPU 16'000'000 #include diff --git a/stk500v2/clock.hpp b/stk500v2/clock.hpp index 9d22bb6..0eaf2c2 100644 --- a/stk500v2/clock.hpp +++ b/stk500v2/clock.hpp @@ -1,4 +1,5 @@ #pragma once -#define F_CPU 18'432'000 +//#define F_CPU 18'432'000 +#define F_CPU 16'000'000 #include diff --git a/stk500v2/stk500v2.cppproj b/stk500v2/stk500v2.cppproj index da607e9..f8c0c6a 100644 --- a/stk500v2/stk500v2.cppproj +++ b/stk500v2/stk500v2.cppproj @@ -112,64 +112,64 @@ - -mmcu=atmega328p - True - True - True - True - False - True - True - - - NDEBUG - - - - - %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include - - - Optimize for size (-Os) - True - True - True - True - -fno-threadsafe-statics -std=c11 - True - True - - - NDEBUG - - - - - %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include - - - Optimize for size (-Os) - True - True - True - -fno-threadsafe-statics -Wextra -std=c++17 - True - - - libm - - - - - .text=0x3C00 - - - - - %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include - - - + -mmcu=atmega328p + True + True + True + True + False + True + True + + + NDEBUG + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Optimize for size (-Os) + True + True + True + True + -fno-threadsafe-statics -std=c11 + True + True + + + NDEBUG + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Optimize for size (-Os) + True + True + True + -fno-threadsafe-statics -Wextra -std=c++17 + True + + + libm + + + + + .text=0x3C00 + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + diff --git a/stk500v2/uart b/stk500v2/uart index ae03c8d..04b6782 160000 --- a/stk500v2/uart +++ b/stk500v2/uart @@ -1 +1 @@ -Subproject commit ae03c8d43e46dfbd396a052f71670727b293ac76 +Subproject commit 04b6782ec457fb22759a097892b863a3ec6eaab4 diff --git a/tsb/uart b/tsb/uart index ae03c8d..04b6782 160000 --- a/tsb/uart +++ b/tsb/uart @@ -1 +1 @@ -Subproject commit ae03c8d43e46dfbd396a052f71670727b293ac76 +Subproject commit 04b6782ec457fb22759a097892b863a3ec6eaab4