Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Commit b8fbafd

Browse files
auroraslbwopu-ot
authored andcommitted
Changed NRF_CCM to p_reg in src/nrfx/hal/nrf_ccm.c
Signed-off-by: Sletnes Bjørlo, Aurora <[email protected]>
1 parent 746e77e commit b8fbafd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/nrfx/hal/nrf_ccm.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
void nrf_ccm_task_trigger(NRF_CCM_Type * p_reg, nrf_ccm_task_t task)
1313
{
1414
if ( task == NRF_CCM_TASK_KSGEN ) {
15-
NRF_CCM->TASKS_KSGEN = 1;
15+
p_reg->TASKS_KSGEN = 1;
1616
nrf_ccm_regw_sideeffects_TASKS_KSGEN();
1717
} else if ( task == NRF_CCM_TASK_STOP ) {
18-
NRF_CCM->TASKS_STOP = 1;
18+
p_reg->TASKS_STOP = 1;
1919
nrf_ccm_regw_sideeffects_TASKS_STOP();
2020
} else {
2121
bs_trace_error_line_time("Not supported task started in nrf_ccm\n");
@@ -24,13 +24,13 @@ void nrf_ccm_task_trigger(NRF_CCM_Type * p_reg, nrf_ccm_task_t task)
2424

2525
void nrf_ccm_int_enable(NRF_CCM_Type * p_reg, uint32_t mask)
2626
{
27-
NRF_CCM->INTENSET = mask;
27+
p_reg->INTENSET = mask;
2828
nrf_ccm_regw_sideeffects_INTENSET();
2929
}
3030

3131
void nrf_ccm_int_disable(NRF_CCM_Type * p_reg, uint32_t mask)
3232
{
33-
NRF_CCM->INTENCLR = mask;
33+
p_reg->INTENCLR = mask;
3434
nrf_ccm_regw_sideeffects_INTENCLR();
3535
}
3636

0 commit comments

Comments
 (0)