drivers: fix gpio_mcux_lpc_port_set_masked_raw
Fixes gpio_mcux_lpc_port_set_masked_raw function inside gpio_mcux_lpc driver. Writing masked data is correctly done using device registers. Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
This commit is contained in:
parent
de4894ad8b
commit
801e2dba42
|
@ -143,7 +143,7 @@ static int gpio_mcux_lpc_port_set_masked_raw(const struct device *dev,
|
|||
|
||||
/* Writing 0 allows R+W, 1 disables the pin */
|
||||
gpio_base->MASK[port] = ~mask;
|
||||
gpio_base->PIN[port] = value;
|
||||
gpio_base->MPIN[port] = value;
|
||||
/* Enable back the pins, user won't assume pins remain masked*/
|
||||
gpio_base->MASK[port] = 0U;
|
||||
|
||||
|
|
Loading…
Reference in a new issue