I have the following code. I need to add a second counter attached to the spi_end_event. The first counter "count_task" is working, but can you tell me how to get "count_task2" to also count on every spi_end_event? I'm unclear on how to get multiple tasks to occur on the same event.
uint32_t period_event = nrf_drv_timer_event_address_get(&m_timer1, NRF_TIMER_EVENT_COMPARE0);
uint32_t cs_task = nrfx_gpiote_out_task_addr_get(GPIO_SPI_CS);
uint32_t spi_start_task = nrf_drv_spi_start_task_get(&m_spi0);
APP_ERROR_CHECK(status);
APP_ERROR_CHECK(status);
uint32_t spi_end_event = nrf_drv_spi_end_event_get(&m_spi0);
uint32_t count_task = nrf_drv_timer_task_address_get(&m_timer2, NRF_TIMER_TASK_COUNT);
uint32_t count_task2 = nrf_drv_timer_task_address_get(&m_timer4, NRF_TIMER_TASK_COUNT);
APP_ERROR_CHECK(status);