STM32H7 SpiComIF and first device handler #9

Merged
muellerr merged 36 commits from mueller/stm32h7-spi-com-if-l3gd20h-handler into master 2021-06-15 15:50:54 +02:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 543ee54cca - Show all commits

View File

@ -1,5 +1,5 @@
#include "GyroL3GD20H.h"
#include "spiConf.h"
#include "../spi/mspInit.h"
#include "../spi/spiDefinitions.h"
#include "../spi/spiCore.h"

View File

@ -1,6 +1,5 @@
#include <fsfw_hal/stm32h7/dma.h>
#include "mspInit.h"
#include "spiConf.h"
#include "spiCore.h"
#include "spiInterrupts.h"
#include "stm32h743xx.h"
@ -127,7 +126,7 @@ void spi::halMspInitPolling(SPI_HandleTypeDef* hspi, MspCfgBase* cfgBase) {
GPIO_InitStruct.Pull = GPIO_PULLDOWN;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
GPIO_InitStruct.Alternate = cfg->sckAlternateFunction;
HAL_GPIO_Init(SPIx_SCK_GPIO_PORT, &GPIO_InitStruct);
HAL_GPIO_Init(cfg->sckPort, &GPIO_InitStruct);
/* SPI MISO GPIO pin configuration */
GPIO_InitStruct.Pin = cfg->misoPin;