This commit is contained in:
devdl11
2022-04-27 15:44:42 +02:00
parent 04ae526a39
commit 0332f43c5c
22 changed files with 93 additions and 114 deletions

View File

@@ -1,5 +1,20 @@
#include "stm32_drivers.h"
/**
* THIS CODE COMES FROM THE STM32_HAL LIBRARY (LICENSE ABOVE) AND HAVE BEEN MODIFIED
* WE USE ONLY THE HAL_deinit, RCC_deinit and systick_deninit FUNCTIONS AND ONLY COPIED THE CODE NEEDED.
* WE NEEDED THIS CODE TO BE ABLE TO BOOT THE STM32 BOOTLOADER
*/
/*
This software component is provided to you as part of a software package and
applicable license terms are in the Package_license file. If you received this
software component outside of a package or without applicable license terms,
the terms of the BSD-3-Clause license shall apply.
You may obtain a copy of the BSD-3-Clause at:
https://opensource.org/licenses/BSD-3-Clause
*/
void STM32::rcc_deinit() {
SET_BIT(STM_32_RCC->CR, (0x1UL << (0U)));
while (READ_BIT(STM_32_RCC->CR, (0x1UL << (1U))) == 0) {}

View File

@@ -5,6 +5,12 @@
Now we include the license of the original code as required.
*/
/**
* THIS CODE COMES FROM THE STM32_HAL LIBRARY (LICENSE ABOVE) AND HAVE BEEN MODIFIED
* WE USE ONLY THE HAL_deinit, RCC_deinit and systick_deninit FUNCTIONS AND ONLY COPIED THE CODE NEEDED.
* WE NEEDED THIS CODE TO BE ABLE TO BOOT THE STM32 BOOTLOADER
*/
/*
This software component is provided to you as part of a software package and
applicable license terms are in the Package_license file. If you received this