Prusa MINI Firmware overview
TIM Output Compare and PWM modes
Collaboration diagram for TIM Output Compare and PWM modes:

Macros

#define TIM_OCMODE_TIMING   0x00000000U
 
#define TIM_OCMODE_ACTIVE   (TIM_CCMR1_OC1M_0)
 
#define TIM_OCMODE_INACTIVE   (TIM_CCMR1_OC1M_1)
 
#define TIM_OCMODE_TOGGLE   (TIM_CCMR1_OC1M_0 | TIM_CCMR1_OC1M_1)
 
#define TIM_OCMODE_PWM1   (TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_2)
 
#define TIM_OCMODE_PWM2   (TIM_CCMR1_OC1M)
 
#define TIM_OCMODE_FORCED_ACTIVE   (TIM_CCMR1_OC1M_0 | TIM_CCMR1_OC1M_2)
 
#define TIM_OCMODE_FORCED_INACTIVE   (TIM_CCMR1_OC1M_2)
 

Detailed Description

Macro Definition Documentation

◆ TIM_OCMODE_TIMING

#define TIM_OCMODE_TIMING   0x00000000U

◆ TIM_OCMODE_ACTIVE

#define TIM_OCMODE_ACTIVE   (TIM_CCMR1_OC1M_0)

◆ TIM_OCMODE_INACTIVE

#define TIM_OCMODE_INACTIVE   (TIM_CCMR1_OC1M_1)

◆ TIM_OCMODE_TOGGLE

#define TIM_OCMODE_TOGGLE   (TIM_CCMR1_OC1M_0 | TIM_CCMR1_OC1M_1)

◆ TIM_OCMODE_PWM1

#define TIM_OCMODE_PWM1   (TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_2)

◆ TIM_OCMODE_PWM2

#define TIM_OCMODE_PWM2   (TIM_CCMR1_OC1M)

◆ TIM_OCMODE_FORCED_ACTIVE

#define TIM_OCMODE_FORCED_ACTIVE   (TIM_CCMR1_OC1M_0 | TIM_CCMR1_OC1M_2)

◆ TIM_OCMODE_FORCED_INACTIVE

#define TIM_OCMODE_FORCED_INACTIVE   (TIM_CCMR1_OC1M_2)