Adapted to c++ clock header

This commit is contained in:
BlackMark 2019-08-05 19:43:00 +02:00
parent 823921dcd8
commit c74f1afcac
4 changed files with 58 additions and 57 deletions

View File

@ -1,4 +1,4 @@
#include "clock.h" #include "clock.hpp"
#include <avr/interrupt.h> #include <avr/interrupt.h>
@ -185,6 +185,7 @@ void spiTest()
spi::spi<uartspi> uartSpi; spi::spi<uartspi> uartSpi;
} }
*/ */
static inline void initUart(const uint32_t baudRate) static inline void initUart(const uint32_t baudRate)
{ {
UBRR1 = static_cast<uint16_t>((F_CPU + 8 * baudRate) / (16 * baudRate) - 1); UBRR1 = static_cast<uint16_t>((F_CPU + 8 * baudRate) / (16 * baudRate) - 1);

@ -1 +1 @@
Subproject commit 8153696309a72ee551a37b17e4eb8ddcda62d0de Subproject commit 87e693605143d019f1f6eb7b5ca40d914765c2e0

View File

@ -197,11 +197,11 @@
</ListValues> </ListValues>
</avrgcccpp.assembler.general.IncludePaths> </avrgcccpp.assembler.general.IncludePaths>
<avrgcccpp.assembler.debugging.DebugLevel>Default (-Wa,-g)</avrgcccpp.assembler.debugging.DebugLevel> <avrgcccpp.assembler.debugging.DebugLevel>Default (-Wa,-g)</avrgcccpp.assembler.debugging.DebugLevel>
</AvrGccCpp> </AvrGccCpp>
</ToolchainSettings> </ToolchainSettings>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="clock.h"> <Compile Include="clock.hpp">
<SubType>compile</SubType> <SubType>compile</SubType>
</Compile> </Compile>
<Compile Include="flash\flash.hpp"> <Compile Include="flash\flash.hpp">