Re: Doubt about PWMConfig Structure.
Posted: Mon Mar 12, 2012 8:28 am
I have defined STM32_PWM_USE_TIM8 as TRUE in mcuconf.h
ChibiOS Web Boards
https://forum.chibios.org/
Code: Select all
/*pwmcfg8 - to be used for PWM8..i.e timer 8 */
static PWMConfig pwmcfg8 = {
1000000, /* 1MHz PWM clock frequency. */
20000, /* 20 ms time period*/
NULL,
{ /*CH2N and CH3N of Timer 8 are available for PWM. Enable those */
/* disable rest*/
{PWM_OUTPUT_DISABLED, NULL},
{PWM_COMPLEMENTARY_OUTPUT_ACTIVE_HIGH, NULL},
{PWM_COMPLEMENTARY_OUTPUT_ACTIVE_HIGH, NULL},
{PWM_OUTPUT_DISABLED, NULL}
},
/* HW dependent part.*/
0,
0 /* STM32_PWM_USE_ADVANCED is enabled which adds additional field*/
};