Make use of C++ standard library

This commit is contained in:
2022-05-29 16:16:58 +02:00
parent 4684a8f80f
commit 01212b8acf
7 changed files with 115 additions and 139 deletions

View File

@@ -83,17 +83,6 @@
</custom>
<AAFDebugger>
<AAFDebugFiles>
<DebugFile>
<path>\Debug\eink.lss</path>
<AAFSetting>
<Label>Lss Files</Label>
<Extention>.lss</Extention>
<Regex>^\s*(?&lt;address&gt;[a-f0-9]*):\s*.*$</Regex>
<DebugEnabled>true</DebugEnabled>
<RegexGroups>address</RegexGroups>
<DebuggerExpression>$pc</DebuggerExpression>
</AAFSetting>
</DebugFile>
</AAFDebugFiles>
</AAFDebugger>
</PropertyGroup>
@@ -260,21 +249,6 @@
<Compile Include="uart\uart.hpp">
<SubType>compile</SubType>
</Compile>
<Compile Include="util\array.hpp">
<SubType>compile</SubType>
</Compile>
<Compile Include="util\func.hpp">
<SubType>compile</SubType>
</Compile>
<Compile Include="util\new.cpp">
<SubType>compile</SubType>
</Compile>
<Compile Include="util\new.hpp">
<SubType>compile</SubType>
</Compile>
<Compile Include="util\type.hpp">
<SubType>compile</SubType>
</Compile>
<Compile Include="util\util.hpp">
<SubType>compile</SubType>
</Compile>

Submodule eink/io updated: bf94ebaac1...5407e94337

View File

@@ -2,6 +2,8 @@
#include <array>
#include <cstdint>
#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<uint8_t>({
constexpr auto IMAGE [[gnu::progmem]] = std::to_array<std::uint8_t>({
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,