Prusa MINI Firmware overview
Collaboration diagram for TIM ETR Prescaler:

Macros

#define TIM_ETRPRESCALER_DIV1   0x00000000U
 
#define TIM_ETRPRESCALER_DIV2   (TIM_SMCR_ETPS_0)
 
#define TIM_ETRPRESCALER_DIV4   (TIM_SMCR_ETPS_1)
 
#define TIM_ETRPRESCALER_DIV8   (TIM_SMCR_ETPS)
 

Detailed Description

Macro Definition Documentation

◆ TIM_ETRPRESCALER_DIV1

#define TIM_ETRPRESCALER_DIV1   0x00000000U

No prescaler is used

◆ TIM_ETRPRESCALER_DIV2

#define TIM_ETRPRESCALER_DIV2   (TIM_SMCR_ETPS_0)

ETR input source is divided by 2

◆ TIM_ETRPRESCALER_DIV4

#define TIM_ETRPRESCALER_DIV4   (TIM_SMCR_ETPS_1)

ETR input source is divided by 4

◆ TIM_ETRPRESCALER_DIV8

#define TIM_ETRPRESCALER_DIV8   (TIM_SMCR_ETPS)

ETR input source is divided by 8