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

Commit c9e052c

Browse files
auroraslbwopu-ot
authored andcommitted
Add nrf_ppi_fork_endpoint_setup
Signed-off-by: Sletnes Bjørlo, Aurora <[email protected]>
1 parent cc3f062 commit c9e052c

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/HW_models/NRF_PPI.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ void nrf_ppi_event(ppi_event_types_t event);
216216
void nrf_ppi_regw_sideeffects();
217217
void nrf_ppi_regw_sideeffects_TEP(int ch_nbr);
218218
void nrf_ppi_regw_sideeffects_EEP(int ch_nbr);
219+
void nrf_ppi_regw_sideeffects_FORK_TEP(int ch_nbr);
219220
void nrf_ppi_regw_sideeffects_TASKS_CHG_DIS(int i);
220221
void nrf_ppi_regw_sideeffects_CHENSET();
221222
void nrf_ppi_regw_sideeffects_CHENCLR();

src/nrfx/hal/nrf_ppi.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ void nrf_ppi_task_endpoint_setup(NRF_PPI_Type * p_reg,
4848
nrf_ppi_regw_sideeffects_TEP(channel);
4949
}
5050

51+
void nrf_ppi_fork_endpoint_setup(NRF_PPI_Type * p_reg,
52+
nrf_ppi_channel_t channel,
53+
uint32_t fork_tep)
54+
{
55+
p_reg->FORK[(uint32_t) channel].TEP = fork_tep;
56+
nrf_ppi_regw_sideeffects_FORK_TEP(channel);
57+
}
58+
5159
void nrf_ppi_group_disable(NRF_PPI_Type * p_reg, nrf_ppi_channel_group_t group)
5260
{
5361
p_reg->TASKS_CHG[(uint32_t) group].DIS = 1;

src/nrfx/hal/nrf_ppi.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ void nrf_ppi_event_endpoint_setup(NRF_PPI_Type * p_reg,
129129
void nrf_ppi_task_endpoint_setup(NRF_PPI_Type * p_reg,
130130
nrf_ppi_channel_t channel,
131131
uint32_t tep);
132+
void nrf_ppi_fork_endpoint_setup(NRF_PPI_Type * p_reg,
133+
nrf_ppi_channel_t channel,
134+
uint32_t fork_tep);
132135
void nrf_ppi_group_disable(NRF_PPI_Type * p_reg, nrf_ppi_channel_group_t group);
133136

134137
#ifdef __cplusplus

0 commit comments

Comments
 (0)