diff options
author | marcoveeneman <marco-veeneman@hotmail.com> | 2018-03-01 23:13:01 +0100 |
---|---|---|
committer | marcoveeneman <marco-veeneman@hotmail.com> | 2018-03-01 23:13:01 +0100 |
commit | 927b3cf1b4e00ef1c0fc31fb46f2db1c909ecde8 (patch) | |
tree | 4bb2ee272ae6a0f852b20c35071b8c6c69858e82 | |
parent | cae865f0b9cab08d3613c81e2db1f760de0ee5f8 (diff) | |
download | ChibiOS-Contrib-927b3cf1b4e00ef1c0fc31fb46f2db1c909ecde8.tar.gz ChibiOS-Contrib-927b3cf1b4e00ef1c0fc31fb46f2db1c909ecde8.tar.bz2 ChibiOS-Contrib-927b3cf1b4e00ef1c0fc31fb46f2db1c909ecde8.zip |
Fixed bug in pal_lld_writepad implementation
-rw-r--r-- | os/hal/ports/TIVA/LLD/GPIO/hal_pal_lld.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/TIVA/LLD/GPIO/hal_pal_lld.h b/os/hal/ports/TIVA/LLD/GPIO/hal_pal_lld.h index d4b634d..50f37d5 100644 --- a/os/hal/ports/TIVA/LLD/GPIO/hal_pal_lld.h +++ b/os/hal/ports/TIVA/LLD/GPIO/hal_pal_lld.h @@ -631,7 +631,7 @@ typedef uint32_t ioportid_t; * @notapi */ #define pal_lld_writepad(port, pad, bit) \ - (HWREG((port) + (GPIO_O_DATA + ((1 << (pad)) << 2))) = (bit)) + (HWREG((port) + (GPIO_O_DATA + ((1 << (pad)) << 2))) = 1 << (bit)) /** * @brief Sets a pad logical state to @p PAL_HIGH. |