Commit Graph

31843 Commits

Author SHA1 Message Date
Alexander Oryshchenko
dd4fc9f5c3 arch/arm/src/stm32: Make STM32 usable with an external RTC. drivers/timers/ds3231.c: Correct some debug statments. 2018-01-24 06:55:14 -06:00
Alexander Oryshchenko
a7834bcb7b drivers/mtd/at24xx.c: Correct page size for AT24C02 part. 2018-01-24 06:51:34 -06:00
Gregory Nutt
5e49e9e937 Update some comments. 2018-01-24 06:50:20 -06:00
Gregory Nutt
82cb799bb6 net/udp: Fix memory leak with UDP + write buffer is closed. Also update TODO and comments and refresh a configuration. 2018-01-23 11:54:03 -06:00
Gregory Nutt
f2017bded8 net/udp: UDP write buffering is basically functional but needs a lot more verification. 2018-01-23 07:32:17 -06:00
Gregory Nutt
289e4dde06 net/udp and tcp: Yet another (cosmetic) change to UDP and TCP write buffer macro naming. 2018-01-22 19:33:14 -06:00
Gregory Nutt
2d4fa19a54 net/udp: Resolves final design issues with UDP write buffering. 100% code complete but also 100% untested. 2018-01-22 19:27:05 -06:00
Gregory Nutt
fa3ad46897 net/udp: In sendto(), return EHOSTUNREACH if if the network is down. 2018-01-22 18:46:58 -06:00
Gregory Nutt
fef255e5be 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-22 18:32:02 -06:00
Gregory Nutt
0406fff888 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-22 14:14:32 -06:00
Gregory Nutt
12d7125b75 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-22 11:11:23 -06:00
Gregory Nutt
a8b6be4aaf 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-22 08:17:45 -06:00
David Alessio
6ae6ecc958 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-22 13:20:35 +00:00
Juha Niskanen
83a87e08e8 fs/userfs: use correct req type in userfs_truncate, remove use of undeclared buf 2018-01-22 07:14:54 -06:00
Fanda
460d362eb7 Merged in fvacek/nuttx (pull request #580)
NUCLEO F432KC typo fixed, correct name is L432KC

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-01-21 18:28:47 +00:00
Mateusz Szafoni
5af7e3de2a 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>
2018-01-21 18:28:09 +00:00
Fanda Vacek
9916ca89e6 NUCLEO F432KC typo fixed, correct name is L432KC
Just README.txt and comments affected, no changes in the code
2018-01-21 19:06:22 +01:00
Gregory Nutt
0c034c8dd3 Update TODO list 2018-01-21 07:47:13 -06:00
Gregory Nutt
f153df28d3 configs/nucleo-l432kc: Fix numerous cloning errors/typos. 2018-01-20 16:16:35 -06:00
Fanda
c12a34db13 Merged in fvacek/nuttx (pull request #578)
Issue #85: /dev/userleds is not working for nucleo-l432kc fixed

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-01-20 22:06:09 +00:00
Fanda Vacek
d0ae325c15 Issue #85: /dev/userleds is not working for nucleo-l432kc fixed 2018-01-20 23:02:34 +01:00
Gregory Nutt
bcffeae4fd Update README and some comments 2018-01-20 12:59:56 -06:00
Gregory Nutt
82cc0ead67 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. 2018-01-20 07:44:35 -06:00
Gregory Nutt
e8e8914cab Documentation: Fix copy/paste error in NX graphics document. Noted by Henjiu Kang. 2018-01-20 07:11:33 -06:00
Gregory Nutt
be3c2d1e36 Change ASSERT(false) to DEBUGPANIC(). 2018-01-19 09:07:19 -06:00
Gregory Nutt
f012fe96cb sched/sched/sched_sporadic.c: fix compiler error when priority inheritance is enabled. Noted by eunb.song@samsung.com 2018-01-19 08:54:29 -06:00
Masayuki Ishikawa
1cf11e18fe Merged in masayuki2009/nuttx.nuttx/nxsem_post_with_assert (pull request #577)
sched/semaphore: Add ASSERT(false) in nxsem_post() if no waiting task is found.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-01-19 13:39:07 +00:00
Masayuki Ishikawa
99b944fb6e sched/semaphore: Add ASSERT(false) in nxsem_post() if no waiting task is found.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2018-01-19 22:17:58 +09:00
Gregory Nutt
9417bfde0e include/termios.h: Update comments; fix long lines. 2018-01-18 12:51:07 -06:00
Gregory Nutt
ff8cdcc89f configs/lpcxpresso-lpc54628: Update README 2018-01-18 11:14:54 -06:00
Gregory Nutt
c0a343a6f0 configs/lpcxpresso-lpc54628/lvgl: Add LittlevGL graphics demo configuration. 2018-01-18 10:00:27 -06:00
Gregory Nutt
3fb0a50036 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. 2018-01-18 09:59:31 -06:00
Gregory Nutt
ce7df1f961 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). 2018-01-18 06:57:38 -06:00
Matt Thompson
1ec8a6f34c Merged in extent3d/nuttx (pull request #575)
SAMDL: SPI must be disabled before changing the mode bits in CTRLA register

* SAMD External Interrupt Controller (EIC) support

* removed comment

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

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-01-18 12:33:41 +00:00
Masayuki Ishikawa
0184f8818a Merged in masayuki2009/nuttx.nuttx/lc823450_fixes (pull request #576)
lc823450 fixes

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-01-18 12:32:41 +00:00
Masayuki Ishikawa
0fa630d29d 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>
2018-01-18 14:02:39 +09:00
Masayuki Ishikawa
a3ed16dd30 arch/arm/src/lc823450: Change irqwarn() to ASSERT() in up_ack_irq()
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2018-01-18 14:02:24 +09:00
Masayuki Ishikawa
d43c52cf03 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>
2018-01-18 13:55:12 +09:00
Matt Thompson
d7cc0c7368 SAMDL: SPI must be disabled before changing the mode bits in CTRLA register 2018-01-17 17:23:05 -08:00
Matt Thompson
bd70ac9c2f Merge remote-tracking branch 'upstream/master' 2018-01-17 11:51:57 -08:00
Gregory Nutt
d481ac347d configs: Both CONFIG_LIB_BOARDCTL=y and CONFIG_BOARD_INITIALIZE=y is not meaningful in the standalone NxWM. CONFIG_LIB_BOARDCTL=y is the better option so CONFIG_BOARD_INITIALIZE=y removed from these configurations. 2018-01-17 13:51:29 -06:00
Gregory Nutt
6deebac4ae configs: There should be either CONFIG_LIB_BOARDCTL=y or CONFIG_BOARD_INITIALIZE=y in the defconfig of every standalone NxWM configuration to assure that all of the board resources are initialized... especially the touchscreen since it it now a part of the board driver initialization. 2018-01-17 12:12:07 -06:00
Gregory Nutt
3ff30608ef arch/arm/src/samdl: Mostly cosmetic improvements to previous commit. 2018-01-17 11:39:43 -06:00
Gregory Nutt
2d95fa6d2a arch/arm/src/samdl: Correct a link time error if CONFIG_SAMDL_EIC is not enabled. 2018-01-17 11:16:21 -06:00
Dmitriy Linikov
667ff07e6a Merged in hardlulz/modem-3.0-nuttx/fix-smartfs-build (pull request #574)
Fixed misprint in smartfs_utils.c

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-01-17 17:01:27 +00:00
Gregory Nutt
c456b87dcd configs: CONFIG_MAX_TASKS muast be a power of 2 2018-01-17 10:54:39 -06:00
Gregory Nutt
43390c78ea configs: Since the touch screen initialization is now called from one-time board-initialization logic, it no longer needs protection from re-entry. 2018-01-17 10:14:03 -06:00
Gregory Nutt
301bf1ee77 This commit eliminates the BOARDIOC_TSCTEST_SETUP command.
Squashed commit of the following:

    configs:  Each board now initializes the touchscreen controller as a normal part of its board bring-up.  board_tsc_setup() is gone; the touchscreen controller is now treated like any other on-board device.
    Remove all support for BOARDIOC_TSCTEST_SETUP
    Move prototype for board_tsc_setup() from include/nuttx/board.h to individual board header files.
2018-01-17 09:33:28 -06:00
DL
7d1f133774 Fixed misprint in smartfs_utils.c 2018-01-17 15:57:06 +03:00
Masayuki Ishikawa
21eff99d72 Merged in masayuki2009/nuttx.nuttx/sched_note (pull request #573)
SMP: Introduce spin_lock_wo_note() and spin_unlock_wo_note()

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-01-17 07:04:24 +00:00