Gregory Nutt
23cbc28b05
Detangle use of board_xyzclassobject() and board_xyzuninitialize()
2017-07-14 06:59:45 -06:00
Gregory Nutt
fe3af4941d
Merge remote-tracking branch 'origin/master' into composite
2017-07-10 11:07:36 -06:00
Gregory Nutt
975473fed8
ICMPv6: Add 6LoWPAN and IP forwarding support.
2017-07-09 11:35:26 -06:00
Gregory Nutt
0f9ad16e18
Merge remote-tracking branch 'origin/master' into composite
2017-07-07 20:26:53 -06:00
Gregory Nutt
99ef7c6669
IP forwarding: A few fixes from early testing; In TUN driver, do all polling on worker thread. Otherwise, the stack gets very deep.
2017-07-07 17:33:44 -06:00
Gregory Nutt
b29c99fa6f
Move TUN ioctl commnd to include/nuttx/net/ioctl.h so that it will always be unique. It a error in netdev_register: it was not handling device names properly when TUN is the only network device.
2017-07-07 13:03:04 -06:00
Julien Lecoeur
165ee0027a
Eliminate a warning with arm-none-eabi-gcc 7.1.0
2017-07-06 08:32:51 -06:00
Gregory Nutt
a4cd90d4ef
Merge remote-tracking branch 'origin/master' into composite
2017-07-05 11:12:52 -06:00
Jan Pobrislo
7999822189
I've found that the interrupts aren't enabled since nothing updates them after btn_poll() marks the file descriptor structure as being polling. I've managed to make it work with this change.
2017-07-04 14:43:19 -06:00
Gregory Nutt
18a32ed2ca
Merge remote-tracking branch 'origin/master' into composite
2017-06-29 10:18:16 -06:00
Gregory Nutt
95e20afcd2
drivers/: Remove dangling space at the end of lines.
2017-06-28 13:17:17 -06:00
Jussi Kivilinna
4eaa136850
smart: fix wrong freeing of device structure and use-after-free issues on error paths
2017-06-28 07:20:07 -06:00
Gregory Nutt
aaa81ce497
Merge remote-tracking branch 'origin/master' into composite
2017-06-26 11:56:11 -06:00
Anthony Merlino
da8afe9d9e
ieee802154: Finishes transmission of beacon frames, and performing a passive scan
2017-06-25 18:08:00 -04:00
Anthony Merlino
683bd6e10e
ieee802154: Adds some missing elements to start support for beacon-enabled networks
2017-06-25 18:08:00 -04:00
Masayuki Ishikawa
32a8d09901
drivers/net/tun.c: Use critical section instead of semaphore in tun_ifdown()
2017-06-23 14:28:53 +09:00
Gregory Nutt
05590a2228
6LoWPAN: Correct a few addressing issues. The apps/examples/udp test now appears to be fully functional. Also reserve two bytes at the end of the frame for the FCS.
2017-06-21 13:43:53 -06:00
Gregory Nutt
2397bc728b
Add some comments to a Kconfig file; Fix a typo introduced in previous commit.
2017-06-21 10:40:36 -06:00
Gregory Nutt
8db9461e0e
mrf24j40: Fix a warning (which is actually an error)
2017-06-21 10:28:52 -06:00
Gregory Nutt
4eb548226b
Merge remote-tracking branch 'origin/master' into composite
2017-06-19 17:27:00 -06:00
Oleg Evseev
8082a5d3dc
Merged in lukegluke/nuttx (pull request #411 )
...
Use struct instead of pointer to the struct as sizeof argument in memset in usbmsc.c
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-19 17:51:11 +00:00
Oleg Evseev
794ecbfd86
Use struct instead of pointer to the struct as sizeof argument in memset in usbmsc.c
...
Otherwise it leads to error: argument to 'sizeof' in 'memset' call is the same pointer type 'struct usbmsc_lun_s *' as the destination
2017-06-19 19:45:35 +03:00
Anthony Merlino
b1ce07deb1
Swithches IEEE 802.15.4 based code to using byte arrays instead of uint16_t values for short address and PAN ID
2017-06-19 05:55:28 -04:00
Gregory Nutt
698dd6d7d1
Merge remote-tracking branch 'origin/master' into ieee802154
2017-06-18 08:23:42 -06:00
Gregory Nutt
afa0ab0819
Remove dangling whitespace form the end of lines
2017-06-17 14:13:25 -06:00
Oleg Evseev
70adff3ffc
Merged in lukegluke/nuttx/lukegluke/kconfig-correction-edited-online-with-bi-1497624177393 (pull request #401 )
...
Kconfig correction
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-16 23:34:22 +00:00
Gregory Nutt
2327f5a1b4
Merge remote-tracking branch 'origin/master' into composite
2017-06-16 17:30:03 -06:00
Oleg Evseev
31bde601b6
Kconfig correction
...
edited online with Bitbucket
2017-06-16 14:43:11 +00:00
Gregory Nutt
77757410c8
Remove dangling white space at the end of lines.
2017-06-15 10:46:48 -06:00
Gregory Nutt
535ea4e0f5
Merge remote-tracking branch 'origin/master' into ieee802154
2017-06-15 10:34:38 -06:00
Gregory Nutt
4a88d6a50a
Merge branch 'ieee802154' of bitbucket.org:nuttx/nuttx into ieee802154
2017-06-15 10:32:55 -06:00
Anthony Merlino
e30501ebd4
wireless/ieee802154: Lots of fixes, cleanup, new functionality. Functional
2017-06-15 12:11:52 -04:00
Gregory Nutt
04ae3d51c2
drivers/mp2515.c: Remove an incorrect warning.
2017-06-14 10:13:38 -06:00
Gregory Nutt
a86f46bc54
MCP1515: Eliminate some warnings
2017-06-14 09:38:58 -06:00
Gregory Nutt
49cd279fc6
Merge remote-tracking branch 'origin/master' into composite
2017-06-14 09:17:49 -06:00
Anthony Merlino
908d438047
WIP: wireless/ieee802154: More work on association/beacon-enabled networks
2017-06-14 02:49:32 -04:00
Jussi Kivilinna
7b8df1b930
mtd/w25: wait for BUSY flag to clear in w25_readid and w25_unprotect. W25Q128 datasheet says that all instructions expect 'Read Status Register' and 'Erase/Program Suspend' are ignored when BUSY flag in status register is '1'. Therefore wait for busy flag to clear in w25_readid() and w25_unprotect().
2017-06-13 07:35:49 -06:00
Jussi Kivilinna
2596b14c90
mtd/w25: add missing locking and fix SPI_SELECT usage for w25_unprotect
2017-06-13 07:33:34 -06:00
Gregory Nutt
0a85a41678
MTD FLASH driver: Clone Sebastien Lorquet's m25px change to at25, is25xp, ramtron, and sst25xx.
2017-06-12 09:51:42 -06:00
Sebastien Lorquet
2851959dee
MTD M2PX: If we READ while a write/erase is pending, the command is ignored and the write/erase continues. If we dont catch this situation we will return garbage to the user because the flash will not execute the command. So READ MUST wait for write completion, and before that, the bus must be locked since it's a precondition to calling waitwritecomplete().
2017-06-12 09:34:09 -06:00
Gregory Nutt
d35a060a41
Revert "MTD: Fix problems in SPI locking in mp25x.c driver. Same problem probably in exists in several other drivers that derive from this this driver as well."
...
This reverts commit 85645284b37b0ada1ba8208cb228f419c1c52190.
2017-06-12 07:23:06 -06:00
Sebastien Lorquet
85645284b3
MTD: Fix problems in SPI locking in mp25x.c driver. Same problem probably in exists in several other drivers that derive from this this driver as well.
2017-06-12 06:38:27 -06:00
Gregory Nutt
670d6a1e8d
MTD FLASH drivers: The byte write method of several drivers had a cloned error: It was not locking the bus while performing byte write operations.
2017-06-06 16:10:41 -06:00
Juha Niskanen
e577072790
power: battery_charger: add ioctl for charging input current
2017-06-06 06:56:50 -06:00
Gregory Nutt
9dd41bdd2f
Composite: More compile-related fixes
2017-06-01 17:02:43 -06:00
Gregory Nutt
fc1438c95d
Merge remote-tracking branch 'origin/master' into composite
2017-06-01 16:35:41 -06:00
Gregory Nutt
89f77cd91a
Fix some incomplete name changes
2017-06-01 16:11:27 -06:00
Gregory Nutt
bd9b548914
Remove COMPILE_TIME_ASSERTION
2017-06-01 15:05:41 -06:00
Frank Benkert
7e6f481581
Part II of the same big commit
2017-06-01 14:58:04 -06:00
Frank Benkert
dcc9b07715
[[This is part 1 or several commits]]
...
We developed a huge Changeset over a year ago to make USB Composite configuration dynamical and be able to instanciate the CDCACM multiple times inside this device. We use this feature to switch between one in normal and up to three CDCACMs in maintenance boot.
The control path starts in “boardctl.c” where the configuration for the device is constructed. There are still a few issues which I’ll ask you to have a look at before this beast can be merged.
1. To be able to construct the data dynamically I have changed some USB-Structs to be packed. Maybe there are additional structs to change (just for completeness – not for current functionality).
2. I’ve added the Macro “COMPILE_TIME_ASSERTION” two times (in usbmsc_desc.c and in cdcacm_desc.c) to stay private. Maybe you’ll find a better place. It’s used to check the size of the structs against the assumptions.
3. I’ve changed the interface for some USB-Functions to receive also the dynamic configuration. Maybe this can be done more elegant.
4. The original NuttX (without the patch) seems to have problems with a Composite device holding a CDCACM and an MSC. The “USB SET CONFIGURATION” request does not to work at all. This makes the test fail under Windows and under Linux. Applying this patch doesn’t change anything – because it only changes the configuration – not the behavior. Maybe you’ll have a look at this problem before applying the patch.
2017-06-01 14:08:22 -06:00