nrf52_ppi.c: fix incorrect implementation of group channel enable

This commit is contained in:
Matias N
2020-08-22 17:17:40 -03:00
committed by Mateusz Szafoni
parent c51e383e08
commit 2168e60df6
+2 -2
View File
@@ -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));
}
/****************************************************************************