distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
clocks.hpp File Reference

Definitions of clocks for STM32F4. More...

#include "distortos/distortosConfiguration.h"
#include <cstdint>
Include dependency graph for clocks.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 distortos
 Top-level namespace of distortos project.
 
 distortos::chip
 Chip-related code of distortos project.
 

Variables

constexpr uint32_t distortos::chip::hsiFrequency {16000000}
 HSI clock frequency, Hz. More...
 
constexpr uint32_t distortos::chip::minVcoInFrequency {1000000}
 minimum allowed value for VCO input frequency, Hz More...
 
constexpr uint32_t distortos::chip::maxVcoInFrequency {2000000}
 maximum allowed value for VCO input frequency, Hz More...
 
constexpr uint32_t distortos::chip::minVcoOutFrequency {100000000}
 minimum allowed value for VCO output frequency, Hz More...
 
constexpr uint32_t distortos::chip::maxVcoOutFrequency {432000000}
 maximum allowed value for VCO output frequency, Hz More...
 
constexpr uint32_t distortos::chip::maxPllOutFrequencies [3][2]
 
constexpr uint32_t distortos::chip::maxPllqOutFrequency {48000000}
 maximum allowed value for PLL "Q" output frequency, Hz More...
 
constexpr uint32_t distortos::chip::maxApb1Frequencies [2] {42000000, 42000000}
 
constexpr uint32_t distortos::chip::maxApb2Frequencies [2] {84000000, 84000000}
 
constexpr uint8_t distortos::chip::overDriveIndex {0}
 over-drive index for maxPllOutFrequencies array (maxPllOutFrequencies[voltageScaleIndex][overDriveIndex]) More...
 
constexpr uint8_t distortos::chip::voltageScaleIndex {CONFIG_CHIP_STM32F4_PWR_VOLTAGE_SCALE_MODE - 1}
 voltage scale index for maxPllOutFrequencies array (maxPllOutFrequencies[voltageScaleIndex][overDriveIndex]) More...
 
constexpr uint32_t distortos::chip::maxPllOutFrequency {maxPllOutFrequencies[voltageScaleIndex][overDriveIndex]}
 maximum allowed value for PLL output frequency, Hz More...
 
constexpr uint32_t distortos::chip::maxApb1Frequency {maxApb1Frequencies[overDriveIndex]}
 maximum allowed APB1 (low speed) frequency, Hz More...
 
constexpr uint32_t distortos::chip::maxApb2Frequency {maxApb2Frequencies[overDriveIndex]}
 maximum allowed APB2 (high speed) frequency, Hz More...
 
constexpr uint32_t distortos::chip::pllInFrequency {CONFIG_CHIP_STM32F4_RCC_HSE_FREQUENCY}
 PLL input frequency, Hz. More...
 
constexpr uint32_t distortos::chip::vcoInFrequency {pllInFrequency / CONFIG_CHIP_STM32F4_RCC_PLLM}
 VCO input frequency, Hz. More...
 
constexpr uint32_t distortos::chip::vcoOutFrequency {vcoInFrequency * CONFIG_CHIP_STM32F4_RCC_PLLN}
 VCO output frequency, Hz. More...
 
constexpr uint32_t distortos::chip::pllOutFrequency {vcoOutFrequency / CONFIG_CHIP_STM32F4_RCC_PLLP}
 PLL output frequency, Hz. More...
 
constexpr uint32_t distortos::chip::pllqOutFrequency {vcoOutFrequency / CONFIG_CHIP_STM32F4_RCC_PLLQ}
 PLL "Q" output frequency, Hz. More...
 
constexpr uint32_t distortos::chip::sysclkFrequency {pllOutFrequency}
 SYSCLK frequency, Hz. More...
 
constexpr uint32_t distortos::chip::ahbFrequency {sysclkFrequency / CONFIG_CHIP_STM32F4_RCC_HPRE}
 AHB frequency, Hz. More...
 
constexpr uint32_t distortos::chip::apb1Frequency {ahbFrequency / CONFIG_CHIP_STM32F4_RCC_PPRE1}
 APB1 frequency, Hz. More...
 
constexpr uint32_t distortos::chip::apb2Frequency {ahbFrequency / CONFIG_CHIP_STM32F4_RCC_PPRE2}
 APB2 frequency, Hz. More...
 

Detailed Description

Definitions of clocks for STM32F4.

Author
Copyright (C) 2016-2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.