DPPI: On initialization, set all registers to their reset values

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-09-27 10:06:03 +02:00
parent 1472c343b2
commit 82ee9bdc09
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "bs_types.h"
#include "bs_tracing.h"
#include "bs_oswrap.h"
@ -107,6 +108,8 @@ static void nhw_dppi_init(void) {
static uint nhw_dppi_n_ch[NHW_DPPI_TOTAL_INST] = NHW_DPPI_N_CH;
static uint nhw_dppi_n_chg[NHW_DPPI_TOTAL_INST] = NHW_DPPI_N_CHG;
memset(NRF_DPPIC_regs, 0x0, sizeof(NRF_DPPIC_regs));
for (int i = 0; i < NHW_DPPI_TOTAL_INST; i ++) {
struct dppi_status *el = &nhw_dppi_st[i];