Refs #992. Reset RCC configuration in the demo bootloader's HAL_MspDeInit().

git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@745 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
Frank Voorburg 2020-02-15 10:54:43 +00:00
parent 36197ef058
commit cc7a9209f0
49 changed files with 147 additions and 0 deletions

View File

@ -195,6 +195,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8);

View File

@ -192,6 +192,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8);

View File

@ -195,6 +195,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8);

View File

@ -195,6 +195,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8);

View File

@ -212,6 +212,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);

View File

@ -209,6 +209,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);

View File

@ -212,6 +212,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);

View File

@ -212,6 +212,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);

View File

@ -197,6 +197,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOA);

View File

@ -194,6 +194,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOA);

View File

@ -197,6 +197,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOA);

View File

@ -196,6 +196,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOA);

View File

@ -196,6 +196,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOA);

View File

@ -193,6 +193,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOA);

View File

@ -196,6 +196,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOA);

View File

@ -234,6 +234,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOB);

View File

@ -234,6 +234,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOB);

View File

@ -231,6 +231,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOB);

View File

@ -233,6 +233,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOB);

View File

@ -234,6 +234,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOB);

View File

@ -225,6 +225,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOD);
LL_GPIO_DeInit(GPIOC);

View File

@ -222,6 +222,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOD);
LL_GPIO_DeInit(GPIOC);

View File

@ -225,6 +225,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOD);
LL_GPIO_DeInit(GPIOC);

View File

@ -233,6 +233,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOF, LL_GPIO_PIN_8);

View File

@ -230,6 +230,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOF, LL_GPIO_PIN_8);

View File

@ -233,6 +233,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOF, LL_GPIO_PIN_8);

View File

@ -203,6 +203,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOE, LL_GPIO_PIN_8);

View File

@ -200,6 +200,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOE, LL_GPIO_PIN_8);

View File

@ -203,6 +203,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOE, LL_GPIO_PIN_8);

View File

@ -214,6 +214,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_3);

View File

@ -211,6 +211,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_3);

View File

@ -214,6 +214,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_3);

View File

@ -239,6 +239,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOB);

View File

@ -236,6 +236,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOB);

View File

@ -239,6 +239,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Deinit used GPIOs. */
LL_GPIO_DeInit(GPIOC);
LL_GPIO_DeInit(GPIOB);

View File

@ -254,6 +254,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
#if (BOOT_COM_USB_ENABLE > 0)
/* USB clock disable. */
LL_AHB2_GRP1_DisableClock(LL_AHB2_GRP1_PERIPH_OTGFS);

View File

@ -251,6 +251,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
#if (BOOT_COM_USB_ENABLE > 0)
/* USB clock disable. */
LL_AHB2_GRP1_DisableClock(LL_AHB2_GRP1_PERIPH_OTGFS);

View File

@ -254,6 +254,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
#if (BOOT_COM_USB_ENABLE > 0)
/* USB clock disable. */
LL_AHB2_GRP1_DisableClock(LL_AHB2_GRP1_PERIPH_OTGFS);

View File

@ -222,6 +222,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);

View File

@ -219,6 +219,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);

View File

@ -222,6 +222,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);

View File

@ -235,6 +235,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7);

View File

@ -232,6 +232,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7);

View File

@ -234,6 +234,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7);

View File

@ -235,6 +235,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
LL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7);

View File

@ -234,6 +234,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
HAL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);

View File

@ -231,6 +231,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
HAL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);

View File

@ -234,6 +234,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
HAL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);

View File

@ -234,6 +234,9 @@ void HAL_MspInit(void)
****************************************************************************************/
void HAL_MspDeInit(void)
{
/* Reset the RCC clock configuration to the default reset state. */
HAL_RCC_DeInit();
/* Reset GPIO pin for the LED to turn it off. */
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);