MG32F10x Standard Peripherals Firmware Library
宏定义
TIM_Input_Capture_Polarity

宏定义

#define TIM_ICPolarity_Rising   ((uint16_t)0x0000)
 
#define TIM_ICPolarity_Falling   ((uint16_t)0x0002)
 
#define TIM_ICPolarity_BothEdge   ((uint16_t)0x000A)
 
#define IS_TIM_IC_POLARITY(POLARITY)
 

详细描述

宏定义说明

◆ IS_TIM_IC_POLARITY

#define IS_TIM_IC_POLARITY (   POLARITY)
值:
(((POLARITY) == TIM_ICPolarity_Rising) || \
((POLARITY) == TIM_ICPolarity_Falling))