aboutsummaryrefslogtreecommitdiffstats
path: root/os/ext/CMSIS/ST/system_stm32f4xx.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-09-27 08:10:38 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-09-27 08:10:38 +0000
commit3ef75526094f91db4c6b8b06d2d805d835c438b0 (patch)
treea0e707c31f607bd9fcabfe999f606a590a1679d6 /os/ext/CMSIS/ST/system_stm32f4xx.h
parentd737a6b34099b90ffc5d0f8b54f693a05f551a73 (diff)
downloadChibiOS-3ef75526094f91db4c6b8b06d2d805d835c438b0.tar.gz
ChibiOS-3ef75526094f91db4c6b8b06d2d805d835c438b0.tar.bz2
ChibiOS-3ef75526094f91db4c6b8b06d2d805d835c438b0.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7323 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ext/CMSIS/ST/system_stm32f4xx.h')
-rw-r--r--os/ext/CMSIS/ST/system_stm32f4xx.h45
1 files changed, 31 insertions, 14 deletions
diff --git a/os/ext/CMSIS/ST/system_stm32f4xx.h b/os/ext/CMSIS/ST/system_stm32f4xx.h
index 000e382dd..a95324e63 100644
--- a/os/ext/CMSIS/ST/system_stm32f4xx.h
+++ b/os/ext/CMSIS/ST/system_stm32f4xx.h
@@ -2,25 +2,35 @@
******************************************************************************
* @file system_stm32f4xx.h
* @author MCD Application Team
- * @version V1.2.1
- * @date 19-September-2013
+ * @version V2.1.0
+ * @date 19-June-2014
* @brief CMSIS Cortex-M4 Device System Source File for STM32F4xx devices.
******************************************************************************
* @attention
*
- * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
+ * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
*
- * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
- * You may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * 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.
*
- * http://www.st.com/software_license_agreement_liberty_v2
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * 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.
*
******************************************************************************
*/
@@ -55,7 +65,14 @@
/** @addtogroup STM32F4xx_System_Exported_types
* @{
*/
-
+ /* This variable is updated in three ways:
+ 1) by calling CMSIS function SystemCoreClockUpdate()
+ 2) by calling HAL API function HAL_RCC_GetSysClockFreq()
+ 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
+ Note: If you use this function to configure the system clock; then there
+ is no need to call the 2 first functions listed above, since SystemCoreClock
+ variable is updated automatically.
+ */
extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */