SNIC UART Interface library: Serial to Wi-Fi library for Murata TypeYD Wi-Fi module. For more information about TypeYD: http://www.murata.co.jp/products/microwave/module/lbwb1zzydz/index.html
Dependents: SNIC-xively-jumpstart-demo SNIC-FluentLogger-example TCPEchoServer murataDemo ... more
Fork of YDwifiInterface by
Revision 46:876aa57be518, committed 2015-01-30
- Comitter:
- kishino
- Date:
- Fri Jan 30 03:16:54 2015 +0000
- Parent:
- 44:9d901fec86b8
- Child:
- 47:69dd5911fc6a
- Commit message:
- Changed the definition that depends on the target.
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 Sat Jan 17 06:12:43 2015 +0000
+++ b/SNIC/SNIC_Core.cpp Fri Jan 30 03:16:54 2015 +0000
@@ -39,21 +39,20 @@
/*
Define the global buffer using the area for Ethernet.
*/
-#if defined(TARGET_RZ_A1H)
+#if defined(TARGET_LPC1768)
+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 */
+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")));
+#else
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 */
-//MemoryPool<tagMEMPOOL_BLOCK_T, MEMPOOL_PAYLOAD_NUM> mMemPoolPayload __attribute__((section("AHBSRAM1")));
-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;
muRata

Murata TypeYD