Template: Move static out of signal handler definition
As some models will need to keep those in separate files Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
709f82bb69
commit
a880cd68c0
|
@ -81,9 +81,9 @@ static void nhw_AAR_eval_interrupt(uint inst) {
|
|||
&nhw_aar_irq_map[inst]);
|
||||
}
|
||||
|
||||
NHW_SIGNAL_EVENT_si(AAR, END)
|
||||
NHW_SIGNAL_EVENT_si(AAR, RESOLVED)
|
||||
NHW_SIGNAL_EVENT_si(AAR, NOTRESOLVED)
|
||||
static NHW_SIGNAL_EVENT_si(AAR, END)
|
||||
static NHW_SIGNAL_EVENT_si(AAR, RESOLVED)
|
||||
static NHW_SIGNAL_EVENT_si(AAR, NOTRESOLVED)
|
||||
|
||||
void nhw_AAR_TASK_START(void) {
|
||||
int n_irks;
|
||||
|
|
|
@ -82,9 +82,9 @@ static void nhw_CCM_eval_interrupt(uint inst) {
|
|||
&nhw_ccm_irq_map[inst]);
|
||||
}
|
||||
|
||||
NHW_SIGNAL_EVENT_si(CCM, ENDKSGEN)
|
||||
NHW_SIGNAL_EVENT_si(CCM, ENDCRYPT)
|
||||
//Unused so far in this model: NHW_SIGNAL_EVENT_si(CCM, ERROR)
|
||||
static NHW_SIGNAL_EVENT_si(CCM, ENDKSGEN)
|
||||
static NHW_SIGNAL_EVENT_si(CCM, ENDCRYPT)
|
||||
//Unused so far in this model: static NHW_SIGNAL_EVENT_si(CCM, ERROR)
|
||||
|
||||
static void signal_EVENTS_ENDKSGEN(void) {
|
||||
nhw_CCM_signal_EVENTS_ENDKSGEN(0);
|
||||
|
|
|
@ -97,8 +97,8 @@ static void nhw_ECB_eval_interrupt(uint inst) {
|
|||
&nhw_ecb_irq_map[inst]);
|
||||
}
|
||||
|
||||
NHW_SIGNAL_EVENT_si(ECB, ENDECB)
|
||||
NHW_SIGNAL_EVENT_si(ECB, ERRORECB)
|
||||
static NHW_SIGNAL_EVENT_si(ECB, ENDECB)
|
||||
static NHW_SIGNAL_EVENT_si(ECB, ERRORECB)
|
||||
|
||||
void nhw_ECB_TASK_STOPECB(void) {
|
||||
if (!ECB_Running) {
|
||||
|
|
|
@ -126,7 +126,7 @@ NHW_SIDEEFFECTS_INTCLR_si(RNG, NRF_RNG_regs., RNG_INTEN)
|
|||
|
||||
NHW_SIDEEFFECTS_EVENTS(RNG)
|
||||
|
||||
NHW_SIGNAL_EVENT_si(RNG, VALRDY)
|
||||
static NHW_SIGNAL_EVENT_si(RNG, VALRDY)
|
||||
|
||||
static void nhw_RNG_signal_VALRDY(uint periph_inst) {
|
||||
if (NRF_RNG_regs.SHORTS & RNG_SHORTS_VALRDY_STOP_Msk) {
|
||||
|
|
|
@ -147,7 +147,7 @@ NHW_SIDEEFFECTS_SUBSCRIBE_si(TEMP, START)
|
|||
NHW_SIDEEFFECTS_SUBSCRIBE_si(TEMP, STOP)
|
||||
#endif /* NHW_HAS_DPPI */
|
||||
|
||||
NHW_SIGNAL_EVENT_si(TEMP, DATARDY)
|
||||
static NHW_SIGNAL_EVENT_si(TEMP, DATARDY)
|
||||
|
||||
/**
|
||||
* Time has come when the temperature measurement is ready
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
* NOTE: Cannot be used for events with shortcuts
|
||||
*/
|
||||
#define NHW_SIGNAL_EVENT(peri, peri_regs, event) \
|
||||
static void nhw_##peri##_signal_EVENTS_##event(unsigned int inst) { \
|
||||
void nhw_##peri##_signal_EVENTS_##event(unsigned int inst) { \
|
||||
peri_regs EVENTS_##event = 1; \
|
||||
nhw_##peri##_eval_interrupt(inst); \
|
||||
_NHW_XPPI_EVENT(peri, peri_regs, inst, event); \
|
||||
|
|
Loading…
Reference in New Issue