Commit Graph

34684 Commits

Author SHA1 Message Date
Gregory Nutt
42b178fb13 tools/nxstyle.c: Bandaid-up logic that detects left brackets on the same line in global structure/enumeration types and initializers. 2019-06-29 16:19:10 -06:00
Gregory Nutt
35521ab2b6 Fix some new warnings found in build testing. 2019-06-29 13:24:38 -06:00
Gregory Nutt
005a077310 tools/nxstyle.c: Tool depends on the file under test containing "Private Functions" or "Public Functions" block comments. Emit an error is neither are present. 2019-06-29 11:43:37 -06:00
Michael Jung
61f3881132 configs/pnev5180b/usbnsh-cdcecm: This new configuration includes a USB Composite Device with both CDC/ACM and CDC/ECM. NuttShell provides a terminal via CDC/ACM. A network interface (eth0) is provided via CDC/ECM. 2019-06-29 11:30:47 -06:00
Federico Braghiroli
2dd1b330e5 Merged in fbraghiroli/nuttx/fix_nrf24l01 (pull request #922)
nrf24l01: fix PIPENO/PKTLEN bitmask in rx fifo header

In RX fifo header, the first byte should use 5 lsb to store PKTLEN
and 3 msb to store PIPENO. However, FIFO_PIPENO_SHIFT was set to 4
which causes the lsb of pipe number to interfere with the received
packet size stored in the fifo.

This fix rx corruption when using pipe number > 0.

Signed-off-by: Federico Braghiroli <federico.braghiroli@gmail.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-29 16:56:57 +00:00
Gregory Nutt
3f9ef89e19 Various Kconfig files: Kconfig files should not select SCHED_WORKQUEUE since that is really only is only the logical OR if SCHED_LPWORK and SCHED_HPWORK. Selecting it has no effect other than to produce an erroneous configuration. 2019-06-29 10:10:43 -06:00
Gregory Nutt
980a89bfb6 configs/pnev5180b/nsh-cdcecm/defconfig: CDC/ECM requires SCHED_LPWORK 2019-06-29 10:01:39 -06:00
Gregory Nutt
c2a383ef6d drivers/sensors/vl53l1x.c: Remove the VL53L1x driver. It does not compile. 2019-06-29 06:26:49 -06:00
Gregory Nutt
df3ea977bf sched/semaphore/sem_holder.c: Fix a bad assertion. The comments state correctly that we cannot make any assumptions about the number of holders of the semaphore, yet the code asserts if there are any holders. This makes the code behave closer to what the comments say. 2019-06-28 21:47:32 -06:00
Gregory Nutt
f4a21af755 configs/olimex-stm32-e407/src: Change initialization to match the way it is done with other boards. 2019-06-28 16:22:02 -06:00
Gregory Nutt
4083d89244 configs/olimex-stm32-e407: Add VL53L1 support. drivers/sensors/vl53l1x.c: A few compiler errors fixed, possibly incorrectly. DRIVER DOES NOT COMPILE. Marked EXPERIMENTAL in the Kconfig file. 2019-06-28 15:45:00 -06:00
Abdelatif Guettouche
ee32b449a6 arch/mips/src/pic32mz: Add DMA support. 2019-06-28 10:03:18 -06:00
Ouss4
87499ba3ec arch/mips/src/pic32mz/pic32mz-gpio.c: Use LAT instead of PORT when writing. 2019-06-28 09:51:19 -06:00
Gregory Nutt
4f9623a520 drivers/sensors/vl53l1x.c: Fix other cosmetic coding standard issues. 2019-06-28 09:15:29 -06:00
Gregory Nutt
696197c67f drivers/sensors/vl53l1x.c: Fix more upper-/lower-case problems. 2019-06-28 08:39:21 -06:00
Jukka Laitinen
bbd4b22929 arch/arm/src/stm32h7/hardware/stm32_ethernet.h: Correct ETH_MACMDIOAR. Correct the physical layer address bits in ETH_MACMDIOAR register. 2019-06-28 08:24:59 -06:00
Gregory Nutt
6a75c811f8 Fix some lower vs upper case problems in last commit. 2019-06-28 08:20:31 -06:00
Juan Flores
f466d054a1 drivers/sensors/vl53l1x.c: Add support for VL53L1X TOF sensor. 2019-06-28 08:17:35 -06:00
Michael Jung
157bf153fc configs/pnev5180b/nsh-cdcecm: Adds NSH configuration with UART0 and eth0 via CDC/ECM on USB device. 2019-06-28 06:59:36 -06:00
Alin Jerpelea
9a60350901 Merged in alinjerpelea/nuttx (pull request #921)
configs: makerlisp: typo fix

This small typo broke the build

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-28 11:37:02 +00:00
Gregory Nutt
4445a78b36 Update a README 2019-06-27 11:34:04 -06:00
Gregory Nutt
23f14a3217 Add Kconfig chane should have been a part of 6256af21d5. 2019-06-27 08:49:23 -06:00
Gregory Nutt
6256af21d5 configs/makerlisp/scripts: Add a linker script to support copying the NuttX image from FLASH into external SRAM. 2019-06-27 08:39:12 -06:00
Eduard Niesner
056eebd9da arch/arm/src/stm32h7: Ported the QEncoder from F7 to H7. 2019-06-27 07:07:55 -06:00
Alin Jerpelea
b922c2748e Merged in alinjerpelea/nuttx (pull request #920)
arch: src: cxd56xx: add EMMC suport

add EMMC suport for cxd56xx chip

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-27 12:08:18 +00:00
Masayuki Ishikawa
f986bf1154 Merged in masayuki2009/nuttx.nuttx/wireless_gs2200m (pull request #919)
configs/spresense/wifi: App config for gs2200m has been changed

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-27 00:54:58 +00:00
Gregory Nutt
40179da030 Squashed commit of the following:
libs/libc/misc/Make.defs:  For platforms whose CPP tool does not support a variable number arguments to pre-processor macros, we may still need to build the debug functions even when CONFIG_DEBUG_FEATURES is not selected.  For example, __alert() may be needed is CONFIG_ARCH_STACKDUMP is set.

    configs/makerlisp:  Add an sdboot configuration that will load .hex files from the SD card.
2019-06-26 14:37:19 -06:00
Bernd Walter
2f9a76b21c arch/arm/src/samd2l2/hardware/samd_tc.h: Correct register bit field definitions used with TC_CTRLBCLR and TC_CTRLSET registers. 2019-06-26 13:20:39 -06:00
Gregory Nutt
a73cd667d9 configs/makerlisp: This commit brings in a new configuration to support execution entirely out of external SRAM.
Squashed commit of the following:

    configs/makerlisp/scripts/makerlisp_ram.linkcmd:  Fixup .RESET and .STARTUP.  These need to be redirected to RAM since they default to ROM.

    configs/makerlisp/scripts/makerlisp_ram.linkcmd:  Restore some settings that should be unnecessary but are really required by the current implementation.

    configs/makerlisp:  Rename nsh configuratinon to nsh_flash.  Create new configuration, nsh_ram, that is identical to the nsh_flash configuration except that the code runs out of external SRAM.

    configs/makerlisp/scripts:  Add a linker script to support execution from RAM.
2019-06-26 09:56:20 -06:00
Alin Jerpelea
65ce2b6217 Merged in alinjerpelea/nuttx (pull request #918)
configs: spresense: add USBDEV_SETNOTIFYSIG signal id

Set signal id for notify USB device connection status and
supply current value.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-26 12:21:59 +00:00
Alin Jerpelea
7427cee2cf Merged in alinjerpelea/nuttx (pull request #916)
configs: spresense: Enable UID functionality

To enable the UID functionality for spresense board
set BOARDCTL_UNIQUEID in menuconfig

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-26 11:48:01 +00:00
Masayuki Ishikawa
0dff6cb789 Merged in masayuki2009/nuttx.nuttx/fix_audio_underrun (pull request #917)
configs/lc823450-xgevk: Remove cpu assignment for lpwork

This change will reduce audio underrun when running dvfs auto mode.

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-26 11:47:03 +00:00
Gregory Nutt
5ad003cd9f configs/makerlisp/src/sd_main.c: Correct some backward conditional compilation. 2019-06-25 17:46:55 -06:00
Gregory Nutt
d7c4cca84d Trivial typo fix to a comment. 2019-06-25 12:27:26 -06:00
Alin Jerpelea
bfda93d66b Merged in alinjerpelea/nuttx (pull request #915)
arch: arm: cxd56xx: I2C, SPISD, Charger and Gauge

* arch: arm: cxd56xx: add I2C character driver

    for testing purposes, we use the CXD56_I2C_DRIVER to register the
    /dev/i2c[] character devices.

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: use I2C character driver

    We should use the CXD56_I2C_DRIVER to register the /dev/i2c[]
    character devices.

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: add battery gauge driver

    add battery gauge driver for cxd56xx chip

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch: arm: cxd56xx: add charger driver

    add charger driver for cxd56xx chip

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* arch:arm: cxd56xx: add SPI SDCard configuration

    Add SPI SDCARD functionality configuration

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: enable gauge driver

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: enable charger driver

    enable charger driver on spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-25 12:06:47 +00:00
Gregory Nutt
aa7a6825d0 arch/arm/src/efm32/efm32_usbhost: Apply Adam Porter's STM32 fix to EFM32 which has the same IP. 2019-06-24 07:50:24 -06:00
Alin Jerpelea
c62d90fdb7 Merged in alinjerpelea/nuttx (pull request #914)
configs: spresense: add I2CTOOL support and extend GPIO for future use

* arch: arm: cxd56xx: add delay support

    add delay support for cxd56xx chip

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: register I2C busses

    for development is usefull to register I2C busses when the I2CTOOL
    is built

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs:spresense: enable GPIO interface

    enable GPIO interface on spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-24 13:39:46 +00:00
Gregory Nutt
df664a8334 configs/makerlisp/src/sd_main.c: Add a tiny FLASH-resident loader that will load and start applications in intel HEX format from an SD card. 2019-06-23 08:23:03 -06:00
Adam Porter
37c4fb5477 In stm32_ctrlout() in the HS and FS host drivers, the data buffer isn't sent. This patch passes the buffer and buflen to the stm32_ctrl_senddata() function. With this change, I am able to send MBIM control messages to my USB modem, and read the response. 2019-06-23 07:05:21 -06:00
Michael Jung
393f5b96dd configs/pnev5180b: Add usbnsh configuration. This is basically the same as the 'nsh' defconfig, but uses CDC/ACM as the NuttShell console device. 2019-06-22 07:32:52 -06:00
Adam Porter
3505cce201 drivers/usbhost/usbhost_composite.c: The cfgdesc pointer was initialized after the buffer had been advanced, so it was not pointing where it should. The totallen operations at the end of the function ended up overwriting memory belonging to the first copied interface descriptor. 2019-06-22 07:27:15 -06:00
Gregory Nutt
d0c569d7b5 net/tcp/tcp_send_buffered.c: Fix a warning reported in build testing. 2019-06-21 13:48:27 -06:00
Gregory Nutt
0e9b71d925 Correct some coding standard problems in last PR. 2019-06-21 10:42:21 -06:00
Phil Coval
a54f9d5b2a Merged in rzr/nuttx/sandbox/rzr/review/master (pull request #913)
stm32f7: Add GPIO driver

Code is inspired from stm32f3discovery
and nucleo-l476rg platforms.

It was tested on Nucleo-F767ZI PB2 (@ CN12: 12th from top on right) using:

    gpio -o 1  /dev/gpout1
    gpio -o 0  /dev/gpout1

More insight at:
https://github.com/rzr/webthing-iotjs/wiki/MCU#

Relate-to: https://github.com/rzr/webthing-iotjs/issues/3
Change-Id: I01e5c7d28c175458d3fd2ecf63c139333c22eb0a
Forwarded: https://bitbucket.org/nuttx/nuttx/pull-requests/
Signed-off-by: Philippe Coval <p.coval@samsung.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-21 16:34:06 +00:00
Gregory Nutt
d8c282a9b6 arch/arm/src/imxrt/Kconfig: Trivial correction to a variable description. 2019-06-21 09:07:52 -06:00
Adam Porter
7d42b19a8d drivers/usbhost/usbhost_composite.c: I'm working on a CDC/NCM driver and in my driver's usbhost_cfgdesc() function I need access to the class-specific descriptors. Currently these are not available if the interface is part of a composite device, since only interface and endpoint descriptors are copied by usbhost_copyinterface(). This comit will also copy any class-specific interface descriptors for use in downstream class drivers.
NOTE: There's one change that might be incorrect, where I skip interfaces with zero endpoints. I did this because my device has two consecutive interface descriptors with the same interface number, one for altsetting 0 with no endpoints, and another for altsetting 1 with 1 endpoint.  The loop was aborting due to finding two interface descriptors back-to-back.
2019-06-21 06:58:44 -06:00
Alin Jerpelea
977893d5a7 Merged in alinjerpelea/nuttx (pull request #912)
configs: spresense: enable BMI160_I2C sensor

* drivers: sensors: add BMI160 driver

    Enable driver support for the Bosch BMI160 Inertial
    Measurement sensor

    This driver can be used with the BMI160 sensor connected over
    SPI or I2C bus

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: enable BMI160_I2C sensor

    Enable BMI160 sensor connected over I2C on spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-20 13:32:36 +00:00
Adam Porter
af9b70ca5d STM32,F7,H7,L4 OTG FS/HS: Fix constant using in comparison to determine endpoint is interrupt type. 2019-06-20 06:58:35 -06:00
Adam Porter
ac46dbbffd drivers/usbhost: Remove duplicate const in usbhost files. 2019-06-20 06:49:56 -06:00
Alin Jerpelea
2fcee80799 Merged in alinjerpelea/nuttx (pull request #911)
configs: spresense: remove SPI MMC/SD & add ADC

* configs: spresense: remove SPI MMC/SD support

    SPI MMC/SD is not used on spresense board.

    A commit will follow to add support for custom boards

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

* configs: spresense: enable ADC support

    enable ADC support for spresense board

    Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-19 15:05:16 +00:00