Big Module but I found it.
-----------------
FTM0_POL= (0 | FTM_POL_POL0_MASK);//Inactive state of CH0 is high
if(FTM0_OUTMASK & FTM_OUTMASK_CH0OM_MASK)
{
printf("Enable Output\r\n");
FTM0_OUTMASK &= ~FTM_OUTMASK_CH0OM_MASK;
}
else
{
printf("Disable Output\r\n");
FTM0_OUTMASK |= FTM_OUTMASK_CH0OM_MASK;
}
Big Module but I found it.
-----------------
FTM0_POL= (0 | FTM_POL_POL0_MASK);//Inactive state of CH0 is high
if(FTM0_OUTMASK & FTM_OUTMASK_CH0OM_MASK)
{
printf("Enable Output\r\n");
FTM0_OUTMASK &= ~FTM_OUTMASK_CH0OM_MASK;
}
else
{
printf("Disable Output\r\n");
FTM0_OUTMASK |= FTM_OUTMASK_CH0OM_MASK;
}