mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Rename LP11xx version of CONFIG_GPIO_IRQ to CONFIG_LPC11_GPIOIRQ
This commit is contained in:
@@ -237,7 +237,7 @@ config CAN_REGDEBUG
|
|||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
config GPIO_IRQ
|
config LPC11_GPIOIRQ
|
||||||
bool "GPIO interrupt support"
|
bool "GPIO interrupt support"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ ifeq ($(CONFIG_BUILD_PROTECTED),y)
|
|||||||
CHIP_CSRCS += lpc11_userspace.c
|
CHIP_CSRCS += lpc11_userspace.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_GPIO_IRQ),y)
|
ifeq ($(CONFIG_LPC11_GPIOIRQ),y)
|
||||||
CHIP_CSRCS += lpc11_gpioint.c
|
CHIP_CSRCS += lpc11_gpioint.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
* actually set up to interrupt until the interrupt is enabled.
|
* actually set up to interrupt until the interrupt is enabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_GPIO_IRQ
|
#ifdef CONFIG_LPC11_GPIOIRQ
|
||||||
uint64_t g_intedge0;
|
uint64_t g_intedge0;
|
||||||
uint64_t g_intedge2;
|
uint64_t g_intedge2;
|
||||||
#endif
|
#endif
|
||||||
@@ -295,7 +295,7 @@ static int lpc11_pullup(lpc11_pinset_t cfgset, unsigned int port,
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_GPIO_IRQ
|
#ifdef CONFIG_LPC11_GPIOIRQ
|
||||||
static void lpc11_setintedge(unsigned int port, unsigned int pin,
|
static void lpc11_setintedge(unsigned int port, unsigned int pin,
|
||||||
unsigned int value)
|
unsigned int value)
|
||||||
{
|
{
|
||||||
@@ -323,7 +323,7 @@ static void lpc11_setintedge(unsigned int port, unsigned int pin,
|
|||||||
*intedge &= ~((uint64_t)3 << shift);
|
*intedge &= ~((uint64_t)3 << shift);
|
||||||
*intedge |= ((uint64_t)value << shift);
|
*intedge |= ((uint64_t)value << shift);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_GPIO_IRQ */
|
#endif /* CONFIG_LPC11_GPIOIRQ */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: lpc11_setopendrain
|
* Name: lpc11_setopendrain
|
||||||
@@ -453,7 +453,7 @@ static inline int lpc11_configinput(lpc11_pinset_t cfgset, unsigned int port,
|
|||||||
|
|
||||||
/* Forget about any falling/rising edge interrupt enabled */
|
/* Forget about any falling/rising edge interrupt enabled */
|
||||||
|
|
||||||
#ifdef CONFIG_GPIO_IRQ
|
#ifdef CONFIG_LPC11_GPIOIRQ
|
||||||
lpc11_setintedge(port, pin, 0);
|
lpc11_setintedge(port, pin, 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -495,7 +495,7 @@ static inline int lpc11_configinterrupt(lpc11_pinset_t cfgset, unsigned int port
|
|||||||
/* Then just remember the rising/falling edge interrupt enabled */
|
/* Then just remember the rising/falling edge interrupt enabled */
|
||||||
|
|
||||||
DEBUGASSERT(port == 0 || port == 2);
|
DEBUGASSERT(port == 0 || port == 2);
|
||||||
#ifdef CONFIG_GPIO_IRQ
|
#ifdef CONFIG_LPC11_GPIOIRQ
|
||||||
lpc11_setintedge(port, pin, (cfgset & GPIO_EDGE_MASK) >> GPIO_EDGE_SHIFT);
|
lpc11_setintedge(port, pin, (cfgset & GPIO_EDGE_MASK) >> GPIO_EDGE_SHIFT);
|
||||||
#endif
|
#endif
|
||||||
return OK;
|
return OK;
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ extern "C"
|
|||||||
* lpc11_gpioint.c, and lpc11_gpiodbg.c
|
* lpc11_gpioint.c, and lpc11_gpiodbg.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_GPIO_IRQ
|
#ifdef CONFIG_LPC11_GPIOIRQ
|
||||||
EXTERN uint64_t g_intedge0;
|
EXTERN uint64_t g_intedge0;
|
||||||
EXTERN uint64_t g_intedge2;
|
EXTERN uint64_t g_intedge2;
|
||||||
#endif
|
#endif
|
||||||
@@ -108,7 +108,7 @@ EXTERN const uint32_t g_intbase[GPIO_NPORTS];
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_GPIO_IRQ
|
#ifdef CONFIG_LPC11_GPIOIRQ
|
||||||
void lpc11_gpioirqinitialize(void);
|
void lpc11_gpioirqinitialize(void);
|
||||||
#else
|
#else
|
||||||
# define lpc11_gpioirqinitialize()
|
# define lpc11_gpioirqinitialize()
|
||||||
@@ -152,7 +152,7 @@ bool lpc11_gpioread(lpc11_pinset_t pinset);
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_GPIO_IRQ
|
#ifdef CONFIG_LPC11_GPIOIRQ
|
||||||
void lpc11_gpioirqenable(int irq);
|
void lpc11_gpioirqenable(int irq);
|
||||||
#else
|
#else
|
||||||
# define lpc11_gpioirqenable(irq)
|
# define lpc11_gpioirqenable(irq)
|
||||||
@@ -166,7 +166,7 @@ void lpc11_gpioirqenable(int irq);
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_GPIO_IRQ
|
#ifdef CONFIG_LPC11_GPIOIRQ
|
||||||
void lpc11_gpioirqdisable(int irq);
|
void lpc11_gpioirqdisable(int irq);
|
||||||
#else
|
#else
|
||||||
# define lpc11_gpioirqdisable(irq)
|
# define lpc11_gpioirqdisable(irq)
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
#include "lpc11_gpio.h"
|
#include "lpc11_gpio.h"
|
||||||
|
|
||||||
#ifdef CONFIG_GPIO_IRQ
|
#ifdef CONFIG_LPC11_GPIOIRQ
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
@@ -543,5 +543,5 @@ void lpc11_gpioirqdisable(int irq)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_GPIO_IRQ */
|
#endif /* CONFIG_LPC11_GPIOIRQ */
|
||||||
|
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ void up_irqinitialize(void)
|
|||||||
* configured pin interrupts.
|
* configured pin interrupts.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_GPIO_IRQ
|
#ifdef CONFIG_LPC11_GPIOIRQ
|
||||||
lpc11_gpioirqinitialize();
|
lpc11_gpioirqinitialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ CONFIG_ARCH_HAVE_CMNVECTOR=y
|
|||||||
# CONFIG_ARMV6M_TOOLCHAIN_CODEREDL is not set
|
# CONFIG_ARMV6M_TOOLCHAIN_CODEREDL is not set
|
||||||
# CONFIG_ARMV6M_TOOLCHAIN_CODESOURCERYL is not set
|
# CONFIG_ARMV6M_TOOLCHAIN_CODESOURCERYL is not set
|
||||||
CONFIG_ARMV6M_TOOLCHAIN_GNU_EABIL=y
|
CONFIG_ARMV6M_TOOLCHAIN_GNU_EABIL=y
|
||||||
# CONFIG_GPIO_IRQ is not set
|
# CONFIG_LPC11_GPIOIRQ is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# LPC11xx Configuration Options
|
# LPC11xx Configuration Options
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ CONFIG_ARCH_HAVE_CMNVECTOR=y
|
|||||||
# CONFIG_ARMV6M_TOOLCHAIN_CODEREDL is not set
|
# CONFIG_ARMV6M_TOOLCHAIN_CODEREDL is not set
|
||||||
# CONFIG_ARMV6M_TOOLCHAIN_CODESOURCERYL is not set
|
# CONFIG_ARMV6M_TOOLCHAIN_CODESOURCERYL is not set
|
||||||
CONFIG_ARMV6M_TOOLCHAIN_GNU_EABIL=y
|
CONFIG_ARMV6M_TOOLCHAIN_GNU_EABIL=y
|
||||||
# CONFIG_GPIO_IRQ is not set
|
# CONFIG_LPC11_GPIOIRQ is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# LPC11xx Configuration Options
|
# LPC11xx Configuration Options
|
||||||
|
|||||||
@@ -147,7 +147,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define LPCXPRESSO_SD_CS (GPIO_OUTPUT | GPIO_VALUE_ONE | GPIO_PORT2 | GPIO_PIN2)
|
#define LPCXPRESSO_SD_CS (GPIO_OUTPUT | GPIO_VALUE_ONE | GPIO_PORT2 | GPIO_PIN2)
|
||||||
#ifdef CONFIG_GPIO_IRQ
|
#ifdef CONFIG_LPC11_GPIOIRQ
|
||||||
# define LPCXPRESSO_SD_CD (GPIO_INTBOTH | GPIO_PULLUP | GPIO_PORT2 | GPIO_PIN11)
|
# define LPCXPRESSO_SD_CD (GPIO_INTBOTH | GPIO_PULLUP | GPIO_PORT2 | GPIO_PIN11)
|
||||||
#else
|
#else
|
||||||
# define LPCXPRESSO_SD_CD (GPIO_INPUT | GPIO_PULLUP | GPIO_PORT2 | GPIO_PIN11)
|
# define LPCXPRESSO_SD_CD (GPIO_INPUT | GPIO_PULLUP | GPIO_PORT2 | GPIO_PIN11)
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define LPCXPRESSO_USB_CONNECT (GPIO_OUTPUT | GPIO_VALUE_ONE | GPIO_PORT0 | GPIO_PIN21)
|
#define LPCXPRESSO_USB_CONNECT (GPIO_OUTPUT | GPIO_VALUE_ONE | GPIO_PORT0 | GPIO_PIN21)
|
||||||
#ifdef CONFIG_GPIO_IRQ
|
#ifdef CONFIG_LPC11_GPIOIRQ
|
||||||
# define LPCXPRESSO_USB_VBUSSENSE (GPIO_INTBOTH | GPIO_PULLUP | GPIO_PORT0 | GPIO_PIN5)
|
# define LPCXPRESSO_USB_VBUSSENSE (GPIO_INTBOTH | GPIO_PULLUP | GPIO_PORT0 | GPIO_PIN5)
|
||||||
#else
|
#else
|
||||||
# define LPCXPRESSO_USB_VBUSSENSE (GPIO_INPUT | GPIO_PULLUP | GPIO_PORT0 | GPIO_PIN5)
|
# define LPCXPRESSO_USB_VBUSSENSE (GPIO_INPUT | GPIO_PULLUP | GPIO_PORT0 | GPIO_PIN5)
|
||||||
|
|||||||
Reference in New Issue
Block a user