mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 23:15:15 +00:00
nrf52_ppi.c: fix incorrect implementation of group channel enable
This commit is contained in:
parent
c51e383e08
commit
2168e60df6
1 changed files with 2 additions and 2 deletions
|
|
@ -117,8 +117,8 @@ void nrf52_ppi_grp_channel_enable(uint8_t group, uint8_t ch, bool enable)
|
|||
DEBUGASSERT(group < NRF52_PPI_NUM_GROUPS);
|
||||
DEBUGASSERT(ch < NRF52_PPI_NUM_CHANNELS);
|
||||
|
||||
modifyreg32(NRF52_PPI_CHG(group), (enable ? PPI_CHEN_CH(ch) : 0),
|
||||
(enable ? 0 : PPI_CHEN_CH(ch)));
|
||||
modifyreg32(NRF52_PPI_CHG(group), (enable ? 0 : PPI_CHEN_CH(ch)),
|
||||
(enable ? PPI_CHEN_CH(ch) : 0));
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue