Skip to content
Snippets Groups Projects
Commit 8a5f5a77 authored by Alberto Nidasio's avatar Alberto Nidasio
Browse files

[MOCK_PERIPHERALS] Fixed wrong includes

parent a9dbb14d
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@
using SPIType = SPI_TypeDef;
#else
#include <utils/TestUtils/FakeSpiTypedef.h>
using SPIType = FakeSpiTypedef;
using SPIType = Boardcore::FakeSpiTypedef;
#endif
namespace Boardcore
......
......@@ -29,8 +29,8 @@
#ifndef USE_MOCK_PERIPHERALS
using SPIType = SPI_TypeDef;
#else
#include <test/FakeSpiTypedef.h>
using SPIType = FakeSpiTypedef;
#include <utils/TestUtils/FakeSpiTypedef.h>
using SPIType = Boardcore::FakeSpiTypedef;
#endif
namespace Boardcore
......
......@@ -30,7 +30,7 @@
using GpioType = miosix::GpioPin;
#else
#include <utils/TestUtils/MockGpioPin.h>
using GpioType = MockGpioPin;
using GpioType = Boardcore::MockGpioPin;
#endif
namespace Boardcore
......
......@@ -34,6 +34,7 @@
using USARTType = USART_TypeDef;
#else
// TODO: Create test utils
using USARTType = USART_TypeDef;
#endif
#ifdef STM32F429xx
......
......@@ -86,6 +86,8 @@ struct FakeSpiTypedef
MockGpioPin cs;
FakeSpiTypedef() : DR(*this) { cs.high(); }
FakeSpiTypedef(SPI_TypeDef* spi) : DR(*this) { cs.high(); }
};
} // namespace Boardcore
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment