Skip to content

Commit 278f05b

Browse files
authored
cy port api: fix styling
1 parent 24991a4 commit 278f05b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/cy_port_api.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,10 @@ void port_dir(port_t *obj, PinDirection dir)
6464
void port_write(port_t *obj, int value)
6565
{
6666
GPIO_PRT_Type *port_type = Cy_GPIO_PortToAddr(obj->port);
67-
if (obj->mask == 0xff)
68-
{
67+
if (obj->mask == 0xff) {
6968
// Optimization for when all pins on the port is used.
7069
port_type->OUT = value;
71-
}
72-
else
73-
{
70+
} else {
7471
port_type->OUT_SET = value & obj->mask;
7572
port_type->OUT_CLR = (~value) & obj->mask;
7673
}

0 commit comments

Comments
 (0)