Gregory Nutt
2bb6ec41d1
net/: Trivial fix for a typo.
2018-03-30 12:27:04 -06:00
Gregory Nutt
51ee2cdd86
net/udp: Fix some errors in conditional compilation.
2018-03-30 12:08:53 -06:00
Gregory Nutt
a2f237065c
net/ieee802154: Fix some typos noted when cloning to create net/bluetooth.
2018-03-30 12:08:29 -06:00
Gregory Nutt
d62649757c
wireless/bluetooth and include/nutt/net: Add support for Bluetooth IOCTL commands.
2018-03-30 10:50:44 -06:00
Gregory Nutt
380d558795
Adds re-architected Bluetooth UART driver from the Intel/Zephyr arduino101_firmware_source-v1.tar package.
...
Squashed commit of the following:
drivers/bluetooth: Re-architect Bluetooth UART driver to follow upper/lower half model. Completely untested.
drivers/bluetooth: Grr.. Another band-aid commit to stay in sync with master. Why is this so difficult
drivers/bluetooth: Band-aid commit to stay in sync with master. Lost it somehow.
drivers/wireless/bluetooth: A few changes, mostly thought experiments.
drivers/wireless/bluetooth: UART-based Bluetooth driver ported from the Intel/Zephyr arduino101_firmware_source-v1.tar package. This initial commit is the original files in the NuttX build environment with changes to conform with the coding standard. It should not even build.
2018-03-29 18:36:03 -06:00
Gregory Nutt
aaf5fee1e6
wireless/bluetooth: Add driver object in all driver methods so that the driver has a way of maintaingin context.
2018-03-29 15:12:00 -06:00
Gregory Nutt
accef0ca9e
This commit brings in the Bluetooth stack from the Intel/Zephyr arduino101_firmware_source-v1.tar package.
...
NOTE: This selection is marked EXPERIMENTAL. It is incomplete and, hence, untested. It still lacks any low-level Bluetooth drivers and is missing the network interface driver.
Squashed commit of the following:
wireless/bluetooth: Fixe last of compile issues. Now compiles without errors or warnings.
wireless/blutooth: Add macros BT_GETUINT16() and BT_PUTUINT16(). Fix more compile errors. Only one file now generates compile errors.
wireless/bluetooth: Add macros BT_LE162HOST() and BT_HOST2LE16().
wireless/bluetooth: Add bt_queue.c; begin fixing comple errors. Many more compile problems yet to resolve.
Kconfig edited online with Bitbucket
wireless/bluetooth: Struggling to remove nano_fifo logic: Replace buffer management with IOB allocate... this changes some logic and might have some side effects. Use messages queues instead of nano-fifos to inter-task communications. nano-fifos still used in 'frag' logic... whatever that is.
wireless/bluetooth: Fix numerous typos introduced by an ill conceived search-and-replace.
wireless/bluetooth: Add message queue support to manage interthread buffer transfers.
wireless/bluetooth: Replace fibers with kernel threads.
wireless/bluetooth: Fix a few initial compile errors. Just the tip of the iceberg.
wireless/bluetooth: Complete leveage of the bluetooth stack including public header files.
wireless/bluetooth: Complete leverage of all Bluetooth source files. Still missing header files that defines the driver interface. Also missing the network driver implementation.
wireless/bluetooth: Fix some naming of static global variables.
wireless/bluetooth: Adds three more files ported from the Intel/Zephyr arduino101_firmware_source-v1.tar package (plus two original files).
wireless/bluetooth: Adds five more files ported from the Intel/Zephyr arduino101_firmware_source-v1.tar package.
wireless/bluetooth: Adds three more files ported from the Intel/Zephyr arduino101_firmware_source-v1.tar package.
wireless/bluetooth: First few files ported from the Intel/Zephyr arduino101_firmware_source-v1.tar package.
2018-03-29 12:39:22 -06:00
Anthony Merlino
5e1f54ddc3
Merged in antmerlino/nuttx/mac802154_primitivebug (pull request #620 )
...
mac802154: Fixes bug where primitive was freed when it shouldn't have been, causing double free call
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-03-28 15:50:41 +00:00
Anthony Merlino
ec4bb7b990
Merged in antmerlino/nuttx/mac802154_ackhandling (pull request #619 )
...
mac802154: Adds ackreq flag to TX descriptor for use by radio driver.
The radio layer is responsible for a full "transaction". Because of
differences in radio capabilites, the radio must be responsible for
the handling of acks and retransmissions. This commit simply passes
the ackreq meta-data flag along to the radio.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-03-28 15:50:11 +00:00
Anthony Merlino
62e89e0f8d
Merged in antmerlino/nuttx/mac802154_rxenable (pull request #618 )
...
mac802154: Adds basic support for RX-ENABLE.request primitive
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-03-28 15:49:34 +00:00
Gregory Nutt
8d5b225928
arch/arm/src/stm32: If Ethernet initialization failures (per previous commit), then do not register the uninitialized Ethernet device. Ths prevents any use of the badly initialized interface.
2018-03-27 15:33:59 -06:00
Sebastien Lorquet
7019d561b1
On STM32, in case of PHY failure, usually because of the lack of 25/50 MHz REFCLK input, the Ethernet block would lock up in a while loop waiting for readiness, which will never happened. This prevented the board from starting at all in the case of a PHY failure. This commit adds a retry loop to avoid bricking the board if the Ethernet block is unable to start.
2018-03-27 08:14:39 -06:00
Janne Rosberg
296a7d33b0
configs/nrf52-pca10040: Add support for buttons
2018-03-27 07:41:46 -06:00
Janne Rosberg
99e04a2d39
arch/arm/src/nrf52: Add nrf52_gpio_read
2018-03-27 07:41:46 -06:00
Masayuki Ishikawa
d393f43caa
Merged in masayuki2009/nuttx.nuttx/network_test (pull request #617 )
...
Fix some bugs in networking
* netdb: Fix boundary conditions in dns_recv_response()
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* Fix typos in include/nuttx/net/dns.h
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-03-27 01:31:06 +00:00
Gregory Nutt
759e510c28
Per Matias Edlund: I recently used the tcflush function and found that it failed with ENOTTY. The reason is that the TCFLSH case in the function uart_ioctl in the file drivers/serial/serial.c does not update the ret value." On success, the TCFLSH IOCTL logic needs to explicitly set the return value (ret) to zero.
2018-03-26 13:54:47 -06:00
Janne Rosberg
e4d43e8b87
arch/arm/src/nrf52: Better uart handling and some cleanup.
2018-03-26 12:50:06 -06:00
Janne Rosberg
d608f6943b
arch/arm/src/nrf52: Initial support for the NRF52
2018-03-26 10:37:32 -06:00
Gregory Nutt
dc8941e958
configs/: Add definition of strip to many Make.defs files.
2018-03-25 09:25:37 -06:00
Gregory Nutt
db3b507a41
tools/gencromfs.c: Was duplicating all mode bits in source directory in CROMFS directory. Some make no sense. In particular, all write-able bits are cleard unconditionally. Executable bits are still copying because there is really no way for the tool to know if the file is executable or not.
2018-03-24 15:05:22 -06:00
Gregory Nutt
67e0603b5a
fs/cromfs: Block length only needs to be uint16_t, not uint32_t. Add pading to node structure to assue that alignment is the same on all platforms. tools/gencromfs.c: Fix the target offset of the '.' hard link.
2018-03-24 14:44:38 -06:00
Gregory Nutt
853c1234ac
tools/gencromfs.c: Missing 'const'. CROMFS file system was ending up in data, not FLASH
2018-03-24 11:54:01 -06:00
Gregory Nutt
8b4b61f140
fs/cromfs: Fix a error in reading partial compressed blocks. The LZF decompressor does not support that operation. Instead we have to decompress full block into a temporary buffer and copy out the parts that we need. To compensate for the performance hit, a caching mechanism was added so that we do not have to read the same block repeatedly. Unrelated: Also updates some README files.
2018-03-24 11:30:35 -06:00
Gregory Nutt
e35228ece9
arch/arm/src/imx6: Bring in a few i.MX6 fixes that were committed on the i.MX RT branch.
2018-03-23 16:55:12 -06:00
Gregory Nutt
d107ef6d54
configs/cc3200-launchpad: I don't think that there is any reason for BINFS to be enabled in the NSH configuration.
2018-03-23 11:05:53 -06:00
Juha Niskanen
0f03ffc745
STM32, STM32L4: add one bit read and write to 1-wire interface. This is needed for devices that require single bit timeslot generation and for 1-Wire search algorithm triplets.
2018-03-23 08:07:20 -06:00
Gregory Nutt
3810f9e942
Remove configurations using canutils/libuavcan and examples/uavcan. libuavcan has not built for a year or so. The basic problem is that as NuttX advances, the old frozen versino of libuavcan has become absolute because it violates the portable POSIX OS interface. No one is maintaining the port so there is no alternative but to remove it.
2018-03-23 07:37:49 -06:00
Gregory Nutt
00d8d6698e
Documentation/NuttxPortingGuide.html: Some updated wording of description of the directories need for a complete board configuration.
2018-03-22 15:54:03 -06:00
Gregory Nutt
012cd8a07a
fs/cromfs: Yet another update to the README file.
2018-03-22 13:35:27 -06:00
Gregory Nutt
1d72f7afea
fs/cromfs: Update README
2018-03-22 08:41:59 -06:00
Gregory Nutt
3b3ca1373c
fs/cromfs: Update README
2018-03-22 08:11:28 -06:00
Gregory Nutt
e6cecb5a58
fs/cromfs: Add a README file.
2018-03-22 07:44:37 -06:00
Juha Niskanen
4e4229a8ef
i2c/i2c_master.h: Change incorrect comment about I2C_TRANSFER return value to indicate that the method returns zero on success rather than the number of bytes transferred.
2018-03-22 06:51:09 -06:00
Juha Niskanen
bcd1f1f774
drivers/sensors/sht21: Change I2C_TRANSFER return value so that it return on zero on success, not the count of bytes transferred.
2018-03-22 06:44:40 -06:00
Juha Niskanen
4a0e98de3a
configs/nucleo-144: Some documentation updating
2018-03-22 06:42:19 -06:00
Juha Niskanen
6575480d5e
Documentation: Fix some typos.
2018-03-22 06:40:58 -06:00
Gregory Nutt
52673b5633
Redo commit 7244ae9a98
. The same trivial change was done with an online edit, but this resulted in some corruption of special characters in the file, likely because of differences with the character set used by the Bitbucket online editor.
2018-03-21 20:10:00 -06:00
Gregory Nutt
0199af6551
Revert "NuttxPortingGuide.html edited online with Bitbucket"
...
This reverts commit 7244ae9a98
.
2018-03-21 20:07:39 -06:00
Gregory Nutt
7244ae9a98
NuttxPortingGuide.html edited online with Bitbucket
2018-03-22 02:00:51 +00:00
Gregory Nutt
3ec02adee0
tools/genromfs.c: Improve check for empty directories. If the directory contains only unsupported, special files, then it is still empty. Fix some collection of statistics that was cause statfs() to return some incorrect values. Add logic to handle the case where the host and the target differ in endian-ness. fs/procfs: In show mountpoints, add support so that the CROMFS file system type is recognized.
2018-03-21 08:40:02 -06:00
Jussi Kivilinna
02841a7f55
drivrs/sensors/lis2dh: Clear INT1 at SNIOC_WRITE_INT1THRESHOLD ioctl
2018-03-21 07:28:08 -06:00
Juha Niskanen
a36c7a779a
|arch/arm/src/stm32l4: Add PM hooks to I2C, SPI and 1-wire
2018-03-21 07:26:33 -06:00
Gregory Nutt
448fc7a6f2
fs/cromfs: Remove CONFIG_EXPERIMINTAL dependency.
2018-03-20 20:04:29 -06:00
Gregory Nutt
f2b72c344b
fs/cromfs: Fix a loop condition that was causing errors on large files
2018-03-20 19:49:42 -06:00
Gregory Nutt
d41f308bf1
tools/gencromfs.c: Add logic to correctly handle empty directories.
2018-03-20 17:34:26 -06:00
Gregory Nutt
16d0a8c2d1
fs/cromfs: More directory traversal fixes. tools/gencromfs.c: Add ability use a callback with directory traversal. Not currently used but left in place in case it is needed in the future.
2018-03-20 16:20:31 -06:00
Gregory Nutt
aeeee54921
tools/gencromfs.c and fs/cromfs: More corrections to directory traversal logic. Still some bugs.
2018-03-20 14:30:05 -06:00
Gregory Nutt
22484386ee
fs/cromfs and tools/gencromfs: Various fixes for traversal relative file paths. Biggest changes is in types used: Cannot use size_t or mode_t in common structures because they have different sizes on the (64-bit) host and the (32-bit) target. Use uint32_t instead of size_t for offsets. Use uint16_t instead of mode_t.
2018-03-20 12:37:01 -06:00
Gregory Nutt
87fd4e2916
fs/cromfs: Fix read logic. tools/genromfs.c: Last node in directory needs to have zero for peer offset. Still some issues with empty directories.
2018-03-20 10:37:42 -06:00
Gregory Nutt
d6b9802264
tools/gencromfs.c: Fix a mixconception about how nested directories should be traversed.
2018-03-20 08:50:59 -06:00