Add C++ standard library
This commit is contained in:
@@ -10,7 +10,7 @@ FUSES = -U lfuse:w:0xff:m -U hfuse:w:0xd7:m -U efuse:w:0xfd:m
|
||||
|
||||
# Parameters
|
||||
PROJECT = $(lastword $(subst /, ,$(CURDIR)))
|
||||
INCS =
|
||||
INCS = -isystem avr-libstdcpp/include
|
||||
LIBS =
|
||||
DEFS = -DNDEBUG
|
||||
|
||||
|
||||
1
eink/avr-libstdcpp
Submodule
1
eink/avr-libstdcpp
Submodule
Submodule eink/avr-libstdcpp added at d289637d14
@@ -140,7 +140,7 @@
|
||||
<avrgcccpp.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcccpp.compiler.optimization.AllocateBytesNeededForEnum>
|
||||
<avrgcccpp.compiler.warnings.AllWarnings>True</avrgcccpp.compiler.warnings.AllWarnings>
|
||||
<avrgcccpp.compiler.warnings.Pedantic>True</avrgcccpp.compiler.warnings.Pedantic>
|
||||
<avrgcccpp.compiler.miscellaneous.OtherFlags>-fno-threadsafe-statics -Wextra -Wno-array-bounds -std=c++20</avrgcccpp.compiler.miscellaneous.OtherFlags>
|
||||
<avrgcccpp.compiler.miscellaneous.OtherFlags>-fno-threadsafe-statics -Wextra -Wno-array-bounds -std=c++20 -isystem"%24(ProjectDir)/avr-libstdcpp/include"</avrgcccpp.compiler.miscellaneous.OtherFlags>
|
||||
<avrgcccpp.linker.libraries.Libraries>
|
||||
<ListValues>
|
||||
<Value>libm</Value>
|
||||
@@ -199,7 +199,7 @@
|
||||
<avrgcccpp.compiler.optimization.DebugLevel>Maximum (-g3)</avrgcccpp.compiler.optimization.DebugLevel>
|
||||
<avrgcccpp.compiler.warnings.AllWarnings>True</avrgcccpp.compiler.warnings.AllWarnings>
|
||||
<avrgcccpp.compiler.warnings.Pedantic>True</avrgcccpp.compiler.warnings.Pedantic>
|
||||
<avrgcccpp.compiler.miscellaneous.OtherFlags>-fno-threadsafe-statics -Wextra -std=c++20</avrgcccpp.compiler.miscellaneous.OtherFlags>
|
||||
<avrgcccpp.compiler.miscellaneous.OtherFlags>-fno-threadsafe-statics -Wextra -std=c++20 -isystem"%24(ProjectDir)/avr-libstdcpp/include"</avrgcccpp.compiler.miscellaneous.OtherFlags>
|
||||
<avrgcccpp.linker.libraries.Libraries>
|
||||
<ListValues>
|
||||
<Value>libm</Value>
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
#include "clock.hpp"
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "eink/eink.hpp"
|
||||
#include "flash/flash.hpp"
|
||||
#include "io/io.hpp"
|
||||
#include "spi/spi.hpp"
|
||||
#include "uart/uart.hpp"
|
||||
#include "util/array.hpp"
|
||||
|
||||
using uart_t = uart::Uart0<>;
|
||||
REGISTER_UART0_INT_VECTORS(uart_t);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
constexpr auto IMAGE [[gnu::progmem]] = util::to_array<uint8_t>({
|
||||
constexpr auto IMAGE [[gnu::progmem]] = std::to_array<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,
|
||||
|
||||
Reference in New Issue
Block a user