git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5563 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2013-04-07 10:54:17 +00:00
parent fdc358a520
commit 351b7594ff
2 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,9 @@ static u_long nb = 1;
static void init(SerialDriver *sdp, uint16_t port) {
struct sockaddr_in sad;
struct protoent *prtp;
int sockval = 1;
socklen_t socklen = sizeof(sockval);
if ((prtp = getprotobyname("tcp")) == NULL) {
printf("%s: Error mapping protocol name to protocol number\n", sdp->com_name);
@ -76,6 +79,9 @@ static void init(SerialDriver *sdp, uint16_t port) {
goto abort;
}
setsockopt(sdp->com_listen, SOL_SOCKET, SO_REUSEADDR, &sockval, socklen);
if (ioctl(sdp->com_listen, FIONBIO, &nb) != 0) {
printf("%s: Unable to setup non blocking mode on socket\n", sdp->com_name);
goto abort;

View File

@ -89,6 +89,7 @@
*****************************************************************************
*** 2.5.2 ***
- FIX: Fixed patch to allow simulator to be restarted quicker (bug #398).
- FIX: Fixed blkDisconnect macro typo (bug #397).
- FIX: Fixed STM32 SPI (V2) driver hangs (bug 3608241).
- FIX: Fixed fixed I2C malfunction after fixing bug 3607518 (bug 3607549)