Disabled unused interrupt vectors

This commit is contained in:
BlackMark 2019-08-15 18:13:12 +02:00
parent cc5b375b44
commit dd3e69daa3
3 changed files with 9 additions and 14 deletions

View File

@ -6,6 +6,8 @@
#include "flash/flash.hpp" #include "flash/flash.hpp"
#include "io/io.hpp" #include "io/io.hpp"
#define UART0_NO_INT_VECTORS
#include "uart/uart.hpp" #include "uart/uart.hpp"
void newUartUsage() void newUartUsage()
@ -42,7 +44,7 @@ void newUartUsage2()
{ {
using namespace uart; using namespace uart;
Uart<Hardware1<Config<115200>, Driven::BLOCKING>> serial1; Uart<Hardware1<Config<115200>, Driven::INTERRUPT>> serial1;
auto ramString = "Hello World from RAM. "; auto ramString = "Hello World from RAM. ";
auto flashString = F("Hello World from flash\r\n"); auto flashString = F("Hello World from flash\r\n");
@ -240,16 +242,15 @@ void optimalUartTest()
int main() int main()
{ {
sei(); sei();
optimalUartTest();
newUartUsage2(); newUartUsage2();
// optimalUartTest(); optimalUartTest();
// newUartStreamOverloads(); newUartStreamOverloads();
// txString(F("\r\n")); txString(F("\r\n"));
// flushTx(); flushTx();
// spiTest(); spiTest();
return 0; return 0;
} }

@ -1 +1 @@
Subproject commit 16c9015f43f5218ce8676098e6de3e16b1a97f9c Subproject commit 1bdc06a325a4559ce0fcf101622a009cf03371fb

View File

@ -221,15 +221,9 @@
<Compile Include="uart\hardware.hpp"> <Compile Include="uart\hardware.hpp">
<SubType>compile</SubType> <SubType>compile</SubType>
</Compile> </Compile>
<Compile Include="uart\hardware0.cpp">
<SubType>compile</SubType>
</Compile>
<Compile Include="uart\hardware0.hpp"> <Compile Include="uart\hardware0.hpp">
<SubType>compile</SubType> <SubType>compile</SubType>
</Compile> </Compile>
<Compile Include="uart\hardware1.cpp">
<SubType>compile</SubType>
</Compile>
<Compile Include="uart\hardware1.hpp"> <Compile Include="uart\hardware1.hpp">
<SubType>compile</SubType> <SubType>compile</SubType>
</Compile> </Compile>