Kinetis PWM: Purely cosmetic changes from review.
This commit is contained in:
parent
ccf085f30e
commit
c3bfccf293
@ -74,6 +74,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* PWM/Timer Definitions ****************************************************/
|
/* PWM/Timer Definitions ****************************************************/
|
||||||
|
|
||||||
/* Debug ********************************************************************/
|
/* Debug ********************************************************************/
|
||||||
@ -87,6 +88,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Types
|
* Private Types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* This structure represents the state of one PWM timer */
|
/* This structure represents the state of one PWM timer */
|
||||||
|
|
||||||
struct kinetis_pwmtimer_s
|
struct kinetis_pwmtimer_s
|
||||||
@ -318,6 +320,7 @@ static void pwm_dumpregs(struct kinetis_pwmtimer_s *priv, FAR const char *msg)
|
|||||||
priv->tpmid,
|
priv->tpmid,
|
||||||
pwm_getreg(priv, KINETIS_FTM_C5V_OFFSET));
|
pwm_getreg(priv, KINETIS_FTM_C5V_OFFSET));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nchannels >= 7)
|
if (nchannels >= 7)
|
||||||
{
|
{
|
||||||
pwminfo(" FTM%d_C6SC: %04x FTM%d_C6V: %04x\n",
|
pwminfo(" FTM%d_C6SC: %04x FTM%d_C6V: %04x\n",
|
||||||
@ -326,6 +329,7 @@ static void pwm_dumpregs(struct kinetis_pwmtimer_s *priv, FAR const char *msg)
|
|||||||
priv->tpmid,
|
priv->tpmid,
|
||||||
pwm_getreg(priv, KINETIS_FTM_C6V_OFFSET));
|
pwm_getreg(priv, KINETIS_FTM_C6V_OFFSET));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nchannels >= 8)
|
if (nchannels >= 8)
|
||||||
{
|
{
|
||||||
pwminfo(" FTM%d_C7SC: %04x FTM%d_C7V: %04x\n",
|
pwminfo(" FTM%d_C7SC: %04x FTM%d_C7V: %04x\n",
|
||||||
@ -776,28 +780,24 @@ FAR struct pwm_lowerhalf_s *kinetis_pwminitialize(int timer)
|
|||||||
#ifdef CONFIG_KINETIS_FTM0_PWM
|
#ifdef CONFIG_KINETIS_FTM0_PWM
|
||||||
case 0:
|
case 0:
|
||||||
lower = &g_pwm0dev;
|
lower = &g_pwm0dev;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_KINETIS_FTM1_PWM
|
#ifdef CONFIG_KINETIS_FTM1_PWM
|
||||||
case 1:
|
case 1:
|
||||||
lower = &g_pwm1dev;
|
lower = &g_pwm1dev;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_KINETIS_FTM2_PWM
|
#ifdef CONFIG_KINETIS_FTM2_PWM
|
||||||
case 2:
|
case 2:
|
||||||
lower = &g_pwm2dev;
|
lower = &g_pwm2dev;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_KINETIS_FTM3_PWM
|
#ifdef CONFIG_KINETIS_FTM3_PWM
|
||||||
case 3:
|
case 3:
|
||||||
lower = &g_pwm3dev;
|
lower = &g_pwm3dev;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user