]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/edma3_lld.git/blobdiff - packages/ti/sdo/edma3/rm/sample/src/platforms/sample_ti814x_m3video_cfg.c
Misra C fixes: TI-814x
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / rm / sample / src / platforms / sample_ti814x_m3video_cfg.c
index 6ac8914b8182ed2182d374a280e5d46490ed3951..822fdd4a66b86ede214389e14c935f97cdacfc30 100644 (file)
@@ -48,8 +48,15 @@ const uint32_t numEdma3Instances = NUM_EDMA3_INSTANCES;
 #define NUM_DSPS                                       1U
 const uint32_t numDsps = NUM_DSPS;
 
+int8_t*  getGlobalAddr(int8_t* addr);
+
+uint16_t isGblConfigRequired(uint32_t dspNum);
+
+/* Determine the processor id by reading DNUM register. */
+uint16_t determineProcId(void);
+
 /* Determine the processor id by reading DNUM register. */
-uint16_t determineProcId()
+uint16_t determineProcId(void)
        {
 #if 0
        volatile uint32_t *addr;
@@ -61,7 +68,7 @@ uint16_t determineProcId()
 
        return core_no;
 #endif
-       return 4;
+       return 4U;
        }
 
 int8_t*  getGlobalAddr(int8_t* addr)
@@ -73,7 +80,7 @@ uint16_t isGblConfigRequired(uint32_t dspNum)
        {
        (void) dspNum;
 
-       return 0;
+       return 0U;
        }
 
 /* Semaphore handles */