mirror of https://github.com/ARMmbed/mbed-os.git
STM32F1 STM32Cube FW V1.6.1 => V1.8.0: target part
- SetSysClock updatepull/13086/head
parent
ce3fc30cf0
commit
c99c8b5036
|
|
@ -1,8 +1,6 @@
|
||||||
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
|
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
|
||||||
;* File Name : startup_stm32f103xb.s
|
;* File Name : startup_stm32f103xb.s
|
||||||
;* Author : MCD Application Team
|
;* Author : MCD Application Team
|
||||||
;* Version : V4.2.0
|
|
||||||
;* Date : 31-March-2017
|
|
||||||
;* Description : STM32F103xB Devices vector table for MDK-ARM toolchain.
|
;* Description : STM32F103xB Devices vector table for MDK-ARM toolchain.
|
||||||
;* This module performs:
|
;* This module performs:
|
||||||
;* - Set the initial SP
|
;* - Set the initial SP
|
||||||
|
|
@ -13,33 +11,18 @@
|
||||||
;* calls main()).
|
;* calls main()).
|
||||||
;* After Reset the Cortex-M3 processor is in Thread mode,
|
;* After Reset the Cortex-M3 processor is in Thread mode,
|
||||||
;* priority is Privileged, and the Stack is set to Main.
|
;* priority is Privileged, and the Stack is set to Main.
|
||||||
;********************************************************************************
|
;******************************************************************************
|
||||||
|
;* @attention
|
||||||
;*
|
;*
|
||||||
;* <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
|
;* Copyright (c) 2017 STMicroelectronics.
|
||||||
|
;* All rights reserved.
|
||||||
;*
|
;*
|
||||||
;* Redistribution and use in source and binary forms, with or without modification,
|
;* This software component is licensed by ST under BSD 3-Clause license,
|
||||||
;* are permitted provided that the following conditions are met:
|
;* the "License"; You may not use this file except in compliance with the
|
||||||
;* 1. Redistributions of source code must retain the above copyright notice,
|
;* License. You may obtain a copy of the License at:
|
||||||
;* this list of conditions and the following disclaimer.
|
;* opensource.org/licenses/BSD-3-Clause
|
||||||
;* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
;* this list of conditions and the following disclaimer in the documentation
|
|
||||||
;* and/or other materials provided with the distribution.
|
|
||||||
;* 3. Neither the name of STMicroelectronics nor the names of its contributors
|
|
||||||
;* may be used to endorse or promote products derived from this software
|
|
||||||
;* without specific prior written permission.
|
|
||||||
;*
|
;*
|
||||||
;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
;******************************************************************************
|
||||||
;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
;* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
;* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
;* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
;* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
;* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
;
|
|
||||||
;*******************************************************************************
|
|
||||||
|
|
||||||
PRESERVE8
|
PRESERVE8
|
||||||
THUMB
|
THUMB
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@
|
||||||
*************** (C) COPYRIGHT 2017 STMicroelectronics ************************
|
*************** (C) COPYRIGHT 2017 STMicroelectronics ************************
|
||||||
* @file startup_stm32f103xb.s
|
* @file startup_stm32f103xb.s
|
||||||
* @author MCD Application Team
|
* @author MCD Application Team
|
||||||
* @version V4.2.0
|
|
||||||
* @date 31-March-2017
|
|
||||||
* @brief STM32F103xB Devices vector table for Atollic toolchain.
|
* @brief STM32F103xB Devices vector table for Atollic toolchain.
|
||||||
* This module performs:
|
* This module performs:
|
||||||
* - Set the initial SP
|
* - Set the initial SP
|
||||||
|
|
@ -15,30 +13,15 @@
|
||||||
* After Reset the Cortex-M3 processor is in Thread mode,
|
* After Reset the Cortex-M3 processor is in Thread mode,
|
||||||
* priority is Privileged, and the Stack is set to Main.
|
* priority is Privileged, and the Stack is set to Main.
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
|
* @attention
|
||||||
*
|
*
|
||||||
* <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
|
* <h2><center>© Copyright (c) 2017 STMicroelectronics.
|
||||||
|
* All rights reserved.</center></h2>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
* This software component is licensed by ST under BSD 3-Clause license,
|
||||||
* are permitted provided that the following conditions are met:
|
* the "License"; You may not use this file except in compliance with the
|
||||||
* 1. Redistributions of source code must retain the above copyright notice,
|
* License. You may obtain a copy of the License at:
|
||||||
* this list of conditions and the following disclaimer.
|
* opensource.org/licenses/BSD-3-Clause
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer in the documentation
|
|
||||||
* and/or other materials provided with the distribution.
|
|
||||||
* 3. Neither the name of STMicroelectronics nor the names of its contributors
|
|
||||||
* may be used to endorse or promote products derived from this software
|
|
||||||
* without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
*
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
|
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
|
||||||
;* File Name : startup_stm32f103xb.s
|
;* File Name : startup_stm32f103xb.s
|
||||||
;* Author : MCD Application Team
|
;* Author : MCD Application Team
|
||||||
;* Version : V4.2.0
|
|
||||||
;* Date : 31-March-2017
|
|
||||||
;* Description : STM32F103xB Performance Line Devices vector table for
|
;* Description : STM32F103xB Performance Line Devices vector table for
|
||||||
;* EWARM toolchain.
|
;* EWARM toolchain.
|
||||||
;* This module performs:
|
;* This module performs:
|
||||||
|
|
@ -13,32 +11,17 @@
|
||||||
;* address.
|
;* address.
|
||||||
;* After Reset the Cortex-M3 processor is in Thread mode,
|
;* After Reset the Cortex-M3 processor is in Thread mode,
|
||||||
;* priority is Privileged, and the Stack is set to Main.
|
;* priority is Privileged, and the Stack is set to Main.
|
||||||
;********************************************************************************
|
;*******************************************************************************
|
||||||
;*
|
;* @attention
|
||||||
;* <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
|
;*
|
||||||
;*
|
;* <h2><center>© Copyright (c) 2017 STMicroelectronics.
|
||||||
;* Redistribution and use in source and binary forms, with or without modification,
|
;* All rights reserved.</center></h2>
|
||||||
;* are permitted provided that the following conditions are met:
|
;*
|
||||||
;* 1. Redistributions of source code must retain the above copyright notice,
|
;* This software component is licensed by ST under BSD 3-Clause license,
|
||||||
;* this list of conditions and the following disclaimer.
|
;* the "License"; You may not use this file except in compliance with the
|
||||||
;* 2. Redistributions in binary form must reproduce the above copyright notice,
|
;* License. You may obtain a copy of the License at:
|
||||||
;* this list of conditions and the following disclaimer in the documentation
|
;* opensource.org/licenses/BSD-3-Clause
|
||||||
;* and/or other materials provided with the distribution.
|
;*
|
||||||
;* 3. Neither the name of STMicroelectronics nor the names of its contributors
|
|
||||||
;* may be used to endorse or promote products derived from this software
|
|
||||||
;* without specific prior written permission.
|
|
||||||
;*
|
|
||||||
;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
;* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
;* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
;* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
;* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
;* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
;*
|
|
||||||
;*******************************************************************************
|
;*******************************************************************************
|
||||||
;
|
;
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
|
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
|
||||||
;* File Name : startup_stm32f103xb.s
|
;* File Name : startup_stm32f103xb.s
|
||||||
;* Author : MCD Application Team
|
;* Author : MCD Application Team
|
||||||
;* Version : V4.2.0
|
|
||||||
;* Date : 31-March-2017
|
|
||||||
;* Description : STM32F103xB Devices vector table for MDK-ARM toolchain.
|
;* Description : STM32F103xB Devices vector table for MDK-ARM toolchain.
|
||||||
;* This module performs:
|
;* This module performs:
|
||||||
;* - Set the initial SP
|
;* - Set the initial SP
|
||||||
|
|
@ -13,33 +11,18 @@
|
||||||
;* calls main()).
|
;* calls main()).
|
||||||
;* After Reset the Cortex-M3 processor is in Thread mode,
|
;* After Reset the Cortex-M3 processor is in Thread mode,
|
||||||
;* priority is Privileged, and the Stack is set to Main.
|
;* priority is Privileged, and the Stack is set to Main.
|
||||||
;********************************************************************************
|
;******************************************************************************
|
||||||
|
;* @attention
|
||||||
;*
|
;*
|
||||||
;* <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
|
;* Copyright (c) 2017 STMicroelectronics.
|
||||||
|
;* All rights reserved.
|
||||||
;*
|
;*
|
||||||
;* Redistribution and use in source and binary forms, with or without modification,
|
;* This software component is licensed by ST under BSD 3-Clause license,
|
||||||
;* are permitted provided that the following conditions are met:
|
;* the "License"; You may not use this file except in compliance with the
|
||||||
;* 1. Redistributions of source code must retain the above copyright notice,
|
;* License. You may obtain a copy of the License at:
|
||||||
;* this list of conditions and the following disclaimer.
|
;* opensource.org/licenses/BSD-3-Clause
|
||||||
;* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
;* this list of conditions and the following disclaimer in the documentation
|
|
||||||
;* and/or other materials provided with the distribution.
|
|
||||||
;* 3. Neither the name of STMicroelectronics nor the names of its contributors
|
|
||||||
;* may be used to endorse or promote products derived from this software
|
|
||||||
;* without specific prior written permission.
|
|
||||||
;*
|
;*
|
||||||
;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
;******************************************************************************
|
||||||
;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
;* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
;* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
;* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
;* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
;* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
;
|
|
||||||
;*******************************************************************************
|
|
||||||
|
|
||||||
PRESERVE8
|
PRESERVE8
|
||||||
THUMB
|
THUMB
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@
|
||||||
*************** (C) COPYRIGHT 2017 STMicroelectronics ************************
|
*************** (C) COPYRIGHT 2017 STMicroelectronics ************************
|
||||||
* @file startup_stm32f103xb.s
|
* @file startup_stm32f103xb.s
|
||||||
* @author MCD Application Team
|
* @author MCD Application Team
|
||||||
* @version V4.2.0
|
|
||||||
* @date 31-March-2017
|
|
||||||
* @brief STM32F103xB Devices vector table for Atollic toolchain.
|
* @brief STM32F103xB Devices vector table for Atollic toolchain.
|
||||||
* This module performs:
|
* This module performs:
|
||||||
* - Set the initial SP
|
* - Set the initial SP
|
||||||
|
|
@ -15,30 +13,15 @@
|
||||||
* After Reset the Cortex-M3 processor is in Thread mode,
|
* After Reset the Cortex-M3 processor is in Thread mode,
|
||||||
* priority is Privileged, and the Stack is set to Main.
|
* priority is Privileged, and the Stack is set to Main.
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
|
* @attention
|
||||||
*
|
*
|
||||||
* <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
|
* <h2><center>© Copyright (c) 2017 STMicroelectronics.
|
||||||
|
* All rights reserved.</center></h2>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
* This software component is licensed by ST under BSD 3-Clause license,
|
||||||
* are permitted provided that the following conditions are met:
|
* the "License"; You may not use this file except in compliance with the
|
||||||
* 1. Redistributions of source code must retain the above copyright notice,
|
* License. You may obtain a copy of the License at:
|
||||||
* this list of conditions and the following disclaimer.
|
* opensource.org/licenses/BSD-3-Clause
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer in the documentation
|
|
||||||
* and/or other materials provided with the distribution.
|
|
||||||
* 3. Neither the name of STMicroelectronics nor the names of its contributors
|
|
||||||
* may be used to endorse or promote products derived from this software
|
|
||||||
* without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
*
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
|
;******************** (C) COPYRIGHT 2017 STMicroelectronics ********************
|
||||||
;* File Name : startup_stm32f103xb.s
|
;* File Name : startup_stm32f103xb.s
|
||||||
;* Author : MCD Application Team
|
;* Author : MCD Application Team
|
||||||
;* Version : V4.2.0
|
|
||||||
;* Date : 31-March-2017
|
|
||||||
;* Description : STM32F103xB Performance Line Devices vector table for
|
;* Description : STM32F103xB Performance Line Devices vector table for
|
||||||
;* EWARM toolchain.
|
;* EWARM toolchain.
|
||||||
;* This module performs:
|
;* This module performs:
|
||||||
|
|
@ -13,32 +11,17 @@
|
||||||
;* address.
|
;* address.
|
||||||
;* After Reset the Cortex-M3 processor is in Thread mode,
|
;* After Reset the Cortex-M3 processor is in Thread mode,
|
||||||
;* priority is Privileged, and the Stack is set to Main.
|
;* priority is Privileged, and the Stack is set to Main.
|
||||||
;********************************************************************************
|
;*******************************************************************************
|
||||||
;*
|
;* @attention
|
||||||
;* <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
|
;*
|
||||||
;*
|
;* <h2><center>© Copyright (c) 2017 STMicroelectronics.
|
||||||
;* Redistribution and use in source and binary forms, with or without modification,
|
;* All rights reserved.</center></h2>
|
||||||
;* are permitted provided that the following conditions are met:
|
;*
|
||||||
;* 1. Redistributions of source code must retain the above copyright notice,
|
;* This software component is licensed by ST under BSD 3-Clause license,
|
||||||
;* this list of conditions and the following disclaimer.
|
;* the "License"; You may not use this file except in compliance with the
|
||||||
;* 2. Redistributions in binary form must reproduce the above copyright notice,
|
;* License. You may obtain a copy of the License at:
|
||||||
;* this list of conditions and the following disclaimer in the documentation
|
;* opensource.org/licenses/BSD-3-Clause
|
||||||
;* and/or other materials provided with the distribution.
|
;*
|
||||||
;* 3. Neither the name of STMicroelectronics nor the names of its contributors
|
|
||||||
;* may be used to endorse or promote products derived from this software
|
|
||||||
;* without specific prior written permission.
|
|
||||||
;*
|
|
||||||
;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
;* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
;* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
;* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
;* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
;* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
;*
|
|
||||||
;*******************************************************************************
|
;*******************************************************************************
|
||||||
;
|
;
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,11 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
|
||||||
RCC_PeriphCLKInitTypeDef RCC_PeriphCLKInit;
|
RCC_PeriphCLKInitTypeDef RCC_PeriphCLKInit;
|
||||||
#endif /* DEVICE_USBDEVICE */
|
#endif /* DEVICE_USBDEVICE */
|
||||||
|
|
||||||
|
// Select HSI as system clock source to allow modification of the PLL configuration
|
||||||
|
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_SYSCLK;
|
||||||
|
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_HSI;
|
||||||
|
HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0);
|
||||||
|
|
||||||
/* Enable HSE oscillator and activate PLL with HSE as source */
|
/* Enable HSE oscillator and activate PLL with HSE as source */
|
||||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
|
||||||
if (bypass == 0) {
|
if (bypass == 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue