From: Sam Nelson Date: Mon, 22 May 2017 19:35:34 +0000 (-0400) Subject: host_bios: Update BigData buffer variables X-Git-Tag: 01.01.00.00~7 X-Git-Url: https://git.ti.com/gitweb?p=processor-sdk%2Fbig-data-ipc-examples.git;a=commitdiff_plain;h=8d9c56e3d7f7267bae74ce766cde3387f9bafadb host_bios: Update BigData buffer variables Added _BUF_ to clarify Signed-off-by: Sam Nelson --- diff --git a/host_bios/simple_buffer_example/host/App.c b/host_bios/simple_buffer_example/host/App.c index cf96c93..b6c302d 100644 --- a/host_bios/simple_buffer_example/host/App.c +++ b/host_bios/simple_buffer_example/host/App.c @@ -208,15 +208,15 @@ Int App_exec(Void) { Int status; App_Msg * msg; - Uint32 *bigDataLocalPtr; - Int16 i,j; + UInt32 *bigDataLocalPtr; + Int i,j; UInt16 regionId1; Memory_Stats stats; HeapMemMP_ExtendedStats extStats; SharedRegion_Entry *pSrEntry; HeapMemMP_Params heapMemMp_params; HeapMemMP_Handle sr1Heap; - Uint16 regionId; + UInt16 regionId; HeapMemMP_Handle srHeap; UInt32 errorCount=0; Int retVal; @@ -322,7 +322,7 @@ Int App_exec(Void) status = -1; goto leave; } - bigDataLocalPtr = (Uint32 *)bigDataLocalDesc.localPtr; + bigDataLocalPtr = (UInt32 *)bigDataLocalDesc.localPtr; #ifdef DEBUG /* print data from big data buffer */ Log_print1(Diags_INFO, " Received back buffer %d", msg->id); @@ -376,7 +376,7 @@ Int App_exec(Void) msg->id = i; /* Allocate buffer from HeapMemMP */ - bigDataLocalPtr = (Uint32 *)(HeapMemMP_alloc(srHeap, BIGDATA_SIZE, BIGDATA_ALIGN)); + bigDataLocalPtr = (UInt32 *)(HeapMemMP_alloc(srHeap, BIGDATA_BUF_SIZE, BIGDATA_ALIGN)); if (!bigDataLocalPtr) { status = -1; @@ -384,13 +384,13 @@ Int App_exec(Void) } /* Fill Big data buffer */ - for(j=0; j< BIGDATA_SIZE/sizeof(uint32_t); j++) { + for(j=0; j< BIGDATA_BUF_SIZE/sizeof(uint32_t); j++) { bigDataLocalPtr[j] = j+i; } /* Populate the Local descriptor */ bigDataLocalDesc.localPtr = (Ptr)bigDataLocalPtr; - bigDataLocalDesc.size = BIGDATA_SIZE; + bigDataLocalDesc.size = BIGDATA_BUF_SIZE; retVal = bigDataXlatetoGlobalAndSync(regionId, &bigDataLocalDesc, &msg->u.bigDataSharedDesc); diff --git a/host_bios/simple_buffer_example/shared/AppCommon.h b/host_bios/simple_buffer_example/shared/AppCommon.h index 33c22b9..cbdacd2 100644 --- a/host_bios/simple_buffer_example/shared/AppCommon.h +++ b/host_bios/simple_buffer_example/shared/AppCommon.h @@ -73,9 +73,9 @@ typedef struct { #define App_HostMsgQueName "HOST:MsgQ:01" #define App_SlaveMsgQueName "%s:MsgQ:01" /* %s is each slave's Proc Name */ -#define BIGDATA_SIZE 16384 +#define BIGDATA_BUF_SIZE 16384 -#define BIGDATA_ALIGN 1 +#define BIGDATA_BUF_ALIGN 1 #if defined (__cplusplus) }