hello,继续请教几个问题
1. flexpwm有四个fault输入。四个输入分别是什么?并且使用pwm都必须配置完四个fault吗?
/*! @brief List of PWM fault selections */
typedef enum _pwm_fault_input
{
kPWM_Fault_0 = 0U, /*!< Fault 0 input pin */
kPWM_Fault_1, /*!< Fault 1 input pin */
kPWM_Fault_2, /*!< Fault 2 input pin */
kPWM_Fault_3 /*!< Fault 3 input pin */
} pwm_fault_input_t;
2.pwm_fault_param_t中有个变量是enableCombinationalPath,设置完fault后需要使能这个变量才生效吗?如果不使能会不会导致pwm不能输出。
/*! @brief Structure is used to hold the parameters to configure a PWM fault */
typedef struct _pwm_fault_param
{
pwm_fault_clear_t faultClearingMode; /*!< Fault clearing mode to use */
bool faultLevel; /*!< true: Logic 1 indicates fault;
false: Logic 0 indicates fault */
bool enableCombinationalPath; /*!< true: Combinational Path from fault input is enabled;
false: No combination path is available */
pwm_fault_recovery_mode_t recoverMode; /*!< Specify when to re-enable the PWM output */
} pwm_fault_param_t;