Skip to content

Commit

Permalink
Fixed wrong port pin
Browse files Browse the repository at this point in the history
  • Loading branch information
hnhoan committed Feb 26, 2019
1 parent 8b5539d commit 1c9614f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ARM/Nordic/include/iopinctrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static inline __attribute__((always_inline)) void IOPinToggle(int PortNo, int Pi

#endif

reg->OUT = NRF_GPIO->OUT ^ (1 << PinNo);
reg->OUT ^= (1 << PinNo);
}

/**
Expand Down

0 comments on commit 1c9614f

Please sign in to comment.