From 01212b8acfc2b7223aec2d3498b7d3307e38e497 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sun, 29 May 2022 16:16:58 +0200 Subject: [PATCH] Make use of C++ standard library --- eink/eink | 2 +- eink/eink.cppproj | 240 +++++++++++++++++++++------------------------- eink/io | 2 +- eink/main.cpp | 4 +- eink/spi | 2 +- eink/uart | 2 +- eink/util | 2 +- 7 files changed, 115 insertions(+), 139 deletions(-) diff --git a/eink/eink b/eink/eink index 2e417a0..75046d1 160000 --- a/eink/eink +++ b/eink/eink @@ -1 +1 @@ -Subproject commit 2e417a0f3aa9e187d80f008054b9323fc05afced +Subproject commit 75046d1c1a55ccdffa5928e2761c867887611d4c diff --git a/eink/eink.cppproj b/eink/eink.cppproj index 5c9c6ed..5849760 100644 --- a/eink/eink.cppproj +++ b/eink/eink.cppproj @@ -83,135 +83,124 @@ - - \Debug\eink.lss - - - .lss - ^\s*(?<address>[a-f0-9]*):\s*.*$ - true - address - $pc - - - -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=c17 - True - True - - - NDEBUG - - - - - %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include - - - Optimize for size (-Os) - True - True - True - -fno-threadsafe-statics -Wextra -Wno-array-bounds -std=c++20 -isystem"%24(ProjectDir)/avr-libstdcpp/include" - - - libm - - - - - %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=c17 + True + True + + + NDEBUG + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Optimize for size (-Os) + True + True + True + -fno-threadsafe-statics -Wextra -Wno-array-bounds -std=c++20 -isystem"%24(ProjectDir)/avr-libstdcpp/include" + + + libm + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + - -mmcu=atmega328p - True - True - True - True - False - True - True - - - DEBUG - - - - - %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include - - - Optimize (-O1) - True - Maximum (-g3) - True - True - True - -fno-threadsafe-statics -std=c17 - True - True - - - DEBUG - - - - - %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include - - - Optimize (-O1) - True - Maximum (-g3) - True - True - -fno-threadsafe-statics -Wextra -std=c++20 -isystem"%24(ProjectDir)/avr-libstdcpp/include" - - - libm - - - - - %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include - - - Default (-Wa,-g) - + -mmcu=atmega328p + True + True + True + True + False + True + True + + + DEBUG + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Optimize (-O1) + True + Maximum (-g3) + True + True + True + -fno-threadsafe-statics -std=c17 + True + True + + + DEBUG + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Optimize (-O1) + True + Maximum (-g3) + True + True + -fno-threadsafe-statics -Wextra -std=c++20 -isystem"%24(ProjectDir)/avr-libstdcpp/include" + + + libm + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Default (-Wa,-g) + @@ -260,21 +249,6 @@ compile - - compile - - - compile - - - compile - - - compile - - - compile - compile diff --git a/eink/io b/eink/io index bf94eba..5407e94 160000 --- a/eink/io +++ b/eink/io @@ -1 +1 @@ -Subproject commit bf94ebaac143c2a6f48abcd99573547030ce1bd8 +Subproject commit 5407e94337257216067d98b86f03bbd898040fca diff --git a/eink/main.cpp b/eink/main.cpp index e7e1207..44ead67 100644 --- a/eink/main.cpp +++ b/eink/main.cpp @@ -2,6 +2,8 @@ #include +#include + #include "eink/eink.hpp" #include "flash/flash.hpp" #include "io/io.hpp" @@ -13,7 +15,7 @@ REGISTER_UART0_INT_VECTORS(uart_t); ////////////////////////////////////////////////////////////////////////// -constexpr auto IMAGE [[gnu::progmem]] = std::to_array({ +constexpr auto IMAGE [[gnu::progmem]] = std::to_array({ 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x85, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x79, 0x85, 0x79, 0x79, 0x79, diff --git a/eink/spi b/eink/spi index 85346f2..8bf3d1a 160000 --- a/eink/spi +++ b/eink/spi @@ -1 +1 @@ -Subproject commit 85346f258fd7cac32b4f4d9df0350b97b8e9d9e8 +Subproject commit 8bf3d1a87411d0fdade0941ff51832cd6dd0a425 diff --git a/eink/uart b/eink/uart index a5f8e8e..419b869 160000 --- a/eink/uart +++ b/eink/uart @@ -1 +1 @@ -Subproject commit a5f8e8e3d7be26eaaeb5b29d44d02879bd5d36de +Subproject commit 419b86999db8735728da2536021351611273d643 diff --git a/eink/util b/eink/util index 5282fdd..62efd1c 160000 --- a/eink/util +++ b/eink/util @@ -1 +1 @@ -Subproject commit 5282fdde4636016314befe7110a7d4573c597c7c +Subproject commit 62efd1cb26b5e36a49743ac14ac8da25a3f1142c