summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (from parent 1: 9302ae3)
raw | patch | inline | side by side (from parent 1: 9302ae3)
author | Sam Nelson <sam.nelson@ti.com> | |
Mon, 22 May 2017 19:35:34 +0000 (15:35 -0400) | ||
committer | Sam Nelson <sam.nelson@ti.com> | |
Fri, 2 Jun 2017 02:04:23 +0000 (22:04 -0400) |
Added _BUF_ to clarify
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
host_bios/simple_buffer_example/host/App.c | patch | blob | history | |
host_bios/simple_buffer_example/shared/AppCommon.h | patch | blob | history |
diff --git a/host_bios/simple_buffer_example/host/App.c b/host_bios/simple_buffer_example/host/App.c
index cf96c938e97be50fa4a704e0e07c2afb49e0c3e1..b6c302de23bd08c88ee07a1e4b25eb091a8526e1 100644 (file)
{
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;
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);
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;
}
/* 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 33c22b9cf2a621a8fd79bcf24c70d8067fae3ea0..cbdacd28b539ff5d3879cc3403bb160594ecbfc2 100644 (file)
#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)
}