pwm.h moved from include/nuttx/ to include/nuttx/drivers.

This commit is contained in:
Gregory Nutt 2016-07-20 13:48:24 -06:00
parent ddcaa3d425
commit 1b9b3a7b47
41 changed files with 44 additions and 44 deletions

View File

@ -4439,7 +4439,7 @@ void board_autoled_off(int led);
</p>
<ul>
<li><b>Interface Definition</b>.
The header file for the NuttX PWM driver reside at <code>include/nuttx/pwm.h</code>.
The header file for the NuttX PWM driver reside at <code>include/nuttx/drivers/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

@ -47,7 +47,7 @@
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/pwm.h>
#include <nuttx/drivers/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/pwm.h.
* EFM32 timers. That interface is described in include/nuttx/drivers/pwm.h.
*/
/****************************************************************************

View File

@ -49,7 +49,7 @@
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/pwm.h>
#include <nuttx/drivers/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/pwm.h>
#include <nuttx/drivers/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/pwm.h>
#include <nuttx/drivers/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/pwm.h>
#include <nuttx/drivers/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/pwm.h>
#include <nuttx/drivers/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/pwm.h>
#include <nuttx/drivers/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/pwm.h>
#include <nuttx/drivers/pwm.h>
#include "chip/sam_pinmap.h"
#include <arch/board/board.h>

View File

@ -48,7 +48,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/pwm.h>
#include <nuttx/drivers/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/pwm.h.
* interface is described in include/nuttx/drivers/pwm.h.
*/
/************************************************************************************

View File

@ -48,7 +48,7 @@
#include <debug.h>
#include <nuttx/arch.h>
#include <nuttx/pwm.h>
#include <nuttx/drivers/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/pwm.h.
* interface is described in include/nuttx/drivers/pwm.h.
*/
/************************************************************************************

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -286,7 +286,7 @@ menuconfig PWM
default n
---help---
This selection enables building of the "upper-half" PWM driver.
See include/nuttx/pwm.h for further PWM driver information.
See include/nuttx/drivers/pwm.h for further PWM driver information.
if PWM

View File

@ -25,7 +25,7 @@ dev_null.c and dev_zero.c
pwm.c
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/pwm.h for usage information.
logic. See include/nuttx/drivers/pwm.h for usage information.
ramdisk.c
Can be used to set up a block of memory or (read-only) FLASH as

View File

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

View File

@ -58,7 +58,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>
#include <nuttx/arch.h>
#include <nuttx/pwm.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/irq.h>

View File

@ -1,5 +1,5 @@
/****************************************************************************
* include/nuttx/pwm.h
* include/nuttx/drivers/pwm.h
*
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __INCLUDE_NUTTX_PWM_H
#define __INCLUDE_NUTTX_PWM_H
#ifndef __INCLUDE_NUTTX_DRIVERS_PWM_H
#define __INCLUDE_NUTTX_DRIVERS_PWM_H
/* For the purposes of this driver, a PWM device is any device that generates
* periodic output pulses s of controlled frequency and pulse width. Such a
@ -316,4 +316,4 @@ void pwm_expired(FAR void *handle);
#endif
#endif /* CONFIG_PWM */
#endif /* __INCLUDE_NUTTX_PWM_H */
#endif /* __INCLUDE_NUTTX_DRIVERS_PWM_H */

View File

@ -251,7 +251,7 @@
* IN: None
* OUT: None */
/* NuttX PWM ioctl definitions (see nuttx/pwm.h) ****************************/
/* NuttX PWM ioctl definitions (see nuttx/drivers/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/pwm.h>
#include <nuttx/drivers/pwm.h>
#include <nuttx/fs/ioctl.h>
#ifdef CONFIG_RGBLED