SNICInterface for development

Fork of SNICInterface by muRata

Files at this revision

API Documentation at this revision

Comitter:
YuuichiAkagawa
Date:
Sat Jan 17 06:12:43 2015 +0000
Parent:
43:d80bbb12ffe6
Commit message:
Add GR-PEACH platform.

Changed in this revision

SNIC/SNIC_Core.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SNIC/SNIC_Core.cpp	Fri Nov 14 00:52:31 2014 +0000
+++ b/SNIC/SNIC_Core.cpp	Sat Jan 17 06:12:43 2015 +0000
@@ -39,6 +39,14 @@
 /*
     Define the global buffer using the area for Ethernet.
 */
+#if defined(TARGET_RZ_A1H)
+unsigned char  gUART_TEMP_BUF[UART_RECVBUF_SIZE];
+unsigned char  gUART_COMMAND_BUF[UART_REQUEST_PAYLOAD_MAX];
+/** MemoryPool for payload of UART response */
+MemoryPool<tagMEMPOOL_BLOCK_T, MEMPOOL_PAYLOAD_NUM>     mMemPoolPayload;
+/** MemoryPool for UART receive */
+MemoryPool<tagMEMPOOL_BLOCK_T, MEMPOOL_UART_RECV_NUM>   mMemPoolUartRecv;
+#else
 unsigned char  gUART_TEMP_BUF[UART_RECVBUF_SIZE]                __attribute__((section("AHBSRAM1")));
 unsigned char  gUART_COMMAND_BUF[UART_REQUEST_PAYLOAD_MAX]      __attribute__((section("AHBSRAM1")));
 /** MemoryPool for payload of UART response */
@@ -46,6 +54,7 @@
 MemoryPool<tagMEMPOOL_BLOCK_T, MEMPOOL_PAYLOAD_NUM>     mMemPoolPayload  __attribute__((section("AHBSRAM0")));
 /** MemoryPool for UART receive */
 MemoryPool<tagMEMPOOL_BLOCK_T, MEMPOOL_UART_RECV_NUM>   mMemPoolUartRecv __attribute__((section("AHBSRAM0")));
+#endif
 Queue<tagMEMPOOL_BLOCK_T, MEMPOOL_UART_RECV_NUM>        mUartRecvQueue;
 
 tagMEMPOOL_BLOCK_T   *gUART_RCVBUF_p;