and now the cfg file not needed anymore

This commit is contained in:
Robin Müller 2021-06-10 21:35:26 +02:00
parent 621fe97d5d
commit 543ee54cca
No known key found for this signature in database
GPG Key ID: BE6480244DFE612C
2 changed files with 2 additions and 3 deletions

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;