diff options
author | Fabio Utzig <utzig@utzig.org> | 2015-11-03 10:28:02 +0000 |
---|---|---|
committer | Fabio Utzig <utzig@utzig.org> | 2015-11-03 10:28:02 +0000 |
commit | ad4a9e2fe354d26a26fff80e3d0308fb1c5327cb (patch) | |
tree | 3db0e7c22819cd91fbe6e057b16cfda94163952b /os | |
parent | 8f44f19e28f12bbf3628064fb9ed4cb7637755b8 (diff) | |
download | ChibiOS-ad4a9e2fe354d26a26fff80e3d0308fb1c5327cb.tar.gz ChibiOS-ad4a9e2fe354d26a26fff80e3d0308fb1c5327cb.tar.bz2 ChibiOS-ad4a9e2fe354d26a26fff80e3d0308fb1c5327cb.zip |
[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
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/KINETIS/K20x/pal_lld.h | 12 |
1 files changed, 6 insertions, 6 deletions
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.
|