Dataloger
TARGET_NUCLEO_F072RB/system_stm32f0xx.h@0:666850d06c9f, 2015-08-20 (annotated)
- Committer:
- jhon309
- Date:
- Thu Aug 20 00:37:14 2015 +0000
- Revision:
- 0:666850d06c9f
ok
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jhon309 | 0:666850d06c9f | 1 | /** |
jhon309 | 0:666850d06c9f | 2 | ****************************************************************************** |
jhon309 | 0:666850d06c9f | 3 | * @file system_stm32f0xx.h |
jhon309 | 0:666850d06c9f | 4 | * @author MCD Application Team |
jhon309 | 0:666850d06c9f | 5 | * @version V2.2.0 |
jhon309 | 0:666850d06c9f | 6 | * @date 05-December-2014 |
jhon309 | 0:666850d06c9f | 7 | * @brief CMSIS Cortex-M0 Device System Source File for STM32F0xx devices. |
jhon309 | 0:666850d06c9f | 8 | ****************************************************************************** |
jhon309 | 0:666850d06c9f | 9 | * @attention |
jhon309 | 0:666850d06c9f | 10 | * |
jhon309 | 0:666850d06c9f | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
jhon309 | 0:666850d06c9f | 12 | * |
jhon309 | 0:666850d06c9f | 13 | * Redistribution and use in source and binary forms, with or without modification, |
jhon309 | 0:666850d06c9f | 14 | * are permitted provided that the following conditions are met: |
jhon309 | 0:666850d06c9f | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
jhon309 | 0:666850d06c9f | 16 | * this list of conditions and the following disclaimer. |
jhon309 | 0:666850d06c9f | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
jhon309 | 0:666850d06c9f | 18 | * this list of conditions and the following disclaimer in the documentation |
jhon309 | 0:666850d06c9f | 19 | * and/or other materials provided with the distribution. |
jhon309 | 0:666850d06c9f | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
jhon309 | 0:666850d06c9f | 21 | * may be used to endorse or promote products derived from this software |
jhon309 | 0:666850d06c9f | 22 | * without specific prior written permission. |
jhon309 | 0:666850d06c9f | 23 | * |
jhon309 | 0:666850d06c9f | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
jhon309 | 0:666850d06c9f | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
jhon309 | 0:666850d06c9f | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
jhon309 | 0:666850d06c9f | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
jhon309 | 0:666850d06c9f | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
jhon309 | 0:666850d06c9f | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
jhon309 | 0:666850d06c9f | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
jhon309 | 0:666850d06c9f | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
jhon309 | 0:666850d06c9f | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
jhon309 | 0:666850d06c9f | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
jhon309 | 0:666850d06c9f | 34 | * |
jhon309 | 0:666850d06c9f | 35 | ****************************************************************************** |
jhon309 | 0:666850d06c9f | 36 | */ |
jhon309 | 0:666850d06c9f | 37 | |
jhon309 | 0:666850d06c9f | 38 | /** @addtogroup CMSIS |
jhon309 | 0:666850d06c9f | 39 | * @{ |
jhon309 | 0:666850d06c9f | 40 | */ |
jhon309 | 0:666850d06c9f | 41 | |
jhon309 | 0:666850d06c9f | 42 | /** @addtogroup stm32f0xx_system |
jhon309 | 0:666850d06c9f | 43 | * @{ |
jhon309 | 0:666850d06c9f | 44 | */ |
jhon309 | 0:666850d06c9f | 45 | |
jhon309 | 0:666850d06c9f | 46 | /** |
jhon309 | 0:666850d06c9f | 47 | * @brief Define to prevent recursive inclusion |
jhon309 | 0:666850d06c9f | 48 | */ |
jhon309 | 0:666850d06c9f | 49 | #ifndef __SYSTEM_STM32F0XX_H |
jhon309 | 0:666850d06c9f | 50 | #define __SYSTEM_STM32F0XX_H |
jhon309 | 0:666850d06c9f | 51 | |
jhon309 | 0:666850d06c9f | 52 | #ifdef __cplusplus |
jhon309 | 0:666850d06c9f | 53 | extern "C" { |
jhon309 | 0:666850d06c9f | 54 | #endif |
jhon309 | 0:666850d06c9f | 55 | |
jhon309 | 0:666850d06c9f | 56 | /** @addtogroup STM32F0xx_System_Includes |
jhon309 | 0:666850d06c9f | 57 | * @{ |
jhon309 | 0:666850d06c9f | 58 | */ |
jhon309 | 0:666850d06c9f | 59 | |
jhon309 | 0:666850d06c9f | 60 | /** |
jhon309 | 0:666850d06c9f | 61 | * @} |
jhon309 | 0:666850d06c9f | 62 | */ |
jhon309 | 0:666850d06c9f | 63 | |
jhon309 | 0:666850d06c9f | 64 | |
jhon309 | 0:666850d06c9f | 65 | /** @addtogroup STM32F0xx_System_Exported_types |
jhon309 | 0:666850d06c9f | 66 | * @{ |
jhon309 | 0:666850d06c9f | 67 | */ |
jhon309 | 0:666850d06c9f | 68 | /* This variable is updated in three ways: |
jhon309 | 0:666850d06c9f | 69 | 1) by calling CMSIS function SystemCoreClockUpdate() |
jhon309 | 0:666850d06c9f | 70 | 3) by calling HAL API function HAL_RCC_GetHCLKFreq() |
jhon309 | 0:666850d06c9f | 71 | 3) by calling HAL API function HAL_RCC_ClockConfig() |
jhon309 | 0:666850d06c9f | 72 | Note: If you use this function to configure the system clock; then there |
jhon309 | 0:666850d06c9f | 73 | is no need to call the 2 first functions listed above, since SystemCoreClock |
jhon309 | 0:666850d06c9f | 74 | variable is updated automatically. |
jhon309 | 0:666850d06c9f | 75 | */ |
jhon309 | 0:666850d06c9f | 76 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
jhon309 | 0:666850d06c9f | 77 | |
jhon309 | 0:666850d06c9f | 78 | /** |
jhon309 | 0:666850d06c9f | 79 | * @} |
jhon309 | 0:666850d06c9f | 80 | */ |
jhon309 | 0:666850d06c9f | 81 | |
jhon309 | 0:666850d06c9f | 82 | /** @addtogroup STM32F0xx_System_Exported_Constants |
jhon309 | 0:666850d06c9f | 83 | * @{ |
jhon309 | 0:666850d06c9f | 84 | */ |
jhon309 | 0:666850d06c9f | 85 | |
jhon309 | 0:666850d06c9f | 86 | /** |
jhon309 | 0:666850d06c9f | 87 | * @} |
jhon309 | 0:666850d06c9f | 88 | */ |
jhon309 | 0:666850d06c9f | 89 | |
jhon309 | 0:666850d06c9f | 90 | /** @addtogroup STM32F0xx_System_Exported_Macros |
jhon309 | 0:666850d06c9f | 91 | * @{ |
jhon309 | 0:666850d06c9f | 92 | */ |
jhon309 | 0:666850d06c9f | 93 | |
jhon309 | 0:666850d06c9f | 94 | /** |
jhon309 | 0:666850d06c9f | 95 | * @} |
jhon309 | 0:666850d06c9f | 96 | */ |
jhon309 | 0:666850d06c9f | 97 | |
jhon309 | 0:666850d06c9f | 98 | /** @addtogroup STM32F0xx_System_Exported_Functions |
jhon309 | 0:666850d06c9f | 99 | * @{ |
jhon309 | 0:666850d06c9f | 100 | */ |
jhon309 | 0:666850d06c9f | 101 | |
jhon309 | 0:666850d06c9f | 102 | extern void SystemInit(void); |
jhon309 | 0:666850d06c9f | 103 | extern void SystemCoreClockUpdate(void); |
jhon309 | 0:666850d06c9f | 104 | extern void SetSysClock(void); |
jhon309 | 0:666850d06c9f | 105 | |
jhon309 | 0:666850d06c9f | 106 | /** |
jhon309 | 0:666850d06c9f | 107 | * @} |
jhon309 | 0:666850d06c9f | 108 | */ |
jhon309 | 0:666850d06c9f | 109 | |
jhon309 | 0:666850d06c9f | 110 | #ifdef __cplusplus |
jhon309 | 0:666850d06c9f | 111 | } |
jhon309 | 0:666850d06c9f | 112 | #endif |
jhon309 | 0:666850d06c9f | 113 | |
jhon309 | 0:666850d06c9f | 114 | #endif /*__SYSTEM_STM32F0XX_H */ |
jhon309 | 0:666850d06c9f | 115 | |
jhon309 | 0:666850d06c9f | 116 | /** |
jhon309 | 0:666850d06c9f | 117 | * @} |
jhon309 | 0:666850d06c9f | 118 | */ |
jhon309 | 0:666850d06c9f | 119 | |
jhon309 | 0:666850d06c9f | 120 | /** |
jhon309 | 0:666850d06c9f | 121 | * @} |
jhon309 | 0:666850d06c9f | 122 | */ |
jhon309 | 0:666850d06c9f | 123 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |