Gregory Nutt
7769bd490c
sched/signal/sig_nanosleep.c: Fix an error introduced with recent commit. Noted by Jussi Kivilinna.
2018-09-17 06:21:25 -06:00
Rajan Gill
d647127d14
libs/libc/math: Small change to log() and logf() that improves accuracy and convergence time
2018-09-16 15:14:15 -06:00
Gregory Nutt
ed5620897f
Remove a warning
2018-09-16 13:04:12 -06:00
Rajan Gill
6da2658fdd
libs/libc/math: Add variable convergence in log() and logf() to avoid hangs caused by failure to converge for very specific input values.
2018-09-16 12:22:36 -06:00
Gregory Nutt
9f8f1cc5cf
libs/libc/wqueue/work_usrthread.c: Fix some errors that I introduced in a recent commit.
2018-09-16 11:07:24 -06:00
Gregory Nutt
ef8ebe5e93
Documentation: Update the documentation to reflect that fact that NxWidgets is now a part of apps/
2018-09-16 10:40:24 -06:00
Gregory Nutt
ba04f6d4cb
Revert "configs/mikroe-stm32f4/fulldemo: Remove CONFIG_NXWM_TOUCHSCREEN_CONFIGDATA from configuration"
...
This reverts commit fb5152a40a
.
2018-09-16 10:26:36 -06:00
Gregory Nutt
fb5152a40a
configs/mikroe-stm32f4/fulldemo: Remove CONFIG_NXWM_TOUCHSCREEN_CONFIGDATA from configuration
2018-09-16 10:21:25 -06:00
raiden00pl
af8a002a10
Merged in raiden00/nuttx_h7 (pull request #720 )
...
I2C support for STM32H7
* stm32h7/chip.h: update peripherals
* stm32h7x3xx_rcc.h: update definitions
* stm32h7x3xx_rcc.c: remove some unused code and configure I2C clocks
* stm32h7: add lower half I2C driver (based on F7 I2C driver)
* configs/nucleo-h743zi: add LSM303AGR and LSM6DSL configuration
* Remove whitespace
* sensors/lsm303agr.c, sensors/lsm6dsl.c: add mising include, remove whitespace
Approved-by: GregoryN <gnutt@nuttx.org>
2018-09-16 15:58:25 +00:00
Gregory Nutt
2a325135f5
configs/*/README.txt: Remove obsoleted references to installing NxWidgets.
2018-09-16 09:39:20 -06:00
Gregory Nutt
68a7fbf109
tools/tesbuild.sh: No longer installs and builds the NxWidgets libraries. They are now a port of apps/.
2018-09-16 07:13:18 -06:00
Freemans Goden
b3d0574c98
configs/b-l475e-iot01a/include/b-l475e-iot01a_clock.h: Correct timer source clock frequencies.
2018-09-16 05:50:35 -06:00
Gregory Nutt
a01cbede38
net/local/local_fifo.c: Fix an error found in build testing.
2018-09-15 18:13:49 -06:00
Gregory Nutt
abc0e58799
sched/task/task_restart.c: Fix a compile error if CONFIG_DISABLE_SIGNALS defined.
2018-09-15 14:51:04 -06:00
Gregory Nutt
8c4cefdd10
Fix some new warndings found in build testing.
2018-09-15 13:22:45 -06:00
Gregory Nutt
94f26c0220
fs/inode/fs_fileclose.c: Move file_close() a separate file. It no longer makes since for it to cohabitate with file_detach().
2018-09-15 13:19:14 -06:00
Gregory Nutt
3a4984a40b
Rename file_close_detached() to juse file_close() for better consistency in naming.
2018-09-15 13:04:56 -06:00
Gregory Nutt
b48f46f1c8
Correct some errors found in build testing using recent commits.
2018-09-15 12:47:54 -06:00
Gregory Nutt
53b7b41f90
configs/stm32l4r9ai-disco/src/stm32_adc.c: Replace calls to ioctl() in the OS to file_ioctl()
2018-09-15 12:26:31 -06:00
Gregory Nutt
a83b6d990b
Replace callse to ioctl() in the OS to file_ioctl()
2018-09-15 11:47:24 -06:00
Gregory Nutt
5a0c6547d9
include/nuttx/fs/fs.h: Fix some backward paramters in a new macro definition.
2018-09-15 11:01:26 -06:00
Gregory Nutt
a7fd58c4db
Squashed commit of the following:
...
many locations: Change occurences of open() followed by file_detach() to file_open(). Change most non-controversion calls to open() to nx_open().
fs/inode/fs_fileopen.c: Flesh out file_open() with some interim, placeholder logic.
fs/inode/fs_fileopen.c: Add a framework for a file_open() implementation (no real logic in place yet).
fs/vfs/fs_open.c: Add nx_open() which is the same as open() except that it does not create a cancellation point nor does it modify the errno variable.
2018-09-15 10:49:41 -06:00
Jussi Kivilinna
17b0c9b6b0
net/inet/inet_sockif.c: Fix compiler warning noted by Xiang Xiao
2018-09-14 09:04:25 -06:00
Gregory Nutt
dc48263a6a
libs/libc/wqueue/work_usrthread.c: Revise commit 49e725625a
. Use sigprocmask() so tht we do not lose a signal, not sched_lock() which will not do the job in SMP mode.
2018-09-14 09:02:03 -06:00
Gregory Nutt
49e725625a
libs/libc/wqueue/work_usrthread.c: Eliminate a race condition noted by Xiang Xiao.
2018-09-14 07:51:31 -06:00
Jussi Kivilinna
3a65d39eb8
net/usrsock: Revert 'net/usrsock: Optimize option dependence', commit 42f7c3e927
. Re-allow combination of usrsock and NuttX TCP/IP stack. For example, in case device has Ethernet and mobile connectivity and NuttX TCP/IP stack is used when configured to use Ethernet connection and usrsock when configured to use modem (modem TCP/IP stack through usrsock).
2018-09-14 07:18:37 -06:00
Gregory Nutt
9546481054
Fix some typographical errors.
2018-09-14 06:55:45 -06:00
Gregory Nutt
c9187c2928
task/task_restart.c: Restarted was had sigprocmask set. Noted by Jeongchan Kim
2018-09-14 06:51:38 -06:00
EunBong Song
a279815434
fs/smartfs/smartfs_smart.c: Current sector should have a space for next entry size. If not, we should move to next sector.
2018-09-14 06:36:55 -06:00
Gregory Nutt
a04d2eeb10
tools/Directories.mk: Correct the path to the installed libcxx directory.
2018-09-13 14:03:09 -06:00
Gregory Nutt
2b6dd99c2e
Revert "Merged in antmerlino/nuttx/fix-libcxx-build-warning (pull request #719 )"
...
This reverts commit 57e5142b98
.
2018-09-13 13:59:28 -06:00
Gregory Nutt
22da175629
mm/iob: Add a divider that can be used to reduce the rate of IOB notifications.
2018-09-13 06:56:29 -06:00
Anthony Merlino
57e5142b98
Merged in antmerlino/nuttx/fix-libcxx-build-warning (pull request #719 )
...
Fixes build error. libcxx moved into libs/libxx/libcxx
Approved-by: GregoryN <gnutt@nuttx.org>
2018-09-12 21:38:08 +00:00
Gregory Nutt
11d181d3d3
net/tcp/tcp_netpoll.c: 'if' should have been 'else if'
2018-09-12 15:14:24 -06:00
Anthony Merlino
d533cc53df
tools/Config.mk: Fix an error in RWILDCARD implemenation
2018-09-12 11:52:10 -06:00
Gregory Nutt
6e60af91e4
net/udp/udp_netpoll.c: Port TCP poll changes to UDP.
2018-09-12 10:10:54 -06:00
Gregory Nutt
b3f0aab00a
Squashed commit of the following:
...
sched/wqueue/kwork_notifier.c: Redesign some data structures. struct works_s must appear at the beginning of the notifier entry structure. That is because it contains the work queue indices. This solves a harfault issue.
net/tcp/tcp_netpoll.c: tcp_iob_work() needs to free the allocated argument when it is finished.
net/tcp/tcp_send_buffered.c: Extend psock_tcp_cansend() so that it also requires that at least on IOB is also avaialble.
mm/iob: iob_navail() was returning the number of free IOB chain queue entries, not the number of free IOBs. Completely misnamed.
net/tcp/tcp_netpoll.c: Add logic to receive notifications when IOBs are freed (Needs CONFIG_NET_TCP_WRITE_BUFFERS and CONFIG_IOB_NOTIFIER). At present, does nothing because the logic in in psock_tcp_cansend() does not check for the availability of IOBs. That will change.
2018-09-12 08:57:06 -06:00
Gregory Nutt
76eec53e4f
mm/iob: iob_navail() was returning the number of free IOB chain queue entries, not the number of free IOBs. Completely misnamed.
2018-09-12 06:40:18 -06:00
Gregory Nutt
a680553f35
net/tcp/tcp_netpoll.c: Add logic to receive notifications when IOBs are freed (Needs CONFIG_NET_TCP_WRITE_BUFFERS and CONFIG_IOB_NOTIFIER). At present, does nothing because the logic in in psock_tcp_cansend() does not check for the availability of IOBs. That will change.
2018-09-12 06:40:18 -06:00
David Sidrane
4a1b8e5825
Merged in david_s5/nuttx/master_kinetis_i2c_reset_hf (pull request #718 )
...
kinetis:i2c On faild reset re-init i2c and clocking
If a reset fails, we still must reinitializes the
i2c block so that subsequent transfers will not
cause a hardfault due to the clock being off.
If that transfer fails it can try to reset
again.
Approved-by: GregoryN <gnutt@nuttx.org>
2018-09-11 22:14:37 +00:00
Gregory Nutt
884ee6e43e
net/tcp and net/udp: In the POLLOUT poll logic, request an immediate Tx poll from the network device bound to the socket. This obviously cannot work if there is not single device bound to the network device.
2018-09-11 10:31:11 -06:00
Gregory Nutt
11a635dcb3
mm/iob: IOB free notifier should accept the work queue ID as a paramter. The notification may need to run on either the high- or low- priority work queue. sched/work: Change the default priority of the low-priority work queue to 100.
2018-09-11 08:49:39 -06:00
EunBong Song
91aa26774b
This patch prevent heap corruption as in below case.
...
TASK A TASK B
malloc()
mm_takesemaphore()
heap holder is set to TASK B
<--- preempt
...
task_exit()
Set to current task to
TASK B
Try to release tcb, and
stack memory
free()
mm_takesemaphore()
- Successfully obtain
semaphore because current
task and heap holder is
same.
Free memory....
Heap corrupt.
This change forces all de-allocations via sched_kfree() and sched_ufree()
to be delayed. Eliminating the immediate de-allocation prevents the
above problem with the the re-entrant semaphore because the deallocation
always occurs on the worker thread, never on TASK B.
There could be consequences in the timing of memory availability. We
will see.
2018-09-11 08:17:33 -06:00
Xiang Xiao
c24fdb3ada
configs: Fix build error caused by commit 459d9f2851
2018-09-11 07:24:29 -06:00
Gregory Nutt
af0ee3c8f7
sched/wqueue: Add an option to work queue notifier so that the notification can occur on different work queues.
2018-09-11 07:22:23 -06:00
Gregory Nutt
39df7ed0c0
mm/iob and sched/semaphore: Work around some issues with the IOB throttle semaphore. It has some odd behaviors that can cause assertions in sem_post(). Also, it seems to get outside of its range occasionally. Need to REVISIT this.
2018-09-10 11:32:09 -06:00
Gregory Nutt
53930763f4
sched/sched/sched_waitpid.c: Remove a bad error check. I though Juha already removed this problem. Did I lose his change?
2018-09-10 06:57:12 -06:00
Gregory Nutt
4cb61bd8c2
sched/wqueue: Notifier design cleanup. The original concept used pre-allocated notification data structures. However, the notification dat must persist for an indeterminate amount of time. So the design was modified to use dynamically allocted data structures. This commit simplifies the design by removed some residual 'machinery' that is no longer needed.
2018-09-10 06:29:51 -06:00
Jakob Haufe
fe4790ec18
Merged in sur5r/nuttx-nuttx/lpc43_eth_pins (pull request #717 )
...
arch/arm/src/lpc43xx: Fix ethernet TX_EN pin definitions
TX_EN on LPC43xx can be routed via P0.1 and PC.4 in both
MII and RMII mode.
Before, P0.1 was hardcoded for MII and PC.4 was hardcoded for RMII.
Also, the definitions used inconsistent naming (TXEN vs. TX_EN).
Approved-by: GregoryN <gnutt@nuttx.org>
2018-09-10 11:56:52 +00:00
Gregory Nutt
09d5d05b95
net/TCP: Extend the TCP notification logic logic so that it will also report loss of connection events.
2018-09-09 17:32:10 -06:00