diff options
Diffstat (limited to 'src/tirtos/RegisterIntr_tirtos.c')
-rwxr-xr-x | src/tirtos/RegisterIntr_tirtos.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tirtos/RegisterIntr_tirtos.c b/src/tirtos/RegisterIntr_tirtos.c index 0138fa0..5da24f7 100755 --- a/src/tirtos/RegisterIntr_tirtos.c +++ b/src/tirtos/RegisterIntr_tirtos.c | |||
@@ -82,10 +82,10 @@ void Osal_RegisterInterrupt_initParams(OsalRegisterIntrParams_t *interruptRegPar | |||
82 | { | 82 | { |
83 | if(interruptRegParams!=NULL_PTR) { | 83 | if(interruptRegParams!=NULL_PTR) { |
84 | /* Corepac config */ | 84 | /* Corepac config */ |
85 | interruptRegParams->corepacConfig.name=NULL_PTR; | 85 | interruptRegParams->corepacConfig.name=(char *) NULL_PTR; |
86 | interruptRegParams->corepacConfig.corepacEventNum=-1; | 86 | interruptRegParams->corepacConfig.corepacEventNum=-1; |
87 | interruptRegParams->corepacConfig.intVecNum=-1; | 87 | interruptRegParams->corepacConfig.intVecNum=-1; |
88 | interruptRegParams->corepacConfig.isrRoutine=NULL_PTR; | 88 | interruptRegParams->corepacConfig.isrRoutine=(Osal_IsrRoutine) NULL_PTR; |
89 | interruptRegParams->corepacConfig.arg=(uintptr_t)NULL_PTR; | 89 | interruptRegParams->corepacConfig.arg=(uintptr_t)NULL_PTR; |
90 | 90 | ||
91 | #ifdef __TI_ARM_V7R4__ | 91 | #ifdef __TI_ARM_V7R4__ |
@@ -107,8 +107,8 @@ void Osal_RegisterInterrupt_initParams(OsalRegisterIntrParams_t *interruptRegPar | |||
107 | #endif | 107 | #endif |
108 | 108 | ||
109 | /* SOC Mux Config */ | 109 | /* SOC Mux Config */ |
110 | interruptRegParams->socMuxConfig.muxInParams=NULL_PTR; | 110 | interruptRegParams->socMuxConfig.muxInParams=(MuxIntcP_inParams *) NULL_PTR; |
111 | interruptRegParams->socMuxConfig.muxOutParams=NULL_PTR; | 111 | interruptRegParams->socMuxConfig.muxOutParams=(MuxIntcP_outParams *) NULL_PTR; |
112 | } | 112 | } |
113 | return; | 113 | return; |
114 | } | 114 | } |
@@ -126,7 +126,7 @@ OsalInterruptRetCode_e Osal_RegisterInterrupt(OsalRegisterIntrParams_t *interrup | |||
126 | HwiP_Params hwiInputParams; | 126 | HwiP_Params hwiInputParams; |
127 | 127 | ||
128 | /* Program the corepac interrupt */ | 128 | /* Program the corepac interrupt */ |
129 | if( (interruptRegParams->corepacConfig.isrRoutine ==NULL_PTR) || | 129 | if( (interruptRegParams->corepacConfig.isrRoutine == (Osal_IsrRoutine) NULL_PTR) || |
130 | (interruptRegParams->corepacConfig.corepacEventNum<0)) { | 130 | (interruptRegParams->corepacConfig.corepacEventNum<0)) { |
131 | ret=OSAL_INT_ERR_INVALID_PARAMS; | 131 | ret=OSAL_INT_ERR_INVALID_PARAMS; |
132 | } | 132 | } |
@@ -223,7 +223,7 @@ OsalInterruptRetCode_e Osal_DeleteInterrupt(HwiP_Handle handle,int32_t corepacEv | |||
223 | isrFunction=Hwi_getFunc((Hwi_Object *)handle,&isrArg); | 223 | isrFunction=Hwi_getFunc((Hwi_Object *)handle,&isrArg); |
224 | if(isrFunction==&EventCombiner_dispatch) { | 224 | if(isrFunction==&EventCombiner_dispatch) { |
225 | /* This is event combiner, so do not destroy the hwi, but remove the dispatch table entry */ | 225 | /* This is event combiner, so do not destroy the hwi, but remove the dispatch table entry */ |
226 | (void)EventCombinerP_dispatchPlug((uint32_t)corepacEventNum,NULL_PTR,0,(bool)FALSE); | 226 | (void)EventCombinerP_dispatchPlug((uint32_t)corepacEventNum,(EventCombinerP_FuncPtr) NULL_PTR,0,(bool)FALSE); |
227 | 227 | ||
228 | /* Disable the event so that the interrupt is masked and NULL_PTR function is not called */ | 228 | /* Disable the event so that the interrupt is masked and NULL_PTR function is not called */ |
229 | (void)EventCombinerP_disableEvent((uint32_t)corepacEventNum); | 229 | (void)EventCombinerP_disableEvent((uint32_t)corepacEventNum); |