CMSIS library (not dsp)

Dependents:   BSP

Committer:
EricLew
Date:
Sun Nov 22 21:15:21 2015 +0000
Revision:
2:c991e443f67c
Parent:
0:0ee1b3bb319a
11/22/2015

Who changed what in which revision?

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