diff options
author | Stephane D'Alu <sdalu@sdalu.com> | 2016-07-10 19:13:29 +0200 |
---|---|---|
committer | Stephane D'Alu <sdalu@sdalu.com> | 2016-07-10 19:13:29 +0200 |
commit | 5d1b4d1d776f4e32b5f238a977172800417727bf (patch) | |
tree | 3b94e04f0acf9aab1fe31f9cae7e5c1b5d4ba3e2 /os | |
parent | da4f05804d4b6218680751fc3154007f3d6e1b61 (diff) | |
download | ChibiOS-Contrib-5d1b4d1d776f4e32b5f238a977172800417727bf.tar.gz ChibiOS-Contrib-5d1b4d1d776f4e32b5f238a977172800417727bf.tar.bz2 ChibiOS-Contrib-5d1b4d1d776f4e32b5f238a977172800417727bf.zip |
Use OUT instead of IN to when toggling pad
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/NRF5/LLD/hal_pal_lld.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/NRF5/LLD/hal_pal_lld.h b/os/hal/ports/NRF5/LLD/hal_pal_lld.h index 9eb333d..34caa7e 100644 --- a/os/hal/ports/NRF5/LLD/hal_pal_lld.h +++ b/os/hal/ports/NRF5/LLD/hal_pal_lld.h @@ -305,7 +305,7 @@ typedef NRF_GPIO_Type *ioportid_t; */
#define pal_lld_togglepad(port, pad) \
do { \
- uint8_t bit = (IOPORT1->IN >> (pad)) & 1; \
+ uint8_t bit = (IOPORT1->OUT >> (pad)) & 1; \
if (bit) \
IOPORT1->OUTCLR = 1 << (pad); \
else \
|