mirror of https://github.com/FOME-Tech/openblt.git
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:
parent
36197ef058
commit
cc7a9209f0
|
@ -195,6 +195,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8);
|
LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8);
|
||||||
|
|
||||||
|
|
|
@ -192,6 +192,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8);
|
LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8);
|
||||||
|
|
||||||
|
|
|
@ -195,6 +195,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8);
|
LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8);
|
||||||
|
|
||||||
|
|
|
@ -195,6 +195,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8);
|
LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8);
|
||||||
|
|
||||||
|
|
|
@ -212,6 +212,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
||||||
|
|
||||||
|
|
|
@ -209,6 +209,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
||||||
|
|
||||||
|
|
|
@ -212,6 +212,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
||||||
|
|
||||||
|
|
|
@ -212,6 +212,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
||||||
|
|
||||||
|
|
|
@ -197,6 +197,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOA);
|
LL_GPIO_DeInit(GPIOA);
|
||||||
|
|
|
@ -194,6 +194,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOA);
|
LL_GPIO_DeInit(GPIOA);
|
||||||
|
|
|
@ -197,6 +197,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOA);
|
LL_GPIO_DeInit(GPIOA);
|
||||||
|
|
|
@ -196,6 +196,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOA);
|
LL_GPIO_DeInit(GPIOA);
|
||||||
|
|
|
@ -196,6 +196,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOA);
|
LL_GPIO_DeInit(GPIOA);
|
||||||
|
|
|
@ -193,6 +193,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOA);
|
LL_GPIO_DeInit(GPIOA);
|
||||||
|
|
|
@ -196,6 +196,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOA);
|
LL_GPIO_DeInit(GPIOA);
|
||||||
|
|
|
@ -234,6 +234,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOB);
|
LL_GPIO_DeInit(GPIOB);
|
||||||
|
|
|
@ -234,6 +234,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOB);
|
LL_GPIO_DeInit(GPIOB);
|
||||||
|
|
|
@ -231,6 +231,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOB);
|
LL_GPIO_DeInit(GPIOB);
|
||||||
|
|
|
@ -233,6 +233,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOB);
|
LL_GPIO_DeInit(GPIOB);
|
||||||
|
|
|
@ -234,6 +234,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOB);
|
LL_GPIO_DeInit(GPIOB);
|
||||||
|
|
|
@ -225,6 +225,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOD);
|
LL_GPIO_DeInit(GPIOD);
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
|
|
|
@ -222,6 +222,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOD);
|
LL_GPIO_DeInit(GPIOD);
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
|
|
|
@ -225,6 +225,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOD);
|
LL_GPIO_DeInit(GPIOD);
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
|
|
|
@ -233,6 +233,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOF, LL_GPIO_PIN_8);
|
LL_GPIO_ResetOutputPin(GPIOF, LL_GPIO_PIN_8);
|
||||||
|
|
||||||
|
|
|
@ -230,6 +230,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOF, LL_GPIO_PIN_8);
|
LL_GPIO_ResetOutputPin(GPIOF, LL_GPIO_PIN_8);
|
||||||
|
|
||||||
|
|
|
@ -233,6 +233,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOF, LL_GPIO_PIN_8);
|
LL_GPIO_ResetOutputPin(GPIOF, LL_GPIO_PIN_8);
|
||||||
|
|
||||||
|
|
|
@ -203,6 +203,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOE, LL_GPIO_PIN_8);
|
LL_GPIO_ResetOutputPin(GPIOE, LL_GPIO_PIN_8);
|
||||||
|
|
||||||
|
|
|
@ -200,6 +200,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOE, LL_GPIO_PIN_8);
|
LL_GPIO_ResetOutputPin(GPIOE, LL_GPIO_PIN_8);
|
||||||
|
|
||||||
|
|
|
@ -203,6 +203,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOE, LL_GPIO_PIN_8);
|
LL_GPIO_ResetOutputPin(GPIOE, LL_GPIO_PIN_8);
|
||||||
|
|
||||||
|
|
|
@ -214,6 +214,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_3);
|
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_3);
|
||||||
|
|
||||||
|
|
|
@ -211,6 +211,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_3);
|
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_3);
|
||||||
|
|
||||||
|
|
|
@ -214,6 +214,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_3);
|
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_3);
|
||||||
|
|
||||||
|
|
|
@ -239,6 +239,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOB);
|
LL_GPIO_DeInit(GPIOB);
|
||||||
|
|
|
@ -236,6 +236,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOB);
|
LL_GPIO_DeInit(GPIOB);
|
||||||
|
|
|
@ -239,6 +239,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
/* Deinit used GPIOs. */
|
/* Deinit used GPIOs. */
|
||||||
LL_GPIO_DeInit(GPIOC);
|
LL_GPIO_DeInit(GPIOC);
|
||||||
LL_GPIO_DeInit(GPIOB);
|
LL_GPIO_DeInit(GPIOB);
|
||||||
|
|
|
@ -254,6 +254,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
#if (BOOT_COM_USB_ENABLE > 0)
|
#if (BOOT_COM_USB_ENABLE > 0)
|
||||||
/* USB clock disable. */
|
/* USB clock disable. */
|
||||||
LL_AHB2_GRP1_DisableClock(LL_AHB2_GRP1_PERIPH_OTGFS);
|
LL_AHB2_GRP1_DisableClock(LL_AHB2_GRP1_PERIPH_OTGFS);
|
||||||
|
|
|
@ -251,6 +251,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
#if (BOOT_COM_USB_ENABLE > 0)
|
#if (BOOT_COM_USB_ENABLE > 0)
|
||||||
/* USB clock disable. */
|
/* USB clock disable. */
|
||||||
LL_AHB2_GRP1_DisableClock(LL_AHB2_GRP1_PERIPH_OTGFS);
|
LL_AHB2_GRP1_DisableClock(LL_AHB2_GRP1_PERIPH_OTGFS);
|
||||||
|
|
|
@ -254,6 +254,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(void)
|
void HAL_MspDeInit(void)
|
||||||
{
|
{
|
||||||
|
/* Reset the RCC clock configuration to the default reset state. */
|
||||||
|
LL_RCC_DeInit();
|
||||||
|
|
||||||
#if (BOOT_COM_USB_ENABLE > 0)
|
#if (BOOT_COM_USB_ENABLE > 0)
|
||||||
/* USB clock disable. */
|
/* USB clock disable. */
|
||||||
LL_AHB2_GRP1_DisableClock(LL_AHB2_GRP1_PERIPH_OTGFS);
|
LL_AHB2_GRP1_DisableClock(LL_AHB2_GRP1_PERIPH_OTGFS);
|
||||||
|
|
|
@ -222,6 +222,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
||||||
|
|
||||||
|
|
|
@ -219,6 +219,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
||||||
|
|
||||||
|
|
|
@ -222,6 +222,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5);
|
||||||
|
|
||||||
|
|
|
@ -235,6 +235,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7);
|
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7);
|
||||||
|
|
||||||
|
|
|
@ -232,6 +232,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7);
|
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7);
|
||||||
|
|
||||||
|
|
|
@ -234,6 +234,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7);
|
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7);
|
||||||
|
|
||||||
|
|
|
@ -235,6 +235,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7);
|
LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7);
|
||||||
|
|
||||||
|
|
|
@ -234,6 +234,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);
|
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
|
|
@ -231,6 +231,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);
|
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
|
|
@ -234,6 +234,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);
|
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
|
|
@ -234,6 +234,9 @@ void HAL_MspInit(void)
|
||||||
****************************************************************************************/
|
****************************************************************************************/
|
||||||
void HAL_MspDeInit(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. */
|
/* Reset GPIO pin for the LED to turn it off. */
|
||||||
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);
|
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue