Misra C fixes:
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / rm / sample / bios6_edma3_rm_sample.h
index 86b724ec389c7164f5b2359f9d48d5e041f0584b..816a108e5cc73c31d646669c706902f2db2c4ae9 100755 (executable)
@@ -36,8 +36,8 @@
  *
 */
 
-#ifndef _BIOS6_EDMA3_RM_SAMPLE_H_
-#define _BIOS6_EDMA3_RM_SAMPLE_H_
+#ifndef BIOS6_EDMA3_RM_SAMPLE_H_
+#define BIOS6_EDMA3_RM_SAMPLE_H_
 
 #include <ti/sysbios/knl/Semaphore.h>
 
@@ -48,11 +48,13 @@ extern "C" {
 #endif
 
 /* To enable debug traces in the EDMA3 sample app */
-#define EDMA3_DEBUG_PRINT
+/* Nowhere this macro is used, undefined to remove Misra C warning */
+
+/* #define EDMA3_DEBUG_PRINT  */
 
 #ifdef EDMA3_DEBUG_PRINT
 #include <stdio.h>
-#define EDMA3_DEBUG_PRINTF           printf
+#define EDMA3_DEBUG_PRINTF printf
 #endif /* EDMA3_DEBUG_PRINT */
 
 /**
@@ -83,7 +85,7 @@ extern "C" {
  *  \return EDMA3_RM_Handle: If successfully opened, the API will return the
  *                            associated RM's instance handle.
  */
-EDMA3_RM_Handle edma3init (unsigned int edma3Id, EDMA3_RM_Result *errorCode);
+EDMA3_RM_Handle edma3init (uint32_t edma3Id, EDMA3_RM_Result *errorCode);
 
 /**
  * \brief   EDMA3 De-initialization
@@ -101,7 +103,7 @@ EDMA3_RM_Handle edma3init (unsigned int edma3Id, EDMA3_RM_Result *errorCode);
  *                                                                     edma3init().
  *  \return  EDMA3_RM_SOK if success, else error code
  */
-EDMA3_RM_Result edma3deinit (unsigned int edma3Id, EDMA3_RM_Handle hEdma);
+EDMA3_RM_Result edma3deinit (uint32_t edma3Id, EDMA3_RM_Handle hEdma);
 
 /**
  * Counting Semaphore related functions (OS dependent) should be
@@ -122,7 +124,7 @@ EDMA3_RM_Result edma3deinit (unsigned int edma3Id, EDMA3_RM_Handle hEdma);
  *      semaphore
  * \return  EDMA3_RM_SOK if succesful, else a suitable error code.
  */
-EDMA3_RM_Result edma3OsSemCreate(int initVal,
+EDMA3_RM_Result edma3OsSemCreate(int32_t initVal,
                                                        const Semaphore_Params *semParams,
                                EDMA3_OS_Sem_Handle *hSem);