continuing SPI test task
This commit is contained in:
parent
700a15bd80
commit
877f3d2f66
@ -1,4 +1,6 @@
|
||||
#include "SpiTest.h"
|
||||
|
||||
SpiTest::SpiTest(SpiComIF &spiComIF) {
|
||||
SpiTest::SpiTest(SpiComIF &spiComIF): spiCookie(TEST_ADDRESS, spi::SpiBus::SPI_1,
|
||||
spi::TransferModes::POLLING, &mspCfg, 1000000, spi::SpiModes::MODE_0, 32) {
|
||||
spiComIF.initializeInterface(&spiCookie);
|
||||
}
|
||||
|
@ -2,11 +2,16 @@
|
||||
#define BSP_STM32H7_FREERTOS_BOARDTEST_SPITEST_H_
|
||||
|
||||
#include "fsfw_hal/stm32h7/spi/SpiComIF.h"
|
||||
#include "fsfw_hal/stm32h7/spi/SpiCookie.h"
|
||||
#include "fsfw_hal/stm32h7/spi/mspInit.h"
|
||||
|
||||
class SpiTest {
|
||||
public:
|
||||
SpiTest(SpiComIF& spiComIF);
|
||||
private:
|
||||
static constexpr address_t TEST_ADDRESS = 0x00;
|
||||
spi::MspPollingConfigStruct mspCfg;
|
||||
SpiCookie spiCookie;
|
||||
};
|
||||
|
||||
#endif /* BSP_STM32H7_FREERTOS_BOARDTEST_SPITEST_H_ */
|
||||
|
2
fsfw
2
fsfw
@ -1 +1 @@
|
||||
Subproject commit 105d59a1f5801629f9882f7c5cb25d0a9d36a5c2
|
||||
Subproject commit 56327833e631c747bbc701d7dbe44a8536e21942
|
Loading…
x
Reference in New Issue
Block a user