aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/LPC13xx
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-06-20 19:03:17 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-06-20 19:03:17 +0000
commit971454dea3437ff9e771f622a718c39e2b3090e1 (patch)
tree79b50fb03554fb2b8ae79c71a67836e6108f0d68 /os/hal/platforms/LPC13xx
parent2bae95e6cc8232de0002a5c410d0b165b5d7c8c2 (diff)
downloadChibiOS-971454dea3437ff9e771f622a718c39e2b3090e1.tar.gz
ChibiOS-971454dea3437ff9e771f622a718c39e2b3090e1.tar.bz2
ChibiOS-971454dea3437ff9e771f622a718c39e2b3090e1.zip
PAL driver implementations updated.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3065 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/LPC13xx')
-rw-r--r--os/hal/platforms/LPC13xx/pal_lld.c2
-rw-r--r--os/hal/platforms/LPC13xx/pal_lld.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/os/hal/platforms/LPC13xx/pal_lld.c b/os/hal/platforms/LPC13xx/pal_lld.c
index 6a66f1ead..719329160 100644
--- a/os/hal/platforms/LPC13xx/pal_lld.c
+++ b/os/hal/platforms/LPC13xx/pal_lld.c
@@ -89,7 +89,7 @@ void _pal_lld_setgroupmode(ioportid_t port,
ioportmask_t mask,
uint_fast8_t mode) {
- switch (mode & PAL_MODE_MASK) {
+ switch (mode) {
case PAL_MODE_RESET:
case PAL_MODE_INPUT:
port->DIR &= ~mask;
diff --git a/os/hal/platforms/LPC13xx/pal_lld.h b/os/hal/platforms/LPC13xx/pal_lld.h
index bbf4db0e8..1090ca2f5 100644
--- a/os/hal/platforms/LPC13xx/pal_lld.h
+++ b/os/hal/platforms/LPC13xx/pal_lld.h
@@ -94,6 +94,11 @@ typedef struct {
typedef uint32_t ioportmask_t;
/**
+ * @brief Digital I/O modes.
+ */
+typedef uint32_t iomode_t;
+
+/**
* @brief Port Identifier.
*/
typedef LPC_GPIO_TypeDef *ioportid_t;