mirror of https://github.com/ARMmbed/mbed-os.git
cy port api: fix styling
parent
24991a4577
commit
278f05bfb9
|
|
@ -64,13 +64,10 @@ void port_dir(port_t *obj, PinDirection dir)
|
|||
void port_write(port_t *obj, int value)
|
||||
{
|
||||
GPIO_PRT_Type *port_type = Cy_GPIO_PortToAddr(obj->port);
|
||||
if (obj->mask == 0xff)
|
||||
{
|
||||
if (obj->mask == 0xff) {
|
||||
// Optimization for when all pins on the port is used.
|
||||
port_type->OUT = value;
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
port_type->OUT_SET = value & obj->mask;
|
||||
port_type->OUT_CLR = (~value) & obj->mask;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue