Hello,
am using the NRF52-DK softdevice 6.0.0 and NRF SDK 15.0.
I am working with PPI, GPIOTE and 2 timers (called timer1 and timer2) on nrf52832
Through the COMPARE[0] event of a timer2 , I would like to stop the timer1 then Through the COMPARE[1] event of a timer2 , I would like to restart the timer1 with the use of the PPI.
Below my code for the stop parts only:
// Allocate the PPI channel err_code = nrfx_ppi_channel_alloc(&ppi_channel2); APP_ERROR_CHECK(err_code); // Assigning task and event endpoints so that the PPI channel will shut down timer1 on timer2 COMPARE[0] match. err_code = nrfx_ppi_channel_assign(ppi_channel2, nrfx_timer_event_address_get(&timer2, NRF_TIMER_EVENT_COMPARE0), ????); APP_ERROR_CHECK(err_code); // Enable the PPI channel err_code = nrfx_ppi_channel_enable(ppi_channel2); APP_ERROR_CHECK(err_code);
I do not know can I achieve that and what I have to write instead of the ????
Thanks for your help.