output函数调用了没?试试STM32Cube_FW_F3_V1.10.0ProjectsSTM32F3348-DiscoveryExamplesHRTIMHRTIM_BasicPWM里面的例程?
/* TD1 output toggles at ~430kHz (this frequency can vary depending on compiler and optimizations options) */
HAL_HRTIM_WaveformSetOutputLevel( hhrtim, HRTIM_TIMERINDEX_TIMER_D, HRTIM_OUTPUT_TD1, HRTIM_OUTPUTLEVEL_ACTIVE);
HAL_HRTIM_WaveformSetOutputLevel( hhrtim, HRTIM_TIMERINDEX_TIMER_D, HRTIM_OUTPUT_TD1, HRTIM_OUTPUTLEVEL_INACTIVE);
output函数调用了没?试试STM32Cube_FW_F3_V1.10.0ProjectsSTM32F3348-DiscoveryExamplesHRTIMHRTIM_BasicPWM里面的例程?
/* TD1 output toggles at ~430kHz (this frequency can vary depending on compiler and optimizations options) */
HAL_HRTIM_WaveformSetOutputLevel( hhrtim, HRTIM_TIMERINDEX_TIMER_D, HRTIM_OUTPUT_TD1, HRTIM_OUTPUTLEVEL_ACTIVE);
HAL_HRTIM_WaveformSetOutputLevel( hhrtim, HRTIM_TIMERINDEX_TIMER_D, HRTIM_OUTPUT_TD1, HRTIM_OUTPUTLEVEL_INACTIVE);
举报