summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrasad Konnur2019-09-16 06:06:33 -0500
committerPrasad Konnur2019-09-16 06:07:17 -0500
commitc7c81c753408be9dec3bfd9830ff861d9bff13a7 (patch)
treefe8d46124bbe667818a783abf2d788822d80e0e0 /RegisterIntr.h
parent1582f1b11fe43d8d97bb32505a09fbcccb28d99c (diff)
downloadosal-c7c81c753408be9dec3bfd9830ff861d9bff13a7.tar.gz
osal-c7c81c753408be9dec3bfd9830ff861d9bff13a7.tar.xz
osal-c7c81c753408be9dec3bfd9830ff861d9bff13a7.zip
misra c fixes
Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
Diffstat (limited to 'RegisterIntr.h')
-rw-r--r--RegisterIntr.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/RegisterIntr.h b/RegisterIntr.h
index e2b050d..4e86d44 100644
--- a/RegisterIntr.h
+++ b/RegisterIntr.h
@@ -88,17 +88,26 @@ typedef struct {
88 OsalRegisterIntParams_socmux_t socMuxConfig; 88 OsalRegisterIntParams_socmux_t socMuxConfig;
89} OsalRegisterIntrParams_t; 89} OsalRegisterIntrParams_t;
90 90
91/**
92 * \anchor OsalInterruptRetCode_e
93 * \name Osal Interrupt return Codes
94 * @{
95 */
91/*! 96/*!
92 * @brief Return error codes for Osal Interrupt functions 97 * @brief Return error codes for Osal Interrupt functions
93 */ 98 */
94typedef enum { 99typedef int32_t OsalInterruptRetCode_e;
95 OSAL_INT_SUCCESS=0, 100#define OSAL_INT_SUCCESS ((int32_t) 0)
96 OSAL_INT_ERR_INVALID_PARAMS =-1, /* Invalid input parameters */ 101/* Success return code */
97 OSAL_INT_ERR_HWICREATE=-2, /* Error while registering the Hwi object */ 102#define OSAL_INT_ERR_INVALID_PARAMS ((int32_t) -1)
98 OSAL_INT_ERR_EVENTCOMBINER_REG=-3, /* Error while registering the event combiner to the defaults */ 103/* Invalid input parameters */
99 OSAL_INT_ERR_DELETE=-4 /* Failed to delete a Interrupt handle. */ 104#define OSAL_INT_ERR_HWICREATE ((int32_t) -2)
100} OsalInterruptRetCode_e; 105/* Error while registering the Hwi object */
101 106#define OSAL_INT_ERR_EVENTCOMBINER_REG ((int32_t) -3)
107/* Error while registering the event combiner to the defaults */
108#define OSAL_INT_ERR_DELETE ((int32_t) -4)
109/* Failed to delete a Interrupt handle. */
110/* @} */
102 111
103void Osal_RegisterInterrupt_initParams(OsalRegisterIntrParams_t *interruptRegParams); 112void Osal_RegisterInterrupt_initParams(OsalRegisterIntrParams_t *interruptRegParams);
104/*! 113/*!