Skip to content

Commit

Permalink
net/sixlowpan: Fix typo uint16->uint16_t. Also picks up some cosmetic…
Browse files Browse the repository at this point in the history
… USB host changes.
  • Loading branch information
gregory-nutt committed Jul 1, 2018
1 parent 824f1dd commit 3e9ba72
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/usbhost/usbhost_skeleton.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/****************************************************************************
* drivers/usbhost/usbhost_skeleton.c
*
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
* Copyright (C) 2018 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
Expand Down
8 changes: 6 additions & 2 deletions include/nuttx/usb/max3421e.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#include <nuttx/config.h>

#ifdef CONFIG_USBMONITOR
#ifdef CONFIG_USBHOST_MAX3421E

/****************************************************************************
* Pre-processor Definitions
Expand Down Expand Up @@ -308,6 +308,10 @@

#define MAX3421E_SPIMODE SPIDEV_MODE0

/* The SPI clock frequency can be between DC and 26MHz. */

#define MAX3421E_SPIFREQ_MAX (26*1000*1000)

/****************************************************************************
* Public Data
****************************************************************************/
Expand Down Expand Up @@ -340,5 +344,5 @@ extern "C"
}
#endif

#endif /* CONFIG_USBMONITOR */
#endif /* CONFIG_USBHOST_MAX3421E */
#endif /* __INCLUDE_NUTTX_USB_MAX3421E_H */
2 changes: 1 addition & 1 deletion net/sixlowpan/sixlowpan_tcpsend.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ static int sixlowpan_tcp_header(FAR struct tcp_conn_s *conn,
{
/* Update the TCP received window based on I/O buffer availability */

uint16 recvwndo = tcp_get_recvwindow(dev);
uint16_t recvwndo = tcp_get_recvwindow(dev);

/* Set the TCP Window */

Expand Down

0 comments on commit 3e9ba72

Please sign in to comment.