Skip to content

Commit

Permalink
nrfx: Fix dppic_ppib for Nonsecure
Browse files Browse the repository at this point in the history
The PPIB instances were hardcoded to use the secure peripheral.
Using the dppic_ppib helper from nonsecure lead to secure faults.

Remove the `_S` suffix to use the correct peripheral instance both
when building for secure and nonsecure.

Signed-off-by: Herman Berget <herman.berget@nordicsemi.no>
  • Loading branch information
hermabe authored and carlescufi committed Aug 6, 2024
1 parent bda16da commit 0b6040d
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,35 +65,35 @@ extern "C" {
{ \
{ \
.dppic = NRF_DPPIC00, \
.ppib = NRF_PPIB00_S, \
.ppib = NRF_PPIB00, \
}, \
{ \
.dppic = NRF_DPPIC00, \
.ppib = NRF_PPIB01_S, \
.ppib = NRF_PPIB01, \
}, \
{ \
.dppic = NRF_DPPIC10, \
.ppib = NRF_PPIB10_S, \
.ppib = NRF_PPIB10, \
}, \
{ \
.dppic = NRF_DPPIC10, \
.ppib = NRF_PPIB11_S, \
.ppib = NRF_PPIB11, \
}, \
{ \
.dppic = NRF_DPPIC20, \
.ppib = NRF_PPIB20_S, \
.ppib = NRF_PPIB20, \
}, \
{ \
.dppic = NRF_DPPIC20, \
.ppib = NRF_PPIB21_S, \
.ppib = NRF_PPIB21, \
}, \
{ \
.dppic = NRF_DPPIC20, \
.ppib = NRF_PPIB22_S, \
.ppib = NRF_PPIB22, \
}, \
{ \
.dppic = NRF_DPPIC30, \
.ppib = NRF_PPIB30_S, \
.ppib = NRF_PPIB30, \
}, \
}

Expand Down

0 comments on commit 0b6040d

Please sign in to comment.