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>
@ -185,6 +185,7 @@ void spiTest()
spi::spi<uartspi> uartSpi;
}
*/
static inline void initUart(const uint32_t baudRate)
{
UBRR1 = static_cast<uint16_t>((F_CPU + 8 * baudRate) / (16 * baudRate) - 1);

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

View File

@ -201,7 +201,7 @@
</ToolchainSettings>
</PropertyGroup>
<ItemGroup>
<Compile Include="clock.h">
<Compile Include="clock.hpp">
<SubType>compile</SubType>
</Compile>
<Compile Include="flash\flash.hpp">