I was wondering what the abbreviation "MSP" in HAL_xxx_MspInit()
callbacks stands for. I have seen that in some firmware drivers like the HAL library from ST.
For example:
void HAL_UART_MspInit(UART_HandleTypeDef *huart);
void HAL_SPI_MspInit(SPI_HandleTypeDef *hspi);
from stm32f3xx_hal_uart.h
and stm32f3xx_hal_spi.h
. I am wondering what Msp
refers to. Is it just a naming convention for callbacks from init
functions in drivers or does it have a deeper meaning (what I suspect it has).
In STM32CubeMX it stands for MCU Support Package.
The STM32CubeMX documentation "STM32CubeMX for STM32 configuration and initialization C code generation" (UM1718) is clear on this - section 5.1:
It does however somewhat unhelpfully use the term several times in the documentation before it actually defines it!
Other aspects of the STM32CubeMX naming conventions are also defined in this document.