Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 5 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /** |
1 | /** |
2 | ****************************************************************************** |
2 | ****************************************************************************** |
3 | * @file system_stm32f1xx.c |
3 | * @file system_stm32f1xx.c |
4 | * @author MCD Application Team |
4 | * @author MCD Application Team |
5 | * @version V4.0.1 |
5 | * @version V4.1.0 |
6 | * @date 31-July-2015 |
6 | * @date 29-April-2016 |
7 | * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Source File. |
7 | * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Source File. |
8 | * |
8 | * |
9 | * 1. This file provides two functions and one global variable to be called from |
9 | * 1. This file provides two functions and one global variable to be called from |
10 | * user application: |
10 | * user application: |
11 | * - SystemInit(): Setups the system clock (System clock source, PLL Multiplier |
11 | * - SystemInit(): Setups the system clock (System clock source, PLL Multiplier |
Line 33... | Line 33... | ||
33 | * configuration. |
33 | * configuration. |
34 | * |
34 | * |
35 | ****************************************************************************** |
35 | ****************************************************************************** |
36 | * @attention |
36 | * @attention |
37 | * |
37 | * |
38 | * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> |
38 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
39 | * |
39 | * |
40 | * Redistribution and use in source and binary forms, with or without modification, |
40 | * Redistribution and use in source and binary forms, with or without modification, |
41 | * are permitted provided that the following conditions are met: |
41 | * are permitted provided that the following conditions are met: |
42 | * 1. Redistributions of source code must retain the above copyright notice, |
42 | * 1. Redistributions of source code must retain the above copyright notice, |
43 | * this list of conditions and the following disclaimer. |
43 | * this list of conditions and the following disclaimer. |
Line 138... | Line 138... | ||
138 | #else /*!< HSI Selected as System Clock source */ |
138 | #else /*!< HSI Selected as System Clock source */ |
139 | uint32_t SystemCoreClock = 72000000; /*!< System Clock Frequency (Core Clock) */ |
139 | uint32_t SystemCoreClock = 72000000; /*!< System Clock Frequency (Core Clock) */ |
140 | #endif |
140 | #endif |
141 | 141 | ||
142 | const uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; |
142 | const uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9}; |
- | 143 | const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4}; |
|
- | 144 | ||
143 | /** |
145 | /** |
144 | * @} |
146 | * @} |
145 | */ |
147 | */ |
146 | 148 | ||
147 | /** @addtogroup STM32F1xx_System_Private_FunctionPrototypes |
149 | /** @addtogroup STM32F1xx_System_Private_FunctionPrototypes |