continuing SPI test task
This commit is contained in:
@ -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_ */
|
||||
|
Reference in New Issue
Block a user