summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrasad Konnur2019-09-24 03:57:59 -0500
committerPrasad Konnur2019-09-25 04:10:41 -0500
commit8ed31c2d8188f2a7f117866e6778f6ebf48fdfea (patch)
tree630a9ee7de8157fbba8eaf75b4d180f47769e412
parentc9676c773ae6034a7a4af6caf451e58dfa2b442a (diff)
downloadosal-REL.PDK.J7.01.00.00.01.tar.gz
osal-REL.PDK.J7.01.00.00.01.tar.xz
osal-REL.PDK.J7.01.00.00.01.zip
Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
-rwxr-xr-x[-rw-r--r--]EventCombinerP.h3
-rwxr-xr-x[-rw-r--r--]RegisterIntr.h3
-rwxr-xr-x[-rw-r--r--]arch/core/c6x/Arch_util.c10
-rwxr-xr-x[-rw-r--r--]arch/core/c7x/Arch_util.c2
-rwxr-xr-x[-rw-r--r--]src/nonos/EventCombinerP_nonos.c2
-rwxr-xr-x[-rw-r--r--]src/nonos/HwiP_nonos.c2
-rwxr-xr-xsrc/nonos/RegisterIntr_nonos.c12
-rwxr-xr-x[-rw-r--r--]src/nonos/SemaphoreP_nonos.c2
-rwxr-xr-x[-rw-r--r--]src/nonos/timer/v1/TimerP_nonos.c6
-rwxr-xr-x[-rw-r--r--]src/tirtos/EventCombinerP_tirtos.c4
-rwxr-xr-x[-rw-r--r--]src/tirtos/EventP_tirtos.c3
-rwxr-xr-x[-rw-r--r--]src/tirtos/HwiP_tirtos.c8
-rwxr-xr-xsrc/tirtos/RegisterIntr_tirtos.c12
-rwxr-xr-x[-rw-r--r--]src/tirtos/SemaphoreP_tirtos.c6
-rwxr-xr-x[-rw-r--r--]src/tirtos/TaskP_tirtos.c2
-rwxr-xr-x[-rw-r--r--]src/tirtos/TimerP_tirtos.c6
16 files changed, 43 insertions, 40 deletions
diff --git a/EventCombinerP.h b/EventCombinerP.h
index bdd1051..195419b 100644..100755
--- a/EventCombinerP.h
+++ b/EventCombinerP.h
@@ -49,6 +49,7 @@ extern "C" {
49#include <stdbool.h> 49#include <stdbool.h>
50#include <stddef.h> 50#include <stddef.h>
51#include <ti/osal/HwiP.h> 51#include <ti/osal/HwiP.h>
52typedef void (*EventCombinerP_FuncPtr)(uint32_t);
52 53
53/*! 54/*!
54 * @brief Function to disable an event inside event combiner 55 * @brief Function to disable an event inside event combiner
@@ -77,7 +78,7 @@ int32_t EventCombinerP_enableEvent(uint32_t eventId);
77 * 78 *
78 * @param unmask Unmask the event 79 * @param unmask Unmask the event
79 */ 80 */
80int32_t EventCombinerP_dispatchPlug(uint32_t eventId, void (*eventIsrRoutine)(uint32_t arg),uintptr_t arg,bool unmask ); 81int32_t EventCombinerP_dispatchPlug(uint32_t eventId, EventCombinerP_FuncPtr eventIsrRoutine,uintptr_t arg,bool unmask );
81 82
82/*! 83/*!
83 * @brief Function to return the Hwi Handle corresponding to an event combiner group number 84 * @brief Function to return the Hwi Handle corresponding to an event combiner group number
diff --git a/RegisterIntr.h b/RegisterIntr.h
index e824618..60ad69b 100644..100755
--- a/RegisterIntr.h
+++ b/RegisterIntr.h
@@ -52,6 +52,7 @@ extern "C" {
52#include <stdint.h> 52#include <stdint.h>
53#include <stdbool.h> 53#include <stdbool.h>
54#include <stddef.h> 54#include <stddef.h>
55typedef void (*Osal_IsrRoutine)(uintptr_t arg);
55/*! 56/*!
56 * @brief Interrupt Configuration parameters for the corepac (c6x/a15/m5/a8/a9) 57 * @brief Interrupt Configuration parameters for the corepac (c6x/a15/m5/a8/a9)
57 */ 58 */
@@ -59,7 +60,7 @@ typedef struct {
59 char *name; /* Name of the instance for debugging purposes, could be set to NULL */ 60 char *name; /* Name of the instance for debugging purposes, could be set to NULL */
60 int32_t corepacEventNum; /* Event number going in to the corepac */ 61 int32_t corepacEventNum; /* Event number going in to the corepac */
61 int32_t intVecNum; /* Interrupt vector */ 62 int32_t intVecNum; /* Interrupt vector */
62 void (*isrRoutine)(uintptr_t arg); /* The ISR routine to hook the corepacEventNum to */ 63 Osal_IsrRoutine isrRoutine; /* The ISR routine to hook the corepacEventNum to */
63 uintptr_t arg; /* Argument to the ISR routine */ 64 uintptr_t arg; /* Argument to the ISR routine */
64 uint32_t priority; 65 uint32_t priority;
65 uint32_t triggerSensitivity; 66 uint32_t triggerSensitivity;
diff --git a/arch/core/c6x/Arch_util.c b/arch/core/c6x/Arch_util.c
index 931b0e0..55b7ccb 100644..100755
--- a/arch/core/c6x/Arch_util.c
+++ b/arch/core/c6x/Arch_util.c
@@ -105,7 +105,7 @@ void OsalArch_globalRestoreInterrupt (uintptr_t restoreValue)
105HwiP_Handle OsalArch_HwiPCreate(int32_t interruptNum, HwiP_Fxn hwiFxn, 105HwiP_Handle OsalArch_HwiPCreate(int32_t interruptNum, HwiP_Fxn hwiFxn,
106 const HwiP_Params *params) 106 const HwiP_Params *params)
107{ 107{
108 Hwi_Struct *hwi_handle = NULL_PTR; 108 Hwi_Struct *hwi_handle = (Hwi_Struct *) NULL_PTR;
109 CSL_IntcParam vectId; 109 CSL_IntcParam vectId;
110 110
111 uint32_t i; 111 uint32_t i;
@@ -178,16 +178,16 @@ HwiP_Handle OsalArch_HwiPCreate(int32_t interruptNum, HwiP_Fxn hwiFxn,
178 } 178 }
179 179
180 (void)CSL_intcGlobalNmiEnable(); 180 (void)CSL_intcGlobalNmiEnable();
181 (void)CSL_intcGlobalEnable(NULL_PTR); 181 (void)CSL_intcGlobalEnable((CSL_IntcGlobalEnableState *)NULL_PTR);
182 182
183 vectId = (CSL_IntcParam)interruptNum; 183 vectId = (CSL_IntcParam)interruptNum;
184 hwi_handle->handle = CSL_intcOpen (&hwi_handle->intcObj, (CSL_IntcEventId)params->evtId, &vectId, NULL_PTR); 184 hwi_handle->handle = CSL_intcOpen (&hwi_handle->intcObj, (CSL_IntcEventId)params->evtId, &vectId, (CSL_Status *) NULL_PTR);
185 185
186 if(hwi_handle->handle != NULL_PTR) 186 if(hwi_handle->handle != NULL_PTR)
187 { 187 {
188 CSL_IntcEventHandlerRecord evtHandler; 188 CSL_IntcEventHandlerRecord evtHandler;
189 evtHandler.handler = (CSL_IntcEventHandler)hwiFxn; 189 evtHandler.handler = (CSL_IntcEventHandler)hwiFxn;
190 evtHandler.arg = (CSL_IntcEventHandler) params->arg; 190 evtHandler.arg = (void *) params->arg;
191 191
192 (void)CSL_intcPlugEventHandler(hwi_handle->handle, &evtHandler); 192 (void)CSL_intcPlugEventHandler(hwi_handle->handle, &evtHandler);
193 (void)CSL_intcHwControl(hwi_handle->handle,CSL_INTC_CMD_EVTCLEAR,NULL_PTR); 193 (void)CSL_intcHwControl(hwi_handle->handle,CSL_INTC_CMD_EVTCLEAR,NULL_PTR);
@@ -247,7 +247,7 @@ HwiP_Status OsalArch_HwiPDelete(HwiP_Handle handle)
247HwiP_Handle OsalArch_getHandle(int32_t interruptNum) 247HwiP_Handle OsalArch_getHandle(int32_t interruptNum)
248{ 248{
249 uint32_t i; 249 uint32_t i;
250 Hwi_Struct *handle=NULL_PTR,*handle_temp; 250 Hwi_Struct *handle= (Hwi_Struct *) NULL_PTR, *handle_temp;
251 uintptr_t temp; 251 uintptr_t temp;
252 HwiP_nonOs *hwiPool; 252 HwiP_nonOs *hwiPool;
253 uint32_t maxHwi = 0; 253 uint32_t maxHwi = 0;
diff --git a/arch/core/c7x/Arch_util.c b/arch/core/c7x/Arch_util.c
index b6d0f5f..769dece 100644..100755
--- a/arch/core/c7x/Arch_util.c
+++ b/arch/core/c7x/Arch_util.c
@@ -225,7 +225,7 @@ HwiP_Status OsalArch_HwiPDelete(HwiP_Handle handle)
225 */ 225 */
226HwiP_Handle OsalArch_getHandle(int32_t interruptNum) 226HwiP_Handle OsalArch_getHandle(int32_t interruptNum)
227{ 227{
228 Hwi_Struct *handle=NULL_PTR; 228 Hwi_Struct *handle= (Hwi_Struct *) NULL_PTR;
229 return((HwiP_Handle)handle); 229 return((HwiP_Handle)handle);
230} 230}
231/* 231/*
diff --git a/src/nonos/EventCombinerP_nonos.c b/src/nonos/EventCombinerP_nonos.c
index dcdb9a6..c628111 100644..100755
--- a/src/nonos/EventCombinerP_nonos.c
+++ b/src/nonos/EventCombinerP_nonos.c
@@ -176,7 +176,7 @@ int32_t EventCombinerP_disableEvent(uint32_t eventNum)
176 176
177 Returns: OSAL_EVTCOMBINE_GROUPREG_SUCCESS 177 Returns: OSAL_EVTCOMBINE_GROUPREG_SUCCESS
178****************************************************************************/ 178****************************************************************************/
179int32_t EventCombinerP_dispatchPlug(uint32_t eventId, void (*eventIsrRoutine)(uint32_t),uintptr_t arg,bool unmask ) 179int32_t EventCombinerP_dispatchPlug(uint32_t eventId, EventCombinerP_FuncPtr eventIsrRoutine,uintptr_t arg,bool unmask )
180{ 180{
181 CSL_IntcObj intcObj; 181 CSL_IntcObj intcObj;
182 CSL_IntcHandle handleTemp=(CSL_IntcHandle)&intcObj; 182 CSL_IntcHandle handleTemp=(CSL_IntcHandle)&intcObj;
diff --git a/src/nonos/HwiP_nonos.c b/src/nonos/HwiP_nonos.c
index 80ac911..c419964 100644..100755
--- a/src/nonos/HwiP_nonos.c
+++ b/src/nonos/HwiP_nonos.c
@@ -139,7 +139,7 @@ int32_t HwiP_post(uint32_t interruptNum)
139 */ 139 */
140void HwiP_Params_init(HwiP_Params *params) 140void HwiP_Params_init(HwiP_Params *params)
141{ 141{
142 params->name = NULL_PTR; 142 params->name = (char *) NULL_PTR;
143 params->arg = 0; 143 params->arg = 0;
144 params->priority = HWIP_USE_DEFAULT_PRIORITY; 144 params->priority = HWIP_USE_DEFAULT_PRIORITY;
145 params->evtId = 0; 145 params->evtId = 0;
diff --git a/src/nonos/RegisterIntr_nonos.c b/src/nonos/RegisterIntr_nonos.c
index d881814..dff4191 100755
--- a/src/nonos/RegisterIntr_nonos.c
+++ b/src/nonos/RegisterIntr_nonos.c
@@ -58,10 +58,10 @@ void Osal_RegisterInterrupt_initParams(OsalRegisterIntrParams_t *interruptRegPar
58{ 58{
59 if(interruptRegParams!=NULL_PTR) { 59 if(interruptRegParams!=NULL_PTR) {
60 /* Corepac config */ 60 /* Corepac config */
61 interruptRegParams->corepacConfig.name=NULL_PTR; 61 interruptRegParams->corepacConfig.name= (char *) NULL_PTR;
62 interruptRegParams->corepacConfig.corepacEventNum=-1; 62 interruptRegParams->corepacConfig.corepacEventNum=-1;
63 interruptRegParams->corepacConfig.intVecNum=-1; 63 interruptRegParams->corepacConfig.intVecNum=-1;
64 interruptRegParams->corepacConfig.isrRoutine=NULL_PTR; 64 interruptRegParams->corepacConfig.isrRoutine=(void (*)(uintptr_t arg)) NULL_PTR;
65 interruptRegParams->corepacConfig.arg=(uintptr_t)0U; 65 interruptRegParams->corepacConfig.arg=(uintptr_t)0U;
66 interruptRegParams->corepacConfig.priority=0x20U; /* Default */ 66 interruptRegParams->corepacConfig.priority=0x20U; /* Default */
67#if defined (__ARM_ARCH_7A__) 67#if defined (__ARM_ARCH_7A__)
@@ -72,8 +72,8 @@ void Osal_RegisterInterrupt_initParams(OsalRegisterIntrParams_t *interruptRegPar
72 interruptRegParams->corepacConfig.triggerSensitivity = (uint32_t)OSAL_ARM_GIC_TRIG_TYPE_LEVEL; /* interrupt level triggered */ 72 interruptRegParams->corepacConfig.triggerSensitivity = (uint32_t)OSAL_ARM_GIC_TRIG_TYPE_LEVEL; /* interrupt level triggered */
73#endif 73#endif
74 /* SOC Mux Config */ 74 /* SOC Mux Config */
75 interruptRegParams->socMuxConfig.muxInParams=NULL_PTR; 75 interruptRegParams->socMuxConfig.muxInParams=(MuxIntcP_inParams *) NULL_PTR;
76 interruptRegParams->socMuxConfig.muxOutParams=NULL_PTR; 76 interruptRegParams->socMuxConfig.muxOutParams=(MuxIntcP_outParams *) NULL_PTR;
77 } 77 }
78 return; 78 return;
79} 79}
@@ -91,7 +91,7 @@ OsalInterruptRetCode_e Osal_RegisterInterrupt(OsalRegisterIntrParams_t *interrup
91 HwiP_Params hwiInputParams; 91 HwiP_Params hwiInputParams;
92 92
93 /* Program the corepac interrupt */ 93 /* Program the corepac interrupt */
94 if( (interruptRegParams->corepacConfig.isrRoutine ==NULL_PTR) || 94 if( (interruptRegParams->corepacConfig.isrRoutine == (void (*)(uintptr_t arg)) NULL_PTR) ||
95 (interruptRegParams->corepacConfig.corepacEventNum<0)) { 95 (interruptRegParams->corepacConfig.corepacEventNum<0)) {
96 ret=OSAL_INT_ERR_INVALID_PARAMS; 96 ret=OSAL_INT_ERR_INVALID_PARAMS;
97 } 97 }
@@ -212,7 +212,7 @@ OsalInterruptRetCode_e Osal_DeleteInterrupt(HwiP_Handle handle,int32_t corepacEv
212 hwi_eventId=(((Hwi_Struct *)handle)->handle)->eventId; 212 hwi_eventId=(((Hwi_Struct *)handle)->handle)->eventId;
213 if( (hwi_eventId > 0) && (hwi_eventId <4)) { 213 if( (hwi_eventId > 0) && (hwi_eventId <4)) {
214 /* This is event combiner, so do not destroy the hwi, but remove the dispatch table entry */ 214 /* This is event combiner, so do not destroy the hwi, but remove the dispatch table entry */
215 (void)EventCombinerP_dispatchPlug((uint32_t)corepacEventNum,NULL_PTR,0,(bool)false); 215 (void)EventCombinerP_dispatchPlug((uint32_t)corepacEventNum,(EventCombinerP_FuncPtr) NULL_PTR,0,(bool)false);
216 (void)EventCombinerP_disableEvent((uint32_t)corepacEventNum); 216 (void)EventCombinerP_disableEvent((uint32_t)corepacEventNum);
217 /* Return Success */ 217 /* Return Success */
218 } else { 218 } else {
diff --git a/src/nonos/SemaphoreP_nonos.c b/src/nonos/SemaphoreP_nonos.c
index d2a7bd7..ad077de 100644..100755
--- a/src/nonos/SemaphoreP_nonos.c
+++ b/src/nonos/SemaphoreP_nonos.c
@@ -199,7 +199,7 @@ void SemaphoreP_Params_init(SemaphoreP_Params *params)
199 OSAL_Assert((params == NULL_PTR)); 199 OSAL_Assert((params == NULL_PTR));
200 if(params!=NULL_PTR) { 200 if(params!=NULL_PTR) {
201 params->mode = SemaphoreP_Mode_COUNTING; 201 params->mode = SemaphoreP_Mode_COUNTING;
202 params->name = NULL_PTR; 202 params->name = (char *) NULL_PTR;
203 } 203 }
204} 204}
205 205
diff --git a/src/nonos/timer/v1/TimerP_nonos.c b/src/nonos/timer/v1/TimerP_nonos.c
index 162666e..74b032c 100644..100755
--- a/src/nonos/timer/v1/TimerP_nonos.c
+++ b/src/nonos/timer/v1/TimerP_nonos.c
@@ -554,7 +554,7 @@ static TimerP_Status TimerP_dmTimerInstanceInit(TimerP_Struct *timer, uint32_t i
554 /* Create the Hwi Funtion for the tick funtion */ 554 /* Create the Hwi Funtion for the tick funtion */
555 if (ret == TimerP_OK) 555 if (ret == TimerP_OK)
556 { 556 {
557 if (timer->tickFxn != NULL_PTR) 557 if (timer->tickFxn != (TimerP_Fxn) NULL_PTR)
558 { 558 {
559 intNum = timer->intNum; 559 intNum = timer->intNum;
560 /* Initialize with defaults */ 560 /* Initialize with defaults */
@@ -562,7 +562,7 @@ static TimerP_Status TimerP_dmTimerInstanceInit(TimerP_Struct *timer, uint32_t i
562 562
563 /* Populate the interrupt parameters */ 563 /* Populate the interrupt parameters */
564 interruptRegParams.corepacConfig.arg=(uintptr_t) timer; 564 interruptRegParams.corepacConfig.arg=(uintptr_t) timer;
565 interruptRegParams.corepacConfig.name=NULL_PTR; 565 interruptRegParams.corepacConfig.name=(char *) NULL_PTR;
566 interruptRegParams.corepacConfig.isrRoutine=TimerP_dmTimerStub; 566 interruptRegParams.corepacConfig.isrRoutine=TimerP_dmTimerStub;
567 567
568#if defined (__ARM_ARCH_7A__) || defined (__aarch64__) || defined (__TI_ARM_V7R4__) 568#if defined (__ARM_ARCH_7A__) || defined (__aarch64__) || defined (__TI_ARM_V7R4__)
@@ -624,7 +624,7 @@ void TimerP_Params_init(TimerP_Params *params)
624 params->extfreqLo = TimerP_USE_DEFAULT; 624 params->extfreqLo = TimerP_USE_DEFAULT;
625 params->intfreqHi = TimerP_USE_DEFAULT; 625 params->intfreqHi = TimerP_USE_DEFAULT;
626 params->intfreqLo = TimerP_USE_DEFAULT; 626 params->intfreqLo = TimerP_USE_DEFAULT;
627 params->name = NULL_PTR; 627 params->name = (char *) NULL_PTR;
628 params->period = 0; 628 params->period = 0;
629 params->runMode = (uint32_t)TimerP_RunMode_CONTINUOUS; 629 params->runMode = (uint32_t)TimerP_RunMode_CONTINUOUS;
630 params->startMode = (uint32_t)TimerP_StartMode_AUTO; 630 params->startMode = (uint32_t)TimerP_StartMode_AUTO;
diff --git a/src/tirtos/EventCombinerP_tirtos.c b/src/tirtos/EventCombinerP_tirtos.c
index 76e6c85..290d71b 100644..100755
--- a/src/tirtos/EventCombinerP_tirtos.c
+++ b/src/tirtos/EventCombinerP_tirtos.c
@@ -135,7 +135,7 @@ int32_t EventCombinerP_SingleRegisterInt(int32_t groupNum, int32_t intNum)
135 135
136 HwiP_Params_init(&hwiInputParams); 136 HwiP_Params_init(&hwiInputParams);
137 137
138 hwiInputParams.name = NULL_PTR; 138 hwiInputParams.name = (char *) NULL_PTR;
139 hwiInputParams.priority = 0x20U; 139 hwiInputParams.priority = 0x20U;
140 hwiInputParams.arg = (uintptr_t)groupNum; 140 hwiInputParams.arg = (uintptr_t)groupNum;
141 hwiInputParams.evtId = (uint32_t)groupNum; 141 hwiInputParams.evtId = (uint32_t)groupNum;
@@ -214,7 +214,7 @@ int32_t EventCombinerP_enableEvent(uint32_t eventNum)
214 214
215 Returns: OSAL_EVTCOMBINE_GROUPREG_SUCCESS 215 Returns: OSAL_EVTCOMBINE_GROUPREG_SUCCESS
216****************************************************************************/ 216****************************************************************************/
217int32_t EventCombinerP_dispatchPlug(uint32_t eventId, void (*eventIsrRoutine)(uint32_t),uintptr_t arg,bool unmask ) 217int32_t EventCombinerP_dispatchPlug(uint32_t eventId, EventCombinerP_FuncPtr eventIsrRoutine,uintptr_t arg,bool unmask )
218{ 218{
219 EventCombiner_dispatchPlug (eventId,(EventCombiner_FuncPtr)(eventIsrRoutine),arg,(uint16_t)((unmask==(bool)true)?1U:0U)); 219 EventCombiner_dispatchPlug (eventId,(EventCombiner_FuncPtr)(eventIsrRoutine),arg,(uint16_t)((unmask==(bool)true)?1U:0U));
220 return OSAL_EVTCOMBINE_GROUPREG_SUCCESS; 220 return OSAL_EVTCOMBINE_GROUPREG_SUCCESS;
diff --git a/src/tirtos/EventP_tirtos.c b/src/tirtos/EventP_tirtos.c
index 2fac64a..d4c5bfd 100644..100755
--- a/src/tirtos/EventP_tirtos.c
+++ b/src/tirtos/EventP_tirtos.c
@@ -35,6 +35,7 @@
35#include <ti/sysbios/knl/Event.h> 35#include <ti/sysbios/knl/Event.h>
36#include "EventP.h" 36#include "EventP.h"
37#include <xdc/runtime/Memory.h> 37#include <xdc/runtime/Memory.h>
38#include <xdc/runtime/Error.h>
38#include <ti/osal/src/tirtos/tirtos_config.h> 39#include <ti/osal/src/tirtos/tirtos_config.h>
39 40
40/* 41/*
@@ -47,7 +48,7 @@ EventP_Handle EventP_create(EventP_Params *params)
47 48
48 Event_Params_init(&eventParams); 49 Event_Params_init(&eventParams);
49 50
50 eventHandle = Event_create(&eventParams, NULL_PTR); 51 eventHandle = Event_create(&eventParams, (Error_Block *) NULL_PTR);
51 52
52 return ((EventP_Handle)eventHandle); 53 return ((EventP_Handle)eventHandle);
53} 54}
diff --git a/src/tirtos/HwiP_tirtos.c b/src/tirtos/HwiP_tirtos.c
index 4faaa74..faa1fae 100644..100755
--- a/src/tirtos/HwiP_tirtos.c
+++ b/src/tirtos/HwiP_tirtos.c
@@ -122,7 +122,7 @@ void HwiP_clearInterrupt(int32_t interruptNum)
122HwiP_Handle HwiP_create(int32_t interruptNum, HwiP_Fxn hwiFxn, 122HwiP_Handle HwiP_create(int32_t interruptNum, HwiP_Fxn hwiFxn,
123 const HwiP_Params *params) 123 const HwiP_Params *params)
124{ 124{
125 HwiP_tiRtos *handle = NULL_PTR; 125 HwiP_tiRtos *handle = (HwiP_tiRtos *) NULL_PTR;
126 Hwi_Params hwiParams; 126 Hwi_Params hwiParams;
127 Error_Block eb; 127 Error_Block eb;
128 uint32_t i; 128 uint32_t i;
@@ -185,7 +185,7 @@ HwiP_Handle HwiP_create(int32_t interruptNum, HwiP_Fxn hwiFxn,
185 185
186 if (params == NULL_PTR) 186 if (params == NULL_PTR)
187 { 187 {
188 Hwi_construct(&handle->hwi, interruptNum, (Hwi_FuncPtr)hwiFxn, NULL_PTR, &eb); 188 Hwi_construct(&handle->hwi, interruptNum, (Hwi_FuncPtr)hwiFxn, (Hwi_Params *) NULL_PTR, &eb);
189 } 189 }
190 else 190 else
191 { 191 {
@@ -261,7 +261,7 @@ HwiP_Handle HwiP_create(int32_t interruptNum, HwiP_Fxn hwiFxn,
261 { 261 {
262 /* Free the allocated memory and return null */ 262 /* Free the allocated memory and return null */
263 handle->used = FALSE; 263 handle->used = FALSE;
264 handle = NULL_PTR; 264 handle = (HwiP_tiRtos *) NULL_PTR;
265 } 265 }
266 } 266 }
267 } 267 }
@@ -334,7 +334,7 @@ void HwiP_enableInterrupt(int32_t interruptNum)
334 */ 334 */
335void HwiP_Params_init(HwiP_Params *params) 335void HwiP_Params_init(HwiP_Params *params)
336{ 336{
337 params->name = NULL_PTR; 337 params->name = (char *) NULL_PTR;
338 params->arg = 0; 338 params->arg = 0;
339 params->priority = HWIP_USE_DEFAULT_PRIORITY; 339 params->priority = HWIP_USE_DEFAULT_PRIORITY;
340 params->evtId = 0; 340 params->evtId = 0;
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);
diff --git a/src/tirtos/SemaphoreP_tirtos.c b/src/tirtos/SemaphoreP_tirtos.c
index f58bde4..9413636 100644..100755
--- a/src/tirtos/SemaphoreP_tirtos.c
+++ b/src/tirtos/SemaphoreP_tirtos.c
@@ -88,7 +88,7 @@ SemaphoreP_Handle SemaphoreP_create(uint32_t count,
88 const SemaphoreP_Params *params) 88 const SemaphoreP_Params *params)
89{ 89{
90 SemaphoreP_Handle ret_handle; 90 SemaphoreP_Handle ret_handle;
91 SemaphoreP_tiRtos *handle = NULL_PTR; 91 SemaphoreP_tiRtos *handle = (SemaphoreP_tiRtos *) NULL_PTR;
92 Semaphore_Params semaphoreParams; 92 Semaphore_Params semaphoreParams;
93 uint32_t i; 93 uint32_t i;
94 uintptr_t key; 94 uintptr_t key;
@@ -148,7 +148,7 @@ SemaphoreP_Handle SemaphoreP_create(uint32_t count,
148 else 148 else
149 { 149 {
150 if (params == NULL_PTR) { 150 if (params == NULL_PTR) {
151 Semaphore_construct(&handle->sem, (int32_t)count, NULL_PTR); 151 Semaphore_construct(&handle->sem, (int32_t)count, (Semaphore_Params *) NULL_PTR);
152 } 152 }
153 else { 153 else {
154 Semaphore_Params_init(&(semaphoreParams)); 154 Semaphore_Params_init(&(semaphoreParams));
@@ -210,7 +210,7 @@ void SemaphoreP_Params_init(SemaphoreP_Params *params)
210 210
211 if(params != NULL_PTR) { 211 if(params != NULL_PTR) {
212 params->mode = SemaphoreP_Mode_COUNTING; 212 params->mode = SemaphoreP_Mode_COUNTING;
213 params->name = NULL_PTR; 213 params->name = (char *) NULL_PTR;
214 } 214 }
215} 215}
216 216
diff --git a/src/tirtos/TaskP_tirtos.c b/src/tirtos/TaskP_tirtos.c
index 91c1adb..06406b4 100644..100755
--- a/src/tirtos/TaskP_tirtos.c
+++ b/src/tirtos/TaskP_tirtos.c
@@ -45,7 +45,7 @@ TaskP_Handle TaskP_create(void *taskfxn, const TaskP_Params *params)
45{ 45{
46 Task_Handle taskHandle; 46 Task_Handle taskHandle;
47 Task_Params taskParams; 47 Task_Params taskParams;
48 Error_Block *pErrBlk = NULL_PTR; 48 Error_Block *pErrBlk = (Error_Block *) NULL_PTR;
49 49
50 Task_Params_init(&taskParams); 50 Task_Params_init(&taskParams);
51 51
diff --git a/src/tirtos/TimerP_tirtos.c b/src/tirtos/TimerP_tirtos.c
index 1ba76d4..bfc94be 100644..100755
--- a/src/tirtos/TimerP_tirtos.c
+++ b/src/tirtos/TimerP_tirtos.c
@@ -88,7 +88,7 @@ void TimerP_Params_init(TimerP_Params *params)
88 params->arg = NULL_PTR; 88 params->arg = NULL_PTR;
89 params->extfreqHi = TimerP_USE_DEFAULT; 89 params->extfreqHi = TimerP_USE_DEFAULT;
90 params->extfreqLo = TimerP_USE_DEFAULT; 90 params->extfreqLo = TimerP_USE_DEFAULT;
91 params->name = NULL_PTR; 91 params->name = (char *) NULL_PTR;
92 params->period = 0; 92 params->period = 0;
93 params->runMode = (uint32_t)TimerP_RunMode_CONTINUOUS; 93 params->runMode = (uint32_t)TimerP_RunMode_CONTINUOUS;
94 params->startMode = (uint32_t)TimerP_StartMode_AUTO; 94 params->startMode = (uint32_t)TimerP_StartMode_AUTO;
@@ -111,7 +111,7 @@ TimerP_Handle TimerP_create(int32_t id,
111 TimerP_Fxn tickFxn, 111 TimerP_Fxn tickFxn,
112 const TimerP_Params *params) 112 const TimerP_Params *params)
113{ 113{
114 TimerP_tiRtos *handle = NULL_PTR; 114 TimerP_tiRtos *handle = (TimerP_tiRtos *) NULL_PTR;
115 Timer_Params timerParams; 115 Timer_Params timerParams;
116 Error_Block eb; 116 Error_Block eb;
117 uint32_t i; 117 uint32_t i;
@@ -151,7 +151,7 @@ TimerP_Handle TimerP_create(int32_t id,
151 { 151 {
152 if (params == NULL_PTR) 152 if (params == NULL_PTR)
153 { 153 {
154 Timer_construct(&(handle->timer), id, tickFxn, NULL_PTR, NULL_PTR); 154 Timer_construct(&(handle->timer), id, tickFxn, (Timer_Params *) NULL_PTR, (Error_Block *) NULL_PTR);
155 } 155 }
156 else 156 else
157 { 157 {