mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
nrf52_ppi.c: fix incorrect implementation of group channel enable
This commit is contained in:
committed by
Mateusz Szafoni
parent
c51e383e08
commit
2168e60df6
@@ -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));
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user