Fixed bug in pal_lld_writepad implementation

This commit is contained in:
marcoveeneman 2018-03-01 23:13:01 +01:00
parent cae865f0b9
commit 927b3cf1b4
1 changed files with 1 additions and 1 deletions

View File

@ -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.