Fixed bug in pal_lld_writepad implementation
This commit is contained in:
parent
cae865f0b9
commit
927b3cf1b4
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue