Completely trivial changes from review of last PR

This commit is contained in:
Gregory Nutt
2016-06-10 14:59:53 -06:00
parent 525557c098
commit e891a33c2e
5 changed files with 13 additions and 12 deletions
+1 -8
View File
@@ -54,6 +54,7 @@
/**************************************************************************** /****************************************************************************
* Private Data * Private Data
****************************************************************************/ ****************************************************************************/
/* Port letters for prettier debug output */ /* Port letters for prettier debug output */
static const char g_portchar[KINETIS_NPORTS] = static const char g_portchar[KINETIS_NPORTS] =
@@ -83,14 +84,6 @@ static const char g_portchar[KINETIS_NPORTS] =
#endif #endif
}; };
/****************************************************************************
* Public Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
+5 -1
View File
@@ -120,6 +120,7 @@ struct kinetis_pwmtimer_s
/**************************************************************************** /****************************************************************************
* Static Function Prototypes * Static Function Prototypes
****************************************************************************/ ****************************************************************************/
/* Register access */ /* Register access */
static uint32_t pwm_getreg(struct kinetis_pwmtimer_s *priv, int offset); static uint32_t pwm_getreg(struct kinetis_pwmtimer_s *priv, int offset);
@@ -151,7 +152,10 @@ static int pwm_ioctl(FAR struct pwm_lowerhalf_s *dev,
/**************************************************************************** /****************************************************************************
* Private Data * Private Data
****************************************************************************/ ****************************************************************************/
/* This is the list of lower half PWM driver methods used by the upper half driver */
/* This is the list of lower half PWM driver methods used by the upper half
* driver.
*/
static const struct pwm_ops_s g_pwmops = static const struct pwm_ops_s g_pwmops =
{ {
+1
View File
@@ -49,6 +49,7 @@
/************************************************************************************ /************************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
************************************************************************************/ ************************************************************************************/
/* Configuration ********************************************************************/ /* Configuration ********************************************************************/
/* Timer devices may be used for different purposes. One special purpose is /* Timer devices may be used for different purposes. One special purpose is
* to generate modulated outputs for such things as motor control. If CONFIG_KINETIS_FTMn * to generate modulated outputs for such things as motor control. If CONFIG_KINETIS_FTMn
+1 -1
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# configs/teensy-3.x/src/Makefile # configs/teensy-3.x/src/Makefile
# #
# Copyright (C) 2015,2016 Gregory Nutt. All rights reserved. # Copyright (C) 2015, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
+5 -2
View File
@@ -1,7 +1,7 @@
/************************************************************************************ /************************************************************************************
* configs/teensy-3.x/src/k20_pwm.c * configs/teensy-3.x/src/k20_pwm.c
* *
* Copyright (C) 2015,2016 Gregory Nutt. All rights reserved. * Copyright (C) 2015, 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
* Alan Carvalho de Assis <acassis@gmail.com> * Alan Carvalho de Assis <acassis@gmail.com>
* *
@@ -93,8 +93,9 @@ int board_pwm_setup(void)
if (!initialized) if (!initialized)
{ {
/* Call kinetis_pwminitialize() to get an instance of the PWM interface */
#ifdef CONFIG_KINETIS_FTM0_PWM #ifdef CONFIG_KINETIS_FTM0_PWM
/* Call kinetis_pwminitialize() to get an instance of the PWM interface */
pwm = kinetis_pwminitialize(0); pwm = kinetis_pwminitialize(0);
if (!pwm) if (!pwm)
{ {
@@ -113,6 +114,7 @@ int board_pwm_setup(void)
/* Now we are initialized */ /* Now we are initialized */
#endif #endif
#ifdef CONFIG_KINETIS_FTM1_PWM #ifdef CONFIG_KINETIS_FTM1_PWM
pwm = kinetis_pwminitialize(1); pwm = kinetis_pwminitialize(1);
if (!pwm) if (!pwm)
@@ -132,6 +134,7 @@ int board_pwm_setup(void)
/* Now we are initialized */ /* Now we are initialized */
#endif #endif
#ifdef CONFIG_KINETIS_FTM2_PWM #ifdef CONFIG_KINETIS_FTM2_PWM
pwm = kinetis_pwminitialize(2); pwm = kinetis_pwminitialize(2);
if (!pwm) if (!pwm)