Commit Graph

31766 Commits

Author SHA1 Message Date
Gregory Nutt
947191780f tools: Trivial. define _GNU_SOURCE to be 1, don't just define it. 2018-01-30 11:08:18 -06:00
Matt Thompson
20016b841a Merged in extent3d/nuttx (pull request #587)
SAMDL: Added Timer Compare for Control registers header

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-01-29 19:20:00 +00:00
Gregory Nutt
8956a6001f tools/logparser.c: A few more minor enhancements. Also add #define _GNU_SOURCE to all C files that call asprintf() 2018-01-29 13:13:29 -06:00
Gregory Nutt
4b44a84bc9 tools/logparser.c: Fix some issues, improve output a little. 2018-01-29 11:51:43 -06:00
Gregory Nutt
fce345113f tools/logparser: Add a tool which (when it matures) will help me to convert git logs to ChangeLog format. 2018-01-29 10:50:14 -06:00
Juha Niskanen
dafa72edc3 drivers/sensors: add support to MAX44009 ambient light sensor 2018-01-29 07:56:06 -06:00
Bob Feretich
a0cd711334 I have a SPI bus with both Mode 0 and Mode 3 devices on it. After performing SPI I/O to a Mode 0 device, switching to a Mode 3 device locked up the SPI interface. Only zeroes would be read. I traced the reason for the lock-up to arm/arm/src/stm32f7/stm32_spi.c function spi_setmode(). Changing the mode causes a spurious SPI clock transmission that confuses the stm32f7 SPI input hardware. This problem is solved by (1) changing the SPI mode with SPI (and perhaps DMA) disabled, and (2) flushing the receive FIFO if the mode change results in garbage in the FIFO. 2018-01-29 07:23:52 -06:00
Gregory Nutt
eef8bb7fc5 Update README 2018-01-29 07:17:17 -06:00
Matt Thompson
fc04b5f018 Merged in extent3d/nuttx (pull request #586)
SAMDL: Added Analog Comparator headers and basic initialization

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-01-29 12:13:31 +00:00
Matt Thompson
c5e231bedd SAMDL: Added Analog Comparator headers and basic initialization 2018-01-28 21:11:37 -08:00
Matt Thompson
621567507c Merged nuttx/nuttx into master 2018-01-28 21:08:51 -08:00
Mateusz Szafoni
0afbcb0bab Merged in raiden00/nuttx (pull request #585)
Master

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-01-28 13:46:17 +00:00
Gregory Nutt
6c277d082f configs/flipnclick-pic32mz: Apply same LED fix as for flipnclick-sam3x. The LED code is cloned. 2018-01-28 07:42:02 -06:00
raiden00pl
cec8709ec1 stm32/Kconfig: fix COMP7 dependency
stm32_hrtim: add HRTIM push-pull mode configuration

stm32f334-disco: add buck-boost converter mode
2018-01-28 11:06:08 +01:00
Gregory Nutt
67d09e831b Fix recurring typo: *tino->*tion 2018-01-27 13:34:58 -06:00
Gregory Nutt
c0a79a8e45 configs/flipnclick-sam3x: Fix an error in the control of one LED. LEDs should not be pulled up since they are active high. 2018-01-27 12:42:51 -06:00
Gregory Nutt
12e3e47d3c Update comments, mostly spelling errors. 2018-01-27 09:37:46 -06:00
Gregory Nutt
49d07162bf arch/arm/src/stm32: stm32_rtcc.h should be used to access BKP registers on F2, F3, and F4. 2018-01-26 11:34:48 -06:00
Gregory Nutt
bffa425233 arch/arm/src/stm32: stm32_bkp.h should only be used for STM32 F1 2018-01-26 11:26:40 -06:00
Gregory Nutt
fc387b9aa0 arch/arm/src/stm32: Remove bogus definitions of STM32_BKP_BASE from the F2, F3, and F4 memory maps. Unlike the F1, these parts do not have a separate BKP address region. The BKP registers are with the RTCC address regions. 2018-01-26 11:18:46 -06:00
Gregory Nutt
9e60dffc5a arch/srm/src/stm32f7: Remove confusing, redundant, and misleading STM32_BKP_BASE definitions. 2018-01-26 08:50:21 -06:00
Frank Benkert
e15fc0b65a arch/arm/src/samv7/sam_lowputc.c: Fix undefined variable when using USART1 for other purposes than UART (e.g. SPI). 2018-01-26 07:52:45 -06:00
Matt Thompson
72da8f711b Merged nuttx/nuttx into master 2018-01-25 13:01:51 -08:00
Matt Thompson
2bc4967c0f Merged in extent3d/nuttx (pull request #583)
SAMDL: Added DMAC header for SAMD, fixed up sam_dmac to compile with debugging enabled
2018-01-25 20:15:58 +00:00
Matt Thompson
424a3aa827 SAMDL: Added DMAC header for SAMD, fixed up sam_dmac to compile with debugging enabled 2018-01-25 11:44:37 -08:00
Matt Thompson
f118d1ad02 Merged nuttx/nuttx into master 2018-01-25 11:34:36 -08:00
Gregory Nutt
23c6debc63 configs/flipnclick-sam3x: Update README and comments to discuss I2C access on all mikroBUS connectors. 2018-01-25 13:33:09 -06:00
Matt Thompson
7549f894b0 Merge remote-tracking branch 'upstream/master' 2018-01-25 11:24:30 -08:00
Gregory Nutt
483dfe80d9 configs/flipnclick-pic32mz and flipnclick-sam3x: Update README and add pin definitions to support SPI on all mikroBUS connectors. 2018-01-25 12:45:02 -06:00
Gregory Nutt
633e90225e configs/flipnclick-sam3x (also Arduio-Due): Remove disabling of environmont, mountpoints, and poll. Add NSH arch initialization so that procfs will be automounted. Increase task name size from 0 to 32. Update README. 2018-01-25 10:37:16 -06:00
Matt Thompson
d314feab82 Merged in extent3d/nuttx (pull request #582)
SAMDL: Added SAMD DAC header file. Fixed SAMD EVSYS header. Added SAMD TC header file. Fixed some minor typos

* SAMD External Interrupt Controller (EIC) support

* removed comment

* SAMDL: SPI must be disabled before changing the mode bits in CTRLA register

* arch/arm/src/lc823450: Assign I2S IRQ handling to CPU0

    Previous commit assumed that the caller is running on CPU0.
    However, the caller sometimes runs at CPU1.  This patch will
    assign the caller to CPU0 explicitly.

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

* arch/arm/src/lc823450: Change irqwarn() to ASSERT() in up_ack_irq()

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

* configs/lc823450-xgevk: Update README.txt and defconfigs

    Update comments on SMP in README.txt
    Enable SYSTEM_TIME64 in defconfigs.
    Enable INSTRUMENTATION in rndis configuration.

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

* configst/stm3240g-eval:  Remove only bogus logic to start the NX server.  That was there only to support the knxwm configuration and was implemented priorit to boardctl(BOARCIOC_NX_START).

* drivers/input/ft5x06.c:  Remove cool logic to disable polling when there there is no client waiting for read data.  That was a great idea to save CPU cycles when there is nothing reading from the touchscrren but, unfortunately, does not work with readers that open the driver in non-blocking mode.  So I think we just have to eat the CPUs even when there is nothing waiting for touchscreen input.

* configs/lpcxpresso-lpc54628/lvgl:  Add LittlevGL graphics demo configuration.

*  configs/lpcxpresso-lpc54628: Update README

* include/termios.h:  Update comments; fix long lines.

* sched/semaphore: Add ASSERT(false) in nxsem_post() if no waiting task is found.

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

* sched/sched/sched_sporadic.c: fix compiler error when priority inheritance is enabled.  Noted by eunb.song@samsung.com

* Change ASSERT(false) to DEBUGPANIC().

* Documentation: Fix copy/paste error in NX graphics document.  Noted by Henjiu Kang.

* sched/sched:  Fix some priority inheritance related issues noted during review of logic.  Also add some REVISIT comments for some issues noted in the design.

* Update README and some comments

* Issue #85: /dev/userleds is not working for nucleo-l432kc fixed

* configs/nucleo-l432kc: Fix numerous cloning errors/typos.

* Update TODO list

* NUCLEO F432KC typo fixed, correct name is L432KC

    Just README.txt and comments affected, no changes in the code

* Merged in raiden00/nuttx (pull request #579)

    Master

    * stm32_hritm: add interface to get timer clock frequency

        stm32_hrtim: fix timer freq calculation

        stm32_hrtim: add compar/capture registers significant bits checking

        stm32_hrtim: minor changes

    * stm32f334-disco: add buck converter and boost converter logic

    Approved-by: Gregory Nutt <gnutt@nuttx.org>

* fs/userfs: use correct req type in userfs_truncate, remove use of undeclared buf

* Merged in david_alessio/nuttx/refactor-pll-setup (pull request #581)

    Refactor pll setup

    * fix typo in #def

    * refactor PLL setup code...

    * refactored PLL/CLK config, easier, checks for correctness

    * call go_os_start if STACK_COLORIZED

    * smarter config of EXTCLK output freq

    * cosmetic

    Approved-by: Gregory Nutt <gnutt@nuttx.org>

* The existence of the network driver ioctl() method should depend on CONFIG_NETDEV_IOCTL rather than CONFIG_NETDEV_PHY_IOCTL.  The former enables the method, the later enables a subset of possible driver IOCTLs.  This change should be basically a no-operation.  The affected ioctl methods only support those subset of driver IOCTLs selected by CONFIG_NETDEV_PHY_IOCTL and the network logic will tolerate a nul ioctl method.

* net/tcp:  Write buffering logic should not wait for a free buffer if the socket was opened non-blocking.  Also, rename the TCP write buffering macros from WRB_* to TCPWB_* to make room in the namespace for write buffering with other protocols.

* net/udp:  Remove some conditional logic that was true if there is only a single network device, but not true in the multi-device context.

* This commit adds an as-of-yet untested implemented of UDP write buffering.

    Squashed commit of the following:

        net/udp:  Address most of the issues with UDP write buffering.  There is a remaining issue with handling one network going down in a multi-network environment.  None of this has been test but it is certainly ready for test.  Hence, the feature is marked EXPERIMENTAL.
        net/udp:  Some baby steps toward a corrected write buffering design.
        net/udp:  Remove pesky write buffer macros.
        Eliminate trailing space at the end of lines.
        net/udp:  A little more UDP write buffering logic.  Still at least on big gaping hole in the design.
        net/udp:  Undefined CONFIG_NET_SENDTO_TIMEOUT.
        net/udp:  Crude, naive port of the TCP write buffering logic into UDP.  This commit is certainly non-functional and is simply a starting point for the implementatin of UDP write buffering.
        net/udp:  Rename udp/udp_psock_sendto.c udp/udp_psock_sendto_unbuffered.c.

* net/udp:  In sendto(), return EHOSTUNREACH if if the network is down.

* net/udp:  Resolves final design issues with UDP write buffering.  100% code complete but also 100% untested.

* net/udp and tcp:  Yet another (cosmetic) change to UDP and TCP write buffer macro naming.

* net/udp:  UDP write buffering is basically functional but needs a lot more verification.

* net/udp:  Fix memory leak with UDP + write buffer is closed.  Also update TODO and comments and refresh a configuration.

* Update some comments.

* drivers/mtd/at24xx.c: Correct page size for AT24C02 part.

* arch/arm/src/stm32:  Make STM32 usable with an external RTC.   drivers/timers/ds3231.c:  Correct some debug statments.

* arch/arm/src/stm32/stm32_spi.c: Removed unnecessary (and incorrect) speed limitation

* arch/arm/src/stm32/stm32f40xxx_i2c.c:  Correct some recent changes to STM32F4 I2C that broke poll mode of operation.

* configs/flipnclick-sam3x:  Using JTAG (vs. Bossac) I was finally able to load code and verify the basic NSH configuration.  Updated READMEs.  Also switched to USART0 (vs UART0) for the serial console because I was not getting bi-directional communication on the VCOM.

* SAMDL: Added SAMD DAC header file. Fixed SAMD EVSYS header. Added SAMD TC header file. Fixed some minor typos

* fix typo

* added missing EVCTRL register bits in TC

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-01-25 11:55:40 +00:00
Matt Thompson
92448a1053 added missing EVCTRL register bits in TC 2018-01-24 19:33:06 -08:00
Matt Thompson
357455ff0f fix typo 2018-01-24 19:23:11 -08:00
Matt Thompson
1ae8daf5d5 SAMDL: Added SAMD DAC header file. Fixed SAMD EVSYS header. Added SAMD TC header file. Fixed some minor typos 2018-01-24 19:06:00 -08:00
Gregory Nutt
822e67692b configs/flipnclick-sam3x: Using JTAG (vs. Bossac) I was finally able to load code and verify the basic NSH configuration. Updated READMEs. Also switched to USART0 (vs UART0) for the serial console because I was not getting bi-directional communication on the VCOM. 2018-01-24 19:00:51 -08:00
Alexander Oryshchenko
9e965247e4 arch/arm/src/stm32/stm32f40xxx_i2c.c: Correct some recent changes to STM32F4 I2C that broke poll mode of operation. 2018-01-24 19:00:51 -08:00
Alexander Oryshchenko
ec6145e8f7 arch/arm/src/stm32/stm32_spi.c: Removed unnecessary (and incorrect) speed limitation 2018-01-24 19:00:51 -08:00
Alexander Oryshchenko
871419c3cd arch/arm/src/stm32: Make STM32 usable with an external RTC. drivers/timers/ds3231.c: Correct some debug statments. 2018-01-24 19:00:51 -08:00
Alexander Oryshchenko
f232c862da drivers/mtd/at24xx.c: Correct page size for AT24C02 part. 2018-01-24 19:00:51 -08:00
Gregory Nutt
bfbedceea0 Update some comments. 2018-01-24 19:00:51 -08:00
Gregory Nutt
58b95f4629 net/udp: Fix memory leak with UDP + write buffer is closed. Also update TODO and comments and refresh a configuration. 2018-01-24 19:00:51 -08:00
Gregory Nutt
7f245e2720 net/udp: UDP write buffering is basically functional but needs a lot more verification. 2018-01-24 19:00:51 -08:00
Gregory Nutt
f04dec14cc net/udp and tcp: Yet another (cosmetic) change to UDP and TCP write buffer macro naming. 2018-01-24 19:00:51 -08:00
Gregory Nutt
7dc436a134 net/udp: Resolves final design issues with UDP write buffering. 100% code complete but also 100% untested. 2018-01-24 19:00:51 -08:00
Gregory Nutt
2f548a880c net/udp: In sendto(), return EHOSTUNREACH if if the network is down. 2018-01-24 19:00:51 -08:00
Gregory Nutt
880176e1cb This commit adds an as-of-yet untested implemented of UDP write buffering.
Squashed commit of the following:

    net/udp:  Address most of the issues with UDP write buffering.  There is a remaining issue with handling one network going down in a multi-network environment.  None of this has been test but it is certainly ready for test.  Hence, the feature is marked EXPERIMENTAL.
    net/udp:  Some baby steps toward a corrected write buffering design.
    net/udp:  Remove pesky write buffer macros.
    Eliminate trailing space at the end of lines.
    net/udp:  A little more UDP write buffering logic.  Still at least on big gaping hole in the design.
    net/udp:  Undefined CONFIG_NET_SENDTO_TIMEOUT.
    net/udp:  Crude, naive port of the TCP write buffering logic into UDP.  This commit is certainly non-functional and is simply a starting point for the implementatin of UDP write buffering.
    net/udp:  Rename udp/udp_psock_sendto.c udp/udp_psock_sendto_unbuffered.c.
2018-01-24 19:00:51 -08:00
Gregory Nutt
055a3ef844 net/udp: Remove some conditional logic that was true if there is only a single network device, but not true in the multi-device context. 2018-01-24 19:00:51 -08:00
Gregory Nutt
5ab4eb4f30 net/tcp: Write buffering logic should not wait for a free buffer if the socket was opened non-blocking. Also, rename the TCP write buffering macros from WRB_* to TCPWB_* to make room in the namespace for write buffering with other protocols. 2018-01-24 19:00:51 -08:00
Gregory Nutt
fccd44387a The existence of the network driver ioctl() method should depend on CONFIG_NETDEV_IOCTL rather than CONFIG_NETDEV_PHY_IOCTL. The former enables the method, the later enables a subset of possible driver IOCTLs. This change should be basically a no-operation. The affected ioctl methods only support those subset of driver IOCTLs selected by CONFIG_NETDEV_PHY_IOCTL and the network logic will tolerate a nul ioctl method. 2018-01-24 19:00:51 -08:00
David Alessio
65afc69dc8 Merged in david_alessio/nuttx/refactor-pll-setup (pull request #581)
Refactor pll setup

* fix typo in #def

* refactor PLL setup code...

* refactored PLL/CLK config, easier, checks for correctness

* call go_os_start if STACK_COLORIZED

* smarter config of EXTCLK output freq

* cosmetic

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-01-24 19:00:51 -08:00