summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lpc313x/lpc313x_i2c.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-09-05 14:31:46 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-09-05 14:31:46 +0000
commit08f9be9b748dfa310b3150e0a931e3aa89c09eeb (patch)
treec2c02b16f2ac8dcdf0282138d82a6a1fc006d385 /nuttx/arch/arm/src/lpc313x/lpc313x_i2c.h
parentd9a124c4ea54ff065853f43a056670ecf14e523d (diff)
downloadpx4-nuttx-08f9be9b748dfa310b3150e0a931e3aa89c09eeb.tar.gz
px4-nuttx-08f9be9b748dfa310b3150e0a931e3aa89c09eeb.tar.bz2
px4-nuttx-08f9be9b748dfa310b3150e0a931e3aa89c09eeb.zip
APB0 and APB1 must be in same MMU section
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2921 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc313x/lpc313x_i2c.h')
-rwxr-xr-xnuttx/arch/arm/src/lpc313x/lpc313x_i2c.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/lpc313x/lpc313x_i2c.h b/nuttx/arch/arm/src/lpc313x/lpc313x_i2c.h
index 64044f948..81b9608df 100755
--- a/nuttx/arch/arm/src/lpc313x/lpc313x_i2c.h
+++ b/nuttx/arch/arm/src/lpc313x/lpc313x_i2c.h
@@ -1,7 +1,7 @@
/************************************************************************************************
* arch/arm/src/lpc313x/lpc313x_i2c.h
*
- * Copyright (C) 2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -49,11 +49,11 @@
/* I2C register base address offset into the APB1 domain ****************************************/
-#define LPC313X_I2C0_VBASE (LPC313X_APB1_VSECTION+LPC313X_APB1_I2C0_OFFSET)
-#define LPC313X_I2C0_PBASE (LPC313X_APB1_PSECTION+LPC313X_APB1_I2C0_OFFSET)
+#define LPC313X_I2C0_VBASE (LPC313X_APB1_VADDR+LPC313X_APB1_I2C0_OFFSET)
+#define LPC313X_I2C0_PBASE (LPC313X_APB1_PADDR+LPC313X_APB1_I2C0_OFFSET)
-#define LPC313X_I2C1_VBASE (LPC313X_APB1_VSECTION+LPC313X_APB1_I2C1_OFFSET)
-#define LPC313X_I2C1_PBASE (LPC313X_APB1_PSECTION+LPC313X_APB1_I2C1_OFFSET)
+#define LPC313X_I2C1_VBASE (LPC313X_APB1_VADDR+LPC313X_APB1_I2C1_OFFSET)
+#define LPC313X_I2C1_PBASE (LPC313X_APB1_PADDR+LPC313X_APB1_I2C1_OFFSET)
/* I2C register offsets (with respect to the I2C base) ******************************************/