mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
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:
committed by
Gregory Nutt
parent
fc250074b3
commit
68bbc8438c
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user