Gregory Nutt
3f1869ea9d
Rename CONFIG_ARCH_HAVE_TRIGGER_HOOK to CONFIG_ARCH_HAVE_IRQTRIGGER
2018-08-25 09:10:30 -06:00
Gregory Nutt
9bc951a335
Rename devif_loopback_out to devi_loopback
2018-08-25 08:33:21 -06:00
DisruptiveNL
cd2ced4d9a
drivers/sensors and configs/nucleo-l476g: Add support for LSM303AGR and LSM6DSL sensors
2018-08-25 08:19:31 -06:00
Gregory Nutt
3bf96c8e7e
net/arp: Improve arp_find() commit 9774d35010
to reduce the amount and frequency of data copies.
2018-08-25 07:12:21 -06:00
zhuguangqing
d38be46655
sched/irq: Add support interrupt chains in NuttX. IRQ chain is very useful in these cases: (1) Multiple hardware connect to the same request line(e.g. PCI), (2) Need multiple driver to support one hardware block (like Linux MFD)
2018-08-24 15:10:23 -06:00
Xiang Xiao
149748e4ed
drivers/net: drivers/net: Add support for Microchip LAN91C111 driver
2018-08-24 11:07:07 -06:00
Xiang Xiao
fc194cf2ec
drivers/timers: Add a new method to the struct oneshot_operations_s interface to get the current time from a oneshot timer driver (if it is available from the lower half)
2018-08-24 10:21:29 -06:00
Xiang Xiao
a6c68d233d
drivers/timers: Add maxtimeout method to the struct timer_ops_s interface
2018-08-24 10:16:17 -06:00
Xiang Xiao
3af35699b9
include/nuttx/clock.h, sched/sched: Support the CPU load measurement using timer_lowerhalf_s interface
2018-08-24 10:10:57 -06:00
Xiang Xiao
0074afa0ac
net/netdev: add devif_loopback_out() to check the loopback case where a packet is being sent to itself. Modify the net driver to call this function in this case. This function will simply re-inject the packet back into the network and the network driver will not put anything on the wire.
2018-08-24 09:21:33 -06:00
ligd
fb90f821fb
include/nuttx/arch.h: Add architecture-specific prototypes for conversions between physical and virtual address.
2018-08-24 08:40:45 -06:00
Xiang Xiao
430bf16f1e
Squashed commit of the following:
...
include/nuttx/arch.h: Add prototype for an architecture-specific up_trigger_irq function
arch/, include/nuttx, sched/sched: Add the garbage collection hook so each architecture can do custom memory cleanup if necesary.
arch/Kconfig: Add configureation CONFIG_ARCH_GNU_NO_WEAKFUNCTIONS to suppress use of weak functions. Some gnu derived toolchains do not support weak symbols
2018-08-24 08:30:01 -06:00
dongjianli
0df5e56e20
include/nuttx/arch.h: Add prototype for an architecture-specific up_trigger_irq function
2018-08-24 08:25:06 -06:00
Xiang Xiao
36b46a6a40
arch/ and task/sched: vfork operation needs to allocate and copy the task argument too. Also correction of the address correction cannot depend on the stack pointer since it is not available in all architectures. Rather callculate the offset from the stack allocation pointer
2018-08-24 07:43:00 -06:00
Gregory Nutt
e90f0403a6
binfmt/: Mostly cosmetic changes from review of a previous commit.
2018-08-24 06:10:50 -06:00
Gregory Nutt
9157422312
include/dsp.h: Add extern C support for use with C++
2018-08-23 12:54:13 -06:00
xuanlin
2c93467436
pthreads: Add support static pthread stack. Add standard pthread_attr_setstack() and pthread_attr_getstack(). In all cases where the stack is released, add check to see which allocator must be used to free the stack: The user or the kernel allocator.
2018-08-23 09:49:20 -06:00
Xiang Xiao
86eef8ce3a
mm/: add mm_heapmember function and reimplement kmm_heapmember base on mm_heapmember since this function is very useful if multiple heaps exist.
2018-08-23 09:38:49 -06:00
Xiang Xiao
377eb30129
binfmt: Add binfmt_initialize(). All binary formats are now registered centrally vs. in board-specific logic. This simplifies the usage of the binfmt subsystem.
2018-08-23 09:09:39 -06:00
Xiang Xiao
e2ccce1f2e
apps/system/system/system.c: Add 'const' to make function prototype compatible with OpenGroup.org requirement
2018-08-23 06:40:59 -06:00
Gregory Nutt
07ef3fe018
Another update to the coding standard; Add some comments detailing the POSIX non-compliance in include/signal.h
2018-08-21 15:27:37 -06:00
Gregory Nutt
f20a2b4dcd
include/sys/param.h: Add a dummy sys/param.h header file. This is not a standard file but is used by other systems and having the dummy file may minimize some porting efforts.
2018-08-19 08:24:30 -06:00
Gregory Nutt
ed4aae0fe0
include/endian.h and libs/libc/endian: Add support for endian.h.
2018-08-19 07:44:04 -06:00
Gregory Nutt
0e5b02552a
inclued/stdio.h: popen()/pclose() are not available in KERNEL mode because they depend on task_spawn() which is not available in KERNEL mode.
2018-08-17 16:06:01 -06:00
Gregory Nutt
4dac881e24
include/stdio.h: Add prototypes for popen() and pclose(). Actual implementation is in apps/system/popen()
2018-08-17 10:40:59 -06:00
ichael Jung
aad8f6e45f
drivers/usbdev/cdcecm.c: Adds USB Device Support for CDC/ECM
2018-08-16 08:49:11 -06:00
Gregory Nutt
4a724b1f3c
net/: Remove all references to CONFIG_NET_USER_DEVFMT. That feature is now unconditionally enabled. This was done because (1) the feature does not require very much additional memory, and (2) it causes confusion in the configuration due to the additional complexity. And network drivers that fail to zero the device structure interface name field (d_ifname) because calling netdev_register() will, however, get a nasty surprise.
2018-08-14 08:01:52 -06:00
Gregory Nutt
ef3abe1423
Add missing function names in function headers.
2018-08-13 15:53:15 -06:00
Gregory Nutt
8c61c2f31b
Remove trailing spaces at the end of lines.
2018-08-13 07:39:38 -06:00
Gregory Nutt
25fa50d504
fs/proc and sched/environ: Add support for a procfs entry that will permit examining the environment of any task.
2018-08-10 10:16:39 -06:00
Gregory Nutt
3973640fff
Update some comments. Remove references to non-existent CONFIG_MAX_TASK_ARG.
2018-08-08 17:06:46 -06:00
Gregory Nutt
4e5cf1229c
drivers/mmcsd/Kconfig: three configuration settings were within ifdef/endif and led to warning: xxx selects xxxx which has unmet direct dependencies. Fix by moving settings to drivers/Kconfig and outside of the ifdef-endif. Also renamed CONFIG_SDIO_PREFLIGHT to CONFIG_ARCH_HAVE_SDIO_PREFLIGHT to follow naming of similar hidden architecture capability configurations.
2018-08-05 17:58:17 -06:00
Gregory Nutt
b4b531ef1b
include/nuttx/binfmt/binfmt.h: Remove fields from struct binary_s that are not longer used after commit 20a86dfc1b
.
2018-08-05 08:50:43 -06:00
Gregory Nutt
20a86dfc1b
binfmt/ and sched/group: Re-architect the way that loadable ELF or NXFLAT modules are unloaded. Memory resources must be recovered when the task loaded into memory exits. The originmal implementatino used the death-of-child SIGCHLD signal to perform the unload. There are several problems with this: It is overly complex, it requires that the parent task stay resident while the loaded task runs, and it has fatal logic flaws in the protected and kernel model builds because the user signal handler attempts to run in the kernel address space. This commit corrects with using a mindlessly simply BINFMT callback when the task exits.
2018-08-05 08:09:54 -06:00
Gregory Nutt
d68b0c35f9
Squashed commit of the following:
...
configs/olimex-stm32-p407: Various changes as necessary to get the new kelf configuration working.
configs/olimex-stm32-p407: Add kernel ELF (kelf) configuration.
2018-08-04 16:18:51 -06:00
Gregory Nutt
056d704cf9
This commit brings in a fragmentary, experimental implementation of NETLINK sockets. There is not too much to that socket support on this initial commit, just the netlink socketer framework. However, I decided to bring it into master because there is a enough that I would not want to lose what is in place. And since it is dependent on CONFIG_EXPERIMENATL, its presence on master should be innocuous.
...
Squashed commit of the following:
net/netlink: Mark netlink support as EXPERIMENTAL.
net/netlink/netlink_sockif.c: Add netlink_getpeername to the socket interface.
net: Add getpeeername() support for netlink sockets.
include/netpacket/netlink.h: Add a few more definitions and structures used at the NetLink interface. Still missing many.
net/netlink: Add basic framework for Netlink socket support.
include/: Add basic Netlink definitions.
2018-08-03 13:22:36 -06:00
Gregory Nutt
2fd4925965
Update some comments
2018-08-03 09:30:31 -06:00
Gregory Nutt
10069067c1
include/nuttx/i2c/i2c_master.h: Rename I2C_M_NORESTART to I2C_M_NOSTART since it may be used in other contexts than a repeated start. Add comments to clarilfy setup for repeated start.
2018-08-03 08:51:55 -06:00
Gregory Nutt
ee28cd9aeb
include/nuttx/i2c/i2c_master.h: Add a definition to distinguish a new START of messages from a repeated start. No lower-half I2C drivers actually implement this new flag bit, however. drivers/i2c/i2c_writeread.c: Use new repeated START definition where appopriated. Other: Some cosmetic changes, updates to README files, etc.
2018-08-03 07:43:57 -06:00
Gregory Nutt
09ccd43d61
arch/arm/include/armv7-m, arch/arm/include/armv7-m, arch/arm/include/stm32f7: Add a configuration to enable workaround for r0p1 Errata 837070: Increasing priority usingwrite to BASEPRI does not take effect immediately.
...
This update is required to be serialized to the instruction stream meaning that after this update completes, it takes effect immediately and no exceptions of lower priority than the new boosted priority can pre-empt execution. Because of this erratum, the priority boosting does not take place immediately, allowing the instruction after the MSR to be interrupted by an exception of lower priority than the new boosted priority. This effect is only limited to the next instruction. Subsequent instructions are guaranteed to see the new boosted priority.
This was raised in Bitbucket issue 113 from Vadzim Dambrouski.
2018-08-02 16:51:58 -06:00
Gregory Nutt
f649db2405
Costmetic changes during review of MAX3421E logic.
2018-08-02 13:58:26 -06:00
Daniel Pereira Carvalho
d755b07a06
drivers/analog: Add driver for digital to analog converted DAC7571.
...
configs/nucleo-l432kc: Add support for a connect DAC7571 converter.
2018-08-02 06:40:48 -06:00
Gregory Nutt
41666dafa8
drivers/usbhost/usbhost_max3421e.c: Fix an error in reading the pending interrupts. Aos fix a number of typos and update a README.
2018-07-29 15:06:44 -06:00
Masayuki Ishikawa
bdfd25757e
Merged in masayuki2009/nuttx.nuttx/remove_sys_nnetsocket (pull request #696 )
...
include/sys: Remove unused SYS_nnetsocket from syscall.h
Because SYS_nnetsocket is not implemented so far, it should be
removed so that SYS_prctl can work correctly.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-26 13:37:44 +00:00
Masayuki Ishikawa
874bf7835d
Merged in masayuki2009/nuttx.nuttx/fix_maxsyscall (pull request #694 )
...
include/sys: Fix SYS_maxsyscall in syscall.h
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: GregoryN <gnutt@nuttx.org>
2018-07-25 04:26:12 +00:00
Alan Carvalho de Assis
f887bdb6d6
Squashed commit of the following:
...
configs/stm32f4discovery/src: Add board support to MAX7219 as numeric display controller
drivers/leds/max7219.c: Add support to MAX7219 to control 7-segment displays
2018-07-22 15:13:39 -06:00
Gregory Nutt
b75103e264
Update some comments.
2018-07-22 05:56:11 -06:00
Gregory Nutt
5a89459783
libs/libc/unistd/: Add a crippled version of daemon().
2018-07-20 07:56:09 -06:00
Gregory Nutt
58bbb66481
libs/libc/stdlib and include/stdlib.h: Add implementation of random() and srandom().
2018-07-19 11:21:49 -06:00
Gregory Nutt
d588a94de8
Small update to some comments.
2018-07-19 09:09:53 -06:00