STM32WL55 subghz radio low level hardware init.
Hi,
im currently working on a project (STM32WL55) where i need to send data via LoRa. I plan to use the SubGHz HAL driver as it seems pretty low level and provides easy usage of the internal subghz spi.
While researching, i found AN5406 where it says in page 6 that i need to implement the HAL_SUBGHZ_MspInit function, but not how.
In stmwlxx_hal_subghz.c there is a weak function that doesn't do anything, and is meant to be overwritten:
/**
* @brief Initialize the SUBGHZ MSP.
* @param hsubghz pointer to a SUBGHZ_HandleTypeDef structure that contains
* the handle information for SUBGHZ module.
* @retval None
*/
__weak void HAL_SUBGHZ_MspInit(SUBGHZ_HandleTypeDef *hsubghz)
{
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_SUBGHZ_MspInit should be implemented in the user file
*/
/* Prevent unused argument(s) compilation warning */
UNUSED(hsubghz);
}In HAL_SUBGHZ_Init it says that the function is meant to Init the low level hardware : GPIO, CLOCK, NVIC...
/* Init the low level hardware : GPIO, CLOCK, NVIC... */
HAL_SUBGHZ_MspInit(hsubghz);I initialise the hse, and the Subghz radio interrupt via MX, so
my question is, which low level hardware needs to be initialised in HAL_SUBGHZ_MspInit for the subghz radio to work.
