GainSpan Wi-Fi library see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/
Dependents: GSwifi_httpd GSwifi_websocket GSwifi_tcpclient GSwifi_tcpserver ... more
Fork of GSwifi by
GainSpan Wi-Fi library
The GS1011 is an ultra low power 802.11b wireless module from GainSpan.
see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/
ゲインスパン Wi-Fi モジュール ライブラリ
ゲインスパン社の低電力 Wi-Fiモジュール(無線LAN) GS1011 シリーズ用のライブラリです。
解説: http://mbed.org/users/gsfan/notebook/gainspan_wifi/
Diff: GSwifi.cpp
- Revision:
- 38:dfc31d58fa1d
- Parent:
- 37:e61ea8267415
- Child:
- 39:3360db93c65c
diff -r e61ea8267415 -r dfc31d58fa1d GSwifi.cpp --- a/GSwifi.cpp Wed Jun 26 02:39:59 2013 +0000 +++ b/GSwifi.cpp Mon Jul 22 01:50:14 2013 +0000 @@ -74,12 +74,23 @@ _uart->MCR |= (1<<7); // CTSEN LPC_PINCON->PINSEL1 &= ~(3 << 2); LPC_PINCON->PINSEL1 |= (1 << 2); // UART CTS + } else + if (p_cts == P2_2) { // CTS input (P2_2) + _uart->MCR |= (1<<7); // CTSEN + LPC_PINCON->PINSEL4 &= ~(3 << 4); + LPC_PINCON->PINSEL4 |= (2 << 4); // UART CTS } if (p_rts == P0_22) { // RTS output (P0_22) _uart->MCR |= (1<<6); // RTSEN LPC_PINCON->PINSEL1 &= ~(3 << 12); LPC_PINCON->PINSEL1 |= (1 << 12); // UART RTS _rts = true; + } else + if (p_rts == P2_7) { // RTS output (P2_7) + _uart->MCR |= (1<<6); // RTSEN + LPC_PINCON->PINSEL4 &= ~(3 << 14); + LPC_PINCON->PINSEL4 |= (2 << 14); // UART RTS + _rts = true; } #elif defined(TARGET_LPC11U24) _uart = LPC_USART; @@ -94,8 +105,6 @@ LPC_IOCON->PIO0_17 |= 0x01; // UART RTS _rts = true; } -#elif defined(TARGET_KL25Z) - _uart = NULL; #endif wait_ms(100);