Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: GSwifi_httpd GSwifi_websocket GSwifi_tcpclient GSwifi_tcpserver ... more
Fork of GSwifi by
Revision 38:dfc31d58fa1d, committed 2013-07-22
- Comitter:
- gsfan
- Date:
- Mon Jul 22 01:50:14 2013 +0000
- Parent:
- 37:e61ea8267415
- Child:
- 39:3360db93c65c
- Commit message:
- fix rts,cts port
Changed in this revision
| GSwifi.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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);

GainSpan Wi-Fi GS1011