Prusa MINI Firmware overview
TIM Master Mode Selection
Collaboration diagram for TIM Master Mode Selection:

Macros

#define TIM_TRGO_RESET   0x00000000U
 
#define TIM_TRGO_ENABLE   (TIM_CR2_MMS_0)
 
#define TIM_TRGO_UPDATE   (TIM_CR2_MMS_1)
 
#define TIM_TRGO_OC1   ((TIM_CR2_MMS_1 | TIM_CR2_MMS_0))
 
#define TIM_TRGO_OC1REF   (TIM_CR2_MMS_2)
 
#define TIM_TRGO_OC2REF   ((TIM_CR2_MMS_2 | TIM_CR2_MMS_0))
 
#define TIM_TRGO_OC3REF   ((TIM_CR2_MMS_2 | TIM_CR2_MMS_1))
 
#define TIM_TRGO_OC4REF   ((TIM_CR2_MMS_2 | TIM_CR2_MMS_1 | TIM_CR2_MMS_0))
 

Detailed Description

Macro Definition Documentation

◆ TIM_TRGO_RESET

#define TIM_TRGO_RESET   0x00000000U

◆ TIM_TRGO_ENABLE

#define TIM_TRGO_ENABLE   (TIM_CR2_MMS_0)

◆ TIM_TRGO_UPDATE

#define TIM_TRGO_UPDATE   (TIM_CR2_MMS_1)

◆ TIM_TRGO_OC1

#define TIM_TRGO_OC1   ((TIM_CR2_MMS_1 | TIM_CR2_MMS_0))

◆ TIM_TRGO_OC1REF

#define TIM_TRGO_OC1REF   (TIM_CR2_MMS_2)

◆ TIM_TRGO_OC2REF

#define TIM_TRGO_OC2REF   ((TIM_CR2_MMS_2 | TIM_CR2_MMS_0))

◆ TIM_TRGO_OC3REF

#define TIM_TRGO_OC3REF   ((TIM_CR2_MMS_2 | TIM_CR2_MMS_1))

◆ TIM_TRGO_OC4REF

#define TIM_TRGO_OC4REF   ((TIM_CR2_MMS_2 | TIM_CR2_MMS_1 | TIM_CR2_MMS_0))