aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authormarcoveeneman <marco-veeneman@hotmail.com>2018-03-01 23:13:01 +0100
committermarcoveeneman <marco-veeneman@hotmail.com>2018-03-01 23:13:01 +0100
commit927b3cf1b4e00ef1c0fc31fb46f2db1c909ecde8 (patch)
tree4bb2ee272ae6a0f852b20c35071b8c6c69858e82 /os/hal
parentcae865f0b9cab08d3613c81e2db1f760de0ee5f8 (diff)
downloadChibiOS-Contrib-927b3cf1b4e00ef1c0fc31fb46f2db1c909ecde8.tar.gz
ChibiOS-Contrib-927b3cf1b4e00ef1c0fc31fb46f2db1c909ecde8.tar.bz2
ChibiOS-Contrib-927b3cf1b4e00ef1c0fc31fb46f2db1c909ecde8.zip
Fixed bug in pal_lld_writepad implementation
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/TIVA/LLD/GPIO/hal_pal_lld.h2
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.