Loading...
Searching...
No Matches
RCC Simulator
STM32 Simulation » STM32 Simulator

Симулятор для RCC и часов таймера More...

Collaboration diagram for RCC Simulator:

## Macros

#define | HCLK_Value (double)72000000;
#define | ABP1_Value (double)72000000;
#define | ABP1_TIMS_Value (double)72000000;
#define | ABP2_Value (double)72000000;
#define | ABP2_TIMS_Value (double)72000000;
#define | _RCC_SET_FLAG(__FLAG__)
#define | _RCC_CLEAR_FLAG(__FLAG__)
#define | Set_Flag_If_Its_Expected(_flag_, _condition_) if(_condition_) _RCC_CLEAR_FLAG(_flag_)
#define | Clear_Flag_If_Its_Expected(_flag_, _condition_) if(_condition_) _RCC_SET_FLAG(_flag_)

## Detailed Description

Симулятор для RCC и часов таймера

Определ¤ет параметры тактирования МК. Содержит дефайны дл¤ скипа бесконечных циклов ожидающих выставление флагов

## Macro Definition Documentation

## HCLK_Value

#define HCLK_Value (double)72000000;

Definition at line 28 of file stm32f4xx_matlab_rcc.h.

## ABP1_Value

#define ABP1_Value (double)72000000;

Definition at line 29 of file stm32f4xx_matlab_rcc.h.

## ABP1_TIMS_Value

#define ABP1_TIMS_Value (double)72000000;

Definition at line 30 of file stm32f4xx_matlab_rcc.h.

## ABP2_Value

#define ABP2_Value (double)72000000;

Definition at line 31 of file stm32f4xx_matlab_rcc.h.

## ABP2_TIMS_Value

#define ABP2_TIMS_Value (double)72000000;

Definition at line 32 of file stm32f4xx_matlab_rcc.h.

## _RCC_SET_FLAG

#define _RCC_SET_FLAG | ( |  | __FLAG__ | ) |

Value:
if(((__FLAG__) >> 5U) == 1U) RCC->CR |= (1U << ((__FLAG__) & RCC_FLAG_MASK)); \
else if(((__FLAG__) >> 5U) == 2U) RCC->BDCR |= (1U << ((__FLAG__) & RCC_FLAG_MASK)); \
else if(((__FLAG__) >> 5U) == 3U) RCC->CSR |= (1U << ((__FLAG__) & RCC_FLAG_MASK)); \
else RCC->CIR |= (1U << ((__FLAG__) & RCC_FLAG_MASK))

Definition at line 36 of file stm32f4xx_matlab_rcc.h.

## _RCC_CLEAR_FLAG

#define _RCC_CLEAR_FLAG | ( |  | __FLAG__ | ) |

Value:
if(((__FLAG__) >> 5U) == 1U) RCC->CR &= ~(1U << ((__FLAG__) & RCC_FLAG_MASK)); \
else if(((__FLAG__) >> 5U) == 2U) RCC->BDCR &= ~(1U << ((__FLAG__) & RCC_FLAG_MASK)); \
else if(((__FLAG__) >> 5U) == 3U) RCC->CSR &= ~(1U << ((__FLAG__) & RCC_FLAG_MASK)); \
else RCC->CIR &= ~(1U << ((__FLAG__) & RCC_FLAG_MASK))

Definition at line 42 of file stm32f4xx_matlab_rcc.h.

## Set_Flag_If_Its_Expected

#define Set_Flag_If_Its_Expected | ( |  | _flag_,
|  |  | _condition_ ) if(_condition_) _RCC_CLEAR_FLAG(_flag_)

Definition at line 48 of file stm32f4xx_matlab_rcc.h.

## Clear_Flag_If_Its_Expected

#define Clear_Flag_If_Its_Expected | ( |  | _flag_,
|  |  | _condition_ ) if(_condition_) _RCC_SET_FLAG(_flag_)

Definition at line 51 of file stm32f4xx_matlab_rcc.h.