aboutsummaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-23 23:11:13 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-23 23:11:13 +0000
commit63f8c0a954ef61ee416e78ea55899bc322aa313b (patch)
tree9300f5860d154f7e0f8b86336a317a4fca7e5af4 /nuttx/arch
parent340a72b7cdfb3c1c79044f53decc055ee6c06f19 (diff)
downloadpx4-firmware-63f8c0a954ef61ee416e78ea55899bc322aa313b.tar.gz
px4-firmware-63f8c0a954ef61ee416e78ea55899bc322aa313b.tar.bz2
px4-firmware-63f8c0a954ef61ee416e78ea55899bc322aa313b.zip
Add option to used keyboard CODEC in apps/examples/keypadtest
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5554 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/arm/src/lpc43xx/lpc43_irq.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lpc43xx/lpc43_irq.c b/nuttx/arch/arm/src/lpc43xx/lpc43_irq.c
index aa0e4cf09..6f49b3e38 100644
--- a/nuttx/arch/arm/src/lpc43xx/lpc43_irq.c
+++ b/nuttx/arch/arm/src/lpc43xx/lpc43_irq.c
@@ -386,9 +386,12 @@ void up_irqinitialize(void)
lpc43_dumpnvic("initial", LPC43M4_IRQ_NIRQS);
- /* If a debugger is connected, try to prevent it from catching hardfaults */
+ /* If a debugger is connected, try to prevent it from catching hardfaults.
+ * If CONFIG_ARMV7M_USEBASEPRI, no hardfaults are expected in normal
+ * operation.
+ */
-#ifdef CONFIG_DEBUG
+#if defined(CONFIG_DEBUG) && !defined(CONFIG_ARMV7M_USEBASEPRI)
regval = getreg32(NVIC_DEMCR);
regval &= ~NVIC_DEMCR_VCHARDERR;
putreg32(regval, NVIC_DEMCR);