diff options
-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.
|