summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/tirtos/SwiP_tirtos.c')
-rwxr-xr-xsrc/tirtos/SwiP_tirtos.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/tirtos/SwiP_tirtos.c b/src/tirtos/SwiP_tirtos.c
index 6651592..209ca69 100755
--- a/src/tirtos/SwiP_tirtos.c
+++ b/src/tirtos/SwiP_tirtos.c
@@ -42,11 +42,13 @@
42#include <xdc/std.h> 42#include <xdc/std.h>
43#include <xdc/runtime/Error.h> 43#include <xdc/runtime/Error.h>
44#include <ti/sysbios/knl/Swi.h> 44#include <ti/sysbios/knl/Swi.h>
45#include <ti/osal/src/tirtos/tirtos_config.h>
46
45 47
46/* 48/*
47 * ======== SwiP_create ======== 49 * ======== SwiP_create ========
48 */ 50 */
49SwiP_Handle SwiP_create(SwiP_Fxn swiFxn, SwiP_Params *params) 51SwiP_Handle SwiP_create(SwiP_Fxn swiFxn, const SwiP_Params *params)
50{ 52{
51 Error_Block eb; 53 Error_Block eb;
52 Swi_Params swiParams; 54 Swi_Params swiParams;
@@ -70,7 +72,7 @@ SwiP_Status SwiP_delete(SwiP_Handle *pHandle)
70{ 72{
71 SwiP_Status status; 73 SwiP_Status status;
72 74
73 if (pHandle != NULL) 75 if (pHandle != NULL_PTR)
74 { 76 {
75 Swi_delete((Swi_Handle *)pHandle); 77 Swi_delete((Swi_Handle *)pHandle);
76 status = SwiP_OK; 78 status = SwiP_OK;
@@ -88,8 +90,8 @@ SwiP_Status SwiP_delete(SwiP_Handle *pHandle)
88 */ 90 */
89void SwiP_Params_init(SwiP_Params *params) 91void SwiP_Params_init(SwiP_Params *params)
90{ 92{
91 params->arg0 = (UArg)NULL; 93 params->arg0 = (uintptr_t)0U;
92 params->arg1 = (UArg)NULL; 94 params->arg1 = (uintptr_t)0U;
93} 95}
94 96
95/* 97/*
@@ -100,7 +102,7 @@ SwiP_Status SwiP_post(SwiP_Handle handle)
100{ 102{
101 SwiP_Status status; 103 SwiP_Status status;
102 104
103 if (handle != NULL) 105 if (handle != NULL_PTR)
104 { 106 {
105 Swi_post((Swi_Handle)handle); 107 Swi_post((Swi_Handle)handle);
106 status = SwiP_OK; 108 status = SwiP_OK;