Timer0 interrupt only firing once on nRF52832 using nrfx sdk - how to re-enable in ISR?

Hi,

With the attached code, the timer0_event_handler() is only called once - is there something else I need to do in the ISR or at initialisation-time to ensure that it fires repeatedly?   


Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#define NRFX_PPI_ENABLED 1
#include "sdk_config.h"
#include "nrf52.h"
#include "system_nrf52.h"
#define PIN_RED_LED 14
#define PIN_GREEN_LED 16
#define PIN_BLUE_LED 15
#include <stdint.h>
#include "app_error.h"
#include "nrfx_gpiote.h"
#include "nrfx_ppi.h"
#include "nrfx_clock.h"
#include "nrfx_rtc.h"
#include "nrfx_timer.h"
#include "nrf_log.h"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX