drivers/timers/pwm.c: Move the pwm/pwm.c driver to timers/pwm.c, The drivers/pwm contained only one .c file (pwm.c), so to avoid the proliferation of sub-directories inside drivers/ is better to move the pwm.c driver to drivers/timers. The pwm.h header was moved to include/nuttx/timers to keep consistency, so all files referencing it need to be updated.

This commit is contained in:
Augusto Fraga Giachero 2019-09-02 07:53:52 -06:00 committed by Gregory Nutt
parent fc250074b3
commit 68bbc8438c
75 changed files with 118 additions and 169 deletions

View file

@ -5320,7 +5320,7 @@ void iob_dump(FAR const char *msg, FAR struct iob_s *iob, unsigned int len,
</p>
<ul>
<li><b>Interface Definition</b>.
The header file for the NuttX PWM driver reside at <code>include/nuttx/drivers/pwm.h</code>.
The header file for the NuttX PWM driver reside at <code>include/nuttx/timers/pwm.h</code>.
This header file includes both the application level interface to the PWM driver as well as the interface between the &quot;upper half&quot; and &quot;lower half&quot; drivers.
The PWM module uses a standard character driver framework.
However, since the PWM driver is a devices control interface and not a data transfer interface,

View file

@ -38,7 +38,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <sys/types.h>
#include <stdint.h>

View file

@ -47,7 +47,7 @@
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "up_arch.h"

View file

@ -39,7 +39,7 @@
/* The EFM32 does not have dedicated PWM hardware. Rather, pulsed output
* control is a capability of the EFM32 timers. The logic in this file
* implements the lower half of the standard, NuttX PWM interface using the
* EFM32 timers. That interface is described in include/nuttx/drivers/pwm.h.
* EFM32 timers. That interface is described in include/nuttx/timers/pwm.h.
*/
/****************************************************************************

View file

@ -50,7 +50,7 @@
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "up_internal.h"

View file

@ -48,7 +48,7 @@
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "up_internal.h"

View file

@ -42,7 +42,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
/****************************************************************************
* Pre-processor Definitions

View file

@ -47,7 +47,7 @@
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "up_internal.h"

View file

@ -47,7 +47,7 @@
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "up_internal.h"

View file

@ -47,7 +47,7 @@
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "up_internal.h"

View file

@ -47,7 +47,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include "hardware/sam_pinmap.h"
#include <arch/board/board.h>

View file

@ -42,7 +42,7 @@
/* The STM32 does not have dedicated PWM hardware. Rather, pulsed output control
* is a capabilitiy of the STM32 timers. The logic in this file implements the
* lower half of the standard, NuttX PWM interface using the STM32 timers. That
* interface is described in include/nuttx/drivers/pwm.h.
* interface is described in include/nuttx/timers/pwm.h.
*/
/************************************************************************************
@ -51,7 +51,7 @@
#include <nuttx/config.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include "chip.h"

View file

@ -48,7 +48,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "up_internal.h"

View file

@ -41,7 +41,7 @@
/* The STM32 does not have dedicated PWM hardware. Rather, pulsed output
* control is a capabilitiy of the STM32 timers. The logic in this file
* implements the lower half of the standard, NuttX PWM interface using the
* STM32 timers. That interface is described in include/nuttx/drivers/pwm.h.
* STM32 timers. That interface is described in include/nuttx/timers/pwm.h.
*/
/****************************************************************************

View file

@ -42,7 +42,7 @@
/* The STM32 does not have dedicated PWM hardware. Rather, pulsed output control
* is a capabilitiy of the STM32 timers. The logic in this file implements the
* lower half of the standard, NuttX PWM interface using the STM32 timers. That
* interface is described in include/nuttx/drivers/pwm.h.
* interface is described in include/nuttx/timers/pwm.h.
*/
/************************************************************************************
@ -51,7 +51,7 @@
#include <nuttx/config.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include "chip.h"

View file

@ -48,7 +48,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "up_internal.h"

View file

@ -41,7 +41,7 @@
/* The STM32L4 does not have dedicated PWM hardware. Rather, pulsed output control
* is a capability of the STM32L4 timers. The logic in this file implements the
* lower half of the standard, NuttX PWM interface using the STM32L4 timers. That
* interface is described in include/nuttx/drivers/pwm.h.
* interface is described in include/nuttx/timers/pwm.h.
*/
/************************************************************************************

View file

@ -49,7 +49,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include "up_arch.h"
#include "tiva_gpio.h"

View file

@ -40,7 +40,7 @@
* Included Files
************************************************************************************/
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
/****************************************************************************
* Public Function Prototypes

View file

@ -44,7 +44,7 @@
#include <errno.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include "cxd56_pwm.h"

View file

@ -44,7 +44,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include "chip.h"
#include "up_arch.h"

View file

@ -45,7 +45,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -45,7 +45,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -45,7 +45,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -45,7 +45,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -45,7 +45,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -45,7 +45,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -44,7 +44,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -46,7 +46,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -46,7 +46,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -44,7 +44,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -44,7 +44,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -44,7 +44,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -44,7 +44,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -43,7 +43,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -42,7 +42,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "chip.h"

View file

@ -42,7 +42,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "chip.h"

View file

@ -50,7 +50,7 @@
#include <arch/irq.h>
#include <arch/armv7-m/nvicpri.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <nuttx/analog/adc.h>
#include <nuttx/analog/ioctl.h>

View file

@ -42,7 +42,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "chip.h"

View file

@ -46,7 +46,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include "stm32_pwm.h"
#include "nucleo-f303re.h"

View file

@ -50,7 +50,7 @@
#include <arch/irq.h>
#include <arch/armv7-m/nvicpri.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <nuttx/analog/adc.h>
#include <nuttx/analog/ioctl.h>

View file

@ -46,7 +46,7 @@
#include <string.h>
#include <limits.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "chip.h"

View file

@ -45,7 +45,7 @@
#include <stdio.h>
#include <nuttx/fs/fs.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <nuttx/leds/rgbled.h>
#include <arch/board/board.h>

View file

@ -43,7 +43,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -43,7 +43,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -43,7 +43,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -45,7 +45,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -43,7 +43,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <nuttx/leds/rgbled.h>
#include <arch/board/board.h>

View file

@ -42,7 +42,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <nuttx/timers/oneshot.h>
#include <nuttx/audio/tone.h>
#include <arch/board/board.h>

View file

@ -43,7 +43,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -46,7 +46,7 @@
#include <nuttx/arch.h>
#include <nuttx/signal.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <nuttx/analog/adc.h>
#include <nuttx/analog/ioctl.h>

View file

@ -42,7 +42,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "chip.h"

View file

@ -42,7 +42,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "chip.h"

View file

@ -43,7 +43,7 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <nuttx/leds/rgbled.h>
#include <arch/board/board.h>

View file

@ -47,7 +47,7 @@
#include <nuttx/spi/spi.h>
#include <nuttx/sensors/xen1210.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include <nuttx/irq.h>

View file

@ -43,7 +43,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -45,7 +45,7 @@
#include <sys/types.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "chip.h"

View file

@ -43,7 +43,7 @@
#include <debug.h>
#include <sys/types.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>
#include "chip.h"

View file

@ -46,7 +46,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -46,7 +46,7 @@
#include <debug.h>
#include <nuttx/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <arch/board/board.h>

View file

@ -47,7 +47,7 @@
#include <nuttx/sensors/qencoder.h>
#include <arch/board/board.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#ifdef CONFIG_BUTTONS
# include <nuttx/input/buttons.h>

View file

@ -89,17 +89,6 @@ config ARCH_HAVE_PWM_MULTICHAN
bool
default n
menuconfig PWM
bool "PWM Driver Support"
default n
---help---
This selection enables building of the "upper-half" PWM driver.
See include/nuttx/drivers/pwm.h for further PWM driver information.
if PWM
source drivers/pwm/Kconfig
endif # PWM
config ARCH_HAVE_I2CRESET
bool
default n

View file

@ -68,7 +68,6 @@ include eeprom$(DELIM)Make.defs
include net$(DELIM)Make.defs
include pipes$(DELIM)Make.defs
include power$(DELIM)Make.defs
include pwm$(DELIM)Make.defs
include sensors$(DELIM)Make.defs
include serial$(DELIM)Make.defs
include spi$(DELIM)Make.defs

View file

@ -132,7 +132,7 @@ power/
pwm/
Provides the "upper half" of a pulse width modulation (PWM) driver.
The "lower half" of the PWM driver is provided by device-specific
logic. See include/nuttx/drivers/pwm.h for usage information.
logic. See include/nuttx/timers/pwm.h for usage information.
sensors/
Drivers for various sensors. A sensor driver differs little from

View file

@ -62,7 +62,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>
#include <nuttx/arch.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <nuttx/timers/oneshot.h>
#include <nuttx/audio/tone.h>

View file

@ -55,7 +55,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>
#include <nuttx/arch.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <nuttx/leds/rgbled.h>
#include <arch/irq.h>

View file

@ -1,38 +0,0 @@
#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
if PWM
config PWM_PULSECOUNT
bool "PWM Pulse Count Support"
default n
depends on ARCH_HAVE_PWM_PULSECOUNT
---help---
Some hardware will support generation of a fixed number of pulses.
This might be used, for example to support a stepper motor. If the
hardware will support a fixed pulse count, then this configuration
should be set to enable the capability.
config PWM_MULTICHAN
bool "PWM Multiple Output Channel Support"
default n
depends on ARCH_HAVE_PWM_MULTICHAN
depends on !PWM_PULSECOUNT
---help---
Enables support for multiple output channels per timer.
if PWM_MULTICHAN
config PWM_NCHANNELS
int "Number of Output Channels Per Timer"
default 1
range 1 6
---help---
Specifies the number of output channels per timer. Each timer
may support fewer output channels than this value.
endif # PWM_MULTICHAN
endif # PWM

View file

@ -1,47 +0,0 @@
############################################################################
# drivers/pwm/Make.defs
#
# Copyright (C) 2017 Pinecone Inc. All rights reserved.
# Author: Xiang Xiao <xiaoxiang@pinecone.net>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
# Don't build anything if there is no PWM support
ifeq ($(CONFIG_PWM),y)
CSRCS += pwm.c
# Include PWM device driver build support
DEPPATH += --dep-path pwm
VPATH += :pwm
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)pwm}
endif

View file

@ -5,6 +5,46 @@
menu "Timer Driver Support"
config PWM
bool "PWM Driver Support"
default n
---help---
This selection enables building of the "upper-half" PWM driver.
See include/nuttx/timers/pwm.h for further PWM driver information.
if PWM
config PWM_PULSECOUNT
bool "PWM Pulse Count Support"
default n
depends on ARCH_HAVE_PWM_PULSECOUNT
---help---
Some hardware will support generation of a fixed number of pulses.
This might be used, for example to support a stepper motor. If the
hardware will support a fixed pulse count, then this configuration
should be set to enable the capability.
config PWM_MULTICHAN
bool "PWM Multiple Output Channel Support"
default n
depends on ARCH_HAVE_PWM_MULTICHAN
depends on !PWM_PULSECOUNT
---help---
Enables support for multiple output channels per timer.
if PWM_MULTICHAN
config PWM_NCHANNELS
int "Number of Output Channels Per Timer"
default 1
range 1 6
---help---
Specifies the number of output channels per timer. Each timer
may support fewer output channels than this value.
endif # PWM_MULTICHAN
endif # PWM
config TIMER
bool "Timer Support"
default n

View file

@ -105,6 +105,12 @@ ifeq ($(CONFIG_TIMERS_CS2100CP),y)
TMRVPATH = :timers
endif
ifeq ($(CONFIG_PWM),y)
CSRCS += pwm.c
TMRDEPPATH = --dep-path timers
TMRVPATH = :timers
endif
# Include timer build support (if any were selected)
DEPPATH += $(TMRDEPPATH)

View file

@ -1,5 +1,5 @@
/****************************************************************************
* drivers/pwm/pwm.c
* drivers/timers/pwm.c
*
* Copyright (C) 2011-2013, 2016-2017 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@ -55,7 +55,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/semaphore.h>
#include <nuttx/fs/fs.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <nuttx/irq.h>

View file

@ -45,7 +45,7 @@
#include <fixedmath.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <nuttx/fs/ioctl.h>
#ifdef CONFIG_AUDIO_TONE

View file

@ -294,7 +294,7 @@
#define _ANIOCVALID(c) (_IOC_TYPE(c)==_ANIOCBASE)
#define _ANIOC(nr) _IOC(_ANIOCBASE,nr)
/* NuttX PWM ioctl definitions (see nuttx/drivers/pwm.h) ********************/
/* NuttX PWM ioctl definitions (see nuttx/timers/pwm.h) *********************/
#define _PWMIOCVALID(c) (_IOC_TYPE(c)==_PWMIOCBASE)
#define _PWMIOC(nr) _IOC(_PWMIOCBASE,nr)

View file

@ -45,7 +45,7 @@
#include <fixedmath.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/timers/pwm.h>
#include <nuttx/fs/ioctl.h>
#ifdef CONFIG_RGBLED

View file

@ -1,5 +1,5 @@
/****************************************************************************
* include/nuttx/drivers/pwm.h
* include/nuttx/timers/pwm.h
*
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>