mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
Reviews
This commit is contained in:
@@ -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) {}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user