SPI Remap in def file
Posted: 18 Nov 2021 12:39
Hello .
I use Mikroe MCUCard with STM32F407vgt6 MCU in my application.
In this card I use this structure for my SPI1 module
Unfortunately I cannot find above MCU card anymore .
I am going to buy Mikroe MCU cards with STM32F207VGT6 to use in my application.
When I try to compile compiler does not recognize above SPI structure
Looking at __Lib_GPIO_32F2xx_Defs.mpas file there is not this structure .
If i add this structure to __Lib_GPIO_32F2xx_Defs.mpas my program is compiled successfully.
Are there any other changes in definition file I should do ?
And in general if I want to remmap a SPI module , or I2C module this is the right method ?
I use Mikroe MCUCard with STM32F407vgt6 MCU in my application.
In this card I use this structure for my SPI1 module
Code: Select all
_GPIO_MODULE_SPI1_PA56_PB5 : Module_Struct = (
(__SPI1_SCK_PA5, __SPI1_MISO_PA6, __SPI1_MOSI_Pb5, 0xFFFFFFFF),
(__SPI_CONFIG, __SPI_CONFIG, __SPI_CONFIG, 0xFFFFFFFF)
);
I am going to buy Mikroe MCU cards with STM32F207VGT6 to use in my application.
When I try to compile compiler does not recognize above SPI structure
Looking at __Lib_GPIO_32F2xx_Defs.mpas file there is not this structure .
If i add this structure to __Lib_GPIO_32F2xx_Defs.mpas my program is compiled successfully.
Are there any other changes in definition file I should do ?
And in general if I want to remmap a SPI module , or I2C module this is the right method ?