From 971454dea3437ff9e771f622a718c39e2b3090e1 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 20 Jun 2011 19:03:17 +0000 Subject: PAL driver implementations updated. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3065 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC11xx/pal_lld.c | 2 +- os/hal/platforms/LPC11xx/pal_lld.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'os/hal/platforms/LPC11xx') diff --git a/os/hal/platforms/LPC11xx/pal_lld.c b/os/hal/platforms/LPC11xx/pal_lld.c index 6ce6ba876..a78bf973f 100644 --- a/os/hal/platforms/LPC11xx/pal_lld.c +++ b/os/hal/platforms/LPC11xx/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/LPC11xx/pal_lld.h b/os/hal/platforms/LPC11xx/pal_lld.h index d60b4ef71..ef3f41a43 100644 --- a/os/hal/platforms/LPC11xx/pal_lld.h +++ b/os/hal/platforms/LPC11xx/pal_lld.h @@ -93,6 +93,11 @@ typedef struct { */ typedef uint32_t ioportmask_t; +/** + * @brief Digital I/O modes. + */ +typedef uint32_t iomode_t; + /** * @brief Port Identifier. */ -- cgit v1.2.3