added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/system_stm32f7xx.h@147:ba84b7dc41a7, 2016-09-10 (annotated)
- Committer:
- JojoS
- Date:
- Sat Sep 10 15:32:04 2016 +0000
- Revision:
- 147:ba84b7dc41a7
- Parent:
- 144:ef7eb2e8f9f7
added prescaler for 16 bit timers (solution as in LPC11xx), default prescaler 31 for max 28 ms period time
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 74:9322579e4309 | 1 | /** |
mbed_official | 74:9322579e4309 | 2 | ****************************************************************************** |
mbed_official | 74:9322579e4309 | 3 | * @file system_stm32f7xx.h |
mbed_official | 74:9322579e4309 | 4 | * @author MCD Application Team |
<> | 144:ef7eb2e8f9f7 | 5 | * @version V1.1.0 |
<> | 144:ef7eb2e8f9f7 | 6 | * @date 22-April-2016 |
mbed_official | 74:9322579e4309 | 7 | * @brief CMSIS Cortex-M7 Device System Source File for STM32F7xx devices. |
mbed_official | 74:9322579e4309 | 8 | ****************************************************************************** |
mbed_official | 74:9322579e4309 | 9 | * @attention |
mbed_official | 74:9322579e4309 | 10 | * |
mbed_official | 83:a036322b8637 | 11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
mbed_official | 74:9322579e4309 | 12 | * |
mbed_official | 74:9322579e4309 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 74:9322579e4309 | 14 | * are permitted provided that the following conditions are met: |
mbed_official | 74:9322579e4309 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 74:9322579e4309 | 16 | * this list of conditions and the following disclaimer. |
mbed_official | 74:9322579e4309 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 74:9322579e4309 | 18 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 74:9322579e4309 | 19 | * and/or other materials provided with the distribution. |
mbed_official | 74:9322579e4309 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
mbed_official | 74:9322579e4309 | 21 | * may be used to endorse or promote products derived from this software |
mbed_official | 74:9322579e4309 | 22 | * without specific prior written permission. |
mbed_official | 74:9322579e4309 | 23 | * |
mbed_official | 74:9322579e4309 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 74:9322579e4309 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 74:9322579e4309 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 74:9322579e4309 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
mbed_official | 74:9322579e4309 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 74:9322579e4309 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
mbed_official | 74:9322579e4309 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
mbed_official | 74:9322579e4309 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
mbed_official | 74:9322579e4309 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
mbed_official | 74:9322579e4309 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 74:9322579e4309 | 34 | * |
mbed_official | 74:9322579e4309 | 35 | ****************************************************************************** |
mbed_official | 74:9322579e4309 | 36 | */ |
mbed_official | 74:9322579e4309 | 37 | |
mbed_official | 74:9322579e4309 | 38 | /** @addtogroup CMSIS |
mbed_official | 74:9322579e4309 | 39 | * @{ |
mbed_official | 74:9322579e4309 | 40 | */ |
mbed_official | 74:9322579e4309 | 41 | |
mbed_official | 74:9322579e4309 | 42 | /** @addtogroup stm32f7xx_system |
mbed_official | 74:9322579e4309 | 43 | * @{ |
mbed_official | 74:9322579e4309 | 44 | */ |
mbed_official | 74:9322579e4309 | 45 | |
mbed_official | 74:9322579e4309 | 46 | /** |
mbed_official | 74:9322579e4309 | 47 | * @brief Define to prevent recursive inclusion |
mbed_official | 74:9322579e4309 | 48 | */ |
mbed_official | 74:9322579e4309 | 49 | #ifndef __SYSTEM_STM32F7XX_H |
mbed_official | 74:9322579e4309 | 50 | #define __SYSTEM_STM32F7XX_H |
mbed_official | 74:9322579e4309 | 51 | |
mbed_official | 74:9322579e4309 | 52 | #ifdef __cplusplus |
mbed_official | 74:9322579e4309 | 53 | extern "C" { |
mbed_official | 74:9322579e4309 | 54 | #endif |
mbed_official | 74:9322579e4309 | 55 | |
mbed_official | 74:9322579e4309 | 56 | /** @addtogroup STM32F7xx_System_Includes |
mbed_official | 74:9322579e4309 | 57 | * @{ |
mbed_official | 74:9322579e4309 | 58 | */ |
mbed_official | 74:9322579e4309 | 59 | |
mbed_official | 74:9322579e4309 | 60 | /** |
mbed_official | 74:9322579e4309 | 61 | * @} |
mbed_official | 74:9322579e4309 | 62 | */ |
mbed_official | 74:9322579e4309 | 63 | |
mbed_official | 74:9322579e4309 | 64 | |
<> | 144:ef7eb2e8f9f7 | 65 | /** @addtogroup STM32F7xx_System_Exported_Variables |
mbed_official | 74:9322579e4309 | 66 | * @{ |
mbed_official | 74:9322579e4309 | 67 | */ |
<> | 144:ef7eb2e8f9f7 | 68 | /* The SystemCoreClock variable is updated in three ways: |
mbed_official | 74:9322579e4309 | 69 | 1) by calling CMSIS function SystemCoreClockUpdate() |
mbed_official | 74:9322579e4309 | 70 | 2) by calling HAL API function HAL_RCC_GetSysClockFreq() |
mbed_official | 74:9322579e4309 | 71 | 3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency |
mbed_official | 74:9322579e4309 | 72 | Note: If you use this function to configure the system clock; then there |
mbed_official | 74:9322579e4309 | 73 | is no need to call the 2 first functions listed above, since SystemCoreClock |
mbed_official | 74:9322579e4309 | 74 | variable is updated automatically. |
mbed_official | 74:9322579e4309 | 75 | */ |
mbed_official | 74:9322579e4309 | 76 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
mbed_official | 74:9322579e4309 | 77 | |
<> | 144:ef7eb2e8f9f7 | 78 | extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */ |
<> | 144:ef7eb2e8f9f7 | 79 | extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */ |
<> | 144:ef7eb2e8f9f7 | 80 | |
mbed_official | 74:9322579e4309 | 81 | |
mbed_official | 74:9322579e4309 | 82 | /** |
mbed_official | 74:9322579e4309 | 83 | * @} |
mbed_official | 74:9322579e4309 | 84 | */ |
mbed_official | 74:9322579e4309 | 85 | |
mbed_official | 74:9322579e4309 | 86 | /** @addtogroup STM32F7xx_System_Exported_Constants |
mbed_official | 74:9322579e4309 | 87 | * @{ |
mbed_official | 74:9322579e4309 | 88 | */ |
mbed_official | 74:9322579e4309 | 89 | |
mbed_official | 74:9322579e4309 | 90 | /** |
mbed_official | 74:9322579e4309 | 91 | * @} |
mbed_official | 74:9322579e4309 | 92 | */ |
mbed_official | 74:9322579e4309 | 93 | |
mbed_official | 74:9322579e4309 | 94 | /** @addtogroup STM32F7xx_System_Exported_Macros |
mbed_official | 74:9322579e4309 | 95 | * @{ |
mbed_official | 74:9322579e4309 | 96 | */ |
mbed_official | 74:9322579e4309 | 97 | |
mbed_official | 74:9322579e4309 | 98 | /** |
mbed_official | 74:9322579e4309 | 99 | * @} |
mbed_official | 74:9322579e4309 | 100 | */ |
mbed_official | 74:9322579e4309 | 101 | |
mbed_official | 74:9322579e4309 | 102 | /** @addtogroup STM32F7xx_System_Exported_Functions |
mbed_official | 74:9322579e4309 | 103 | * @{ |
mbed_official | 74:9322579e4309 | 104 | */ |
mbed_official | 74:9322579e4309 | 105 | |
mbed_official | 74:9322579e4309 | 106 | extern void SystemInit(void); |
mbed_official | 74:9322579e4309 | 107 | extern void SystemCoreClockUpdate(void); |
mbed_official | 74:9322579e4309 | 108 | extern void SetSysClock(void); |
mbed_official | 74:9322579e4309 | 109 | /** |
mbed_official | 74:9322579e4309 | 110 | * @} |
mbed_official | 74:9322579e4309 | 111 | */ |
mbed_official | 74:9322579e4309 | 112 | |
mbed_official | 74:9322579e4309 | 113 | #ifdef __cplusplus |
mbed_official | 74:9322579e4309 | 114 | } |
mbed_official | 74:9322579e4309 | 115 | #endif |
mbed_official | 74:9322579e4309 | 116 | |
mbed_official | 74:9322579e4309 | 117 | #endif /*__SYSTEM_STM32F7XX_H */ |
mbed_official | 74:9322579e4309 | 118 | |
mbed_official | 74:9322579e4309 | 119 | /** |
mbed_official | 74:9322579e4309 | 120 | * @} |
mbed_official | 74:9322579e4309 | 121 | */ |
mbed_official | 74:9322579e4309 | 122 | |
mbed_official | 74:9322579e4309 | 123 | /** |
mbed_official | 74:9322579e4309 | 124 | * @} |
mbed_official | 74:9322579e4309 | 125 | */ |
mbed_official | 74:9322579e4309 | 126 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |