From ad4a9e2fe354d26a26fff80e3d0308fb1c5327cb Mon Sep 17 00:00:00 2001 From: Fabio Utzig Date: Tue, 3 Nov 2015 10:28:02 +0000 Subject: [KINETIS] Fixed usage of port set/clear registers git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8427 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/KINETIS/K20x/pal_lld.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'os') diff --git a/os/hal/ports/KINETIS/K20x/pal_lld.h b/os/hal/ports/KINETIS/K20x/pal_lld.h index e1ee001b3..242583a86 100644 --- a/os/hal/ports/KINETIS/K20x/pal_lld.h +++ b/os/hal/ports/KINETIS/K20x/pal_lld.h @@ -186,7 +186,7 @@ typedef struct { * * @notapi */ -#define pal_lld_setport(port, bits) (port)->PSOR |= (bits) +#define pal_lld_setport(port, bits) (port)->PSOR = (bits) /** * @brief Clears a bits mask on a I/O port. @@ -199,7 +199,7 @@ typedef struct { * * @notapi */ -#define pal_lld_clearport(port, bits) (port)->PCOR |= (bits) +#define pal_lld_clearport(port, bits) (port)->PCOR = (bits) /** * @brief Toggles a bits mask on a I/O port. @@ -212,7 +212,7 @@ typedef struct { * * @notapi */ -#define pal_lld_toggleport(port, bits) (port)->PTOR |= (bits) +#define pal_lld_toggleport(port, bits) (port)->PTOR = (bits) /** * @brief Reads a group of bits. @@ -305,7 +305,7 @@ typedef struct { * * @notapi */ -#define pal_lld_setpad(port, pad) (port)->PSOR |= ((uint32_t) 1 << (pad)) +#define pal_lld_setpad(port, pad) (port)->PSOR = ((uint32_t) 1 << (pad)) /** * @brief Clears a pad logical state to @p PAL_LOW. @@ -318,7 +318,7 @@ typedef struct { * * @notapi */ -#define pal_lld_clearpad(port, pad) (port)->PCOR |= ((uint32_t) 1 << (pad)) +#define pal_lld_clearpad(port, pad) (port)->PCOR = ((uint32_t) 1 << (pad)) /** * @brief Toggles a pad logical state. @@ -331,7 +331,7 @@ typedef struct { * * @notapi */ -#define pal_lld_togglepad(port, pad) (port)->PTOR |= ((uint32_t) 1 << (pad)) +#define pal_lld_togglepad(port, pad) (port)->PTOR = ((uint32_t) 1 << (pad)) /** * @brief Pad mode setup. -- cgit v1.2.3