Skip to content

Commit

Permalink
TEMP & ECB: Fix INTEN sideeffect prototypes
Browse files Browse the repository at this point in the history
This functions had been renamed, but the prototypes
stayed behind. Fix it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
  • Loading branch information
aescolar committed Sep 28, 2023
1 parent 50c2abe commit f459580
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/HW_models/NHW_AES_ECB.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
extern "C"{
#endif

void nhw_ecb_regw_sideeffects_INTENSET(void);
void nhw_ecb_regw_sideeffects_INTENCLEAR(void);
void nhw_ECB_regw_sideeffects_INTENSET(void);
void nhw_ECB_regw_sideeffects_INTENCLR(void);
void nhw_ECB_regw_sideeffects_TASKS_STARTECB(void);
void nhw_ECB_regw_sideeffects_TASKS_STOPECB(void);
void nhw_ECB_regw_sideeffects_SUBSCRIBE_STARTECB(unsigned int inst);
Expand Down
2 changes: 1 addition & 1 deletion src/HW_models/NHW_TEMP.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extern "C"{
void nhw_TEMP_regw_sideeffects_TASKS_START(void);
void nhw_TEMP_regw_sideeffects_TASKS_STOP(void);
void nhw_TEMP_regw_sideeffects_INTENSET(void);
void nhw_TEMP_regw_sideeffects_INTENCLEAR(void);
void nhw_TEMP_regw_sideeffects_INTENCLR(void);
void nhw_TEMP_TASK_START(void);
void nhw_TEMP_TASK_STOP(void);
void nhw_TEMP_regw_sideeffects_SUBSCRIBE_START(unsigned int inst);
Expand Down
4 changes: 2 additions & 2 deletions src/nrfx/hal/nrf_ecb.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ void nrf_ecb_task_trigger(NRF_ECB_Type * p_reg, nrf_ecb_task_t task)
void nrf_ecb_int_enable(NRF_ECB_Type * p_reg, uint32_t mask)
{
p_reg->INTENSET = mask;
nhw_ecb_regw_sideeffects_INTENSET();
nhw_ECB_regw_sideeffects_INTENSET();
}

void nrf_ecb_int_disable(NRF_ECB_Type * p_reg, uint32_t mask)
{
p_reg->INTENCLR = mask;
nhw_ecb_regw_sideeffects_INTENCLEAR();
nhw_ECB_regw_sideeffects_INTENCLR();
}

void nrf_ecb_event_clear(NRF_ECB_Type * p_reg, nrf_ecb_event_t event)
Expand Down
2 changes: 1 addition & 1 deletion src/nrfx/hal/nrf_temp.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void nrf_temp_int_enable(NRF_TEMP_Type * p_reg, uint32_t mask)
void nrf_temp_int_disable(NRF_TEMP_Type * p_reg, uint32_t mask)
{
NRF_TEMP_regs.INTENCLR = mask;
nhw_TEMP_regw_sideeffects_INTENCLEAR();
nhw_TEMP_regw_sideeffects_INTENCLR();
}

void nrf_temp_event_clear(NRF_TEMP_Type * p_reg, nrf_temp_event_t event)
Expand Down

0 comments on commit f459580

Please sign in to comment.