Xiang Xiao
af284c1e23
drivers/power/: PM: Don't update the power state in work thread: (1) Simplify the code logic and remove the work queue dependence, (2) Power calculation is too simple to delay into the work queue
2018-08-27 13:20:28 -06:00
zhuguangqing
7d9787d530
drivers/power: PM: Add pm_querystate function
2018-08-27 13:18:09 -06:00
Xiang Xiao
006b7d3963
drivers/power: PM: Add pm_stay and pm_relax function so special apps(e.g. mediaplayer) could disable suspend during playback much like linux kernel counterpart
2018-08-27 13:16:34 -06:00
Gregory Nutt
6d094e4b33
sched/signals: Update the signal default action logic to support sigaction(). signaction() must be able to handle and input action of SIG_DFL to setup the default signal action; it mast also return SIG_DFL it is replacing the default action.
2018-08-27 13:13:23 -06:00
Xiang Xiao
6c057e608b
Squashed commit of the following:
...
drivers/timers/arch_timer.c: implement timer arch API on top of timer driver interface
drivers/timers/arch_alarm.c: Implement alarm arch API on top of oneshot driver interface
drivers/timers/arch_rtc.c: Implement RTC arch API on top of RTC driver interface
include/nuttx/timers/rtc.h: Extend struct rtc_time by adding tm_nsec if RTC supporst hiresolution time.
2018-08-27 11:55:30 -06:00
Gregory Nutt
c0d234a474
Squashed commit of the following:
...
drivers/serial/Kconfig: It is no longer necessary to restrict Ctrl-C handling to the FLAT build
sched/signal: Add a new configuration option to select signal default actions, separate handling of signal default actions from both task startup logic and from the serial TTY Ctrl-C logic. Add a signal set in the group structure to keep track of what signals have been set to the default action. In dispatching signals in PROTECTED or KERNEL mode, use this signal set to determine if the default signal handler is attached and dispatch the signal in kernel mode for the default actions.
2018-08-27 11:40:09 -06:00
Xiang Xiao
798922b9c6
include/nuttx/lib/modlib.h: Eliminate warning: 'CONFIG_MODLIB_MAXDEPEND' is not defined'
2018-08-27 11:39:52 -06:00
zhuyanlin
459d9f2851
Squashed commit of the following:
...
driver/ioexpander: Add gpio_pin_unregister function to GPIO driver
driver/ioexpander: Add pinset struct to GPIO driver for interrupt pins larger than 64
driver/ioexpander: Initialize pintype/inttype when registering ioexpander device
driver/ioexpander: Add SETPINTYPE ioctl command to the GPIO driver
2018-08-27 09:25:11 -06:00
Xiang Xiao
b5f8c035a6
audio/audio_comp.c: Add the composite audio driver
2018-08-27 09:03:09 -06:00
ZhongAn
85a993999e
drivers/audio/audio_i2s.c: Add audio_i2s device driver.
2018-08-27 08:52:08 -06:00
ZhongAn
47db09633c
include/nuttx/audio/i2s.h: Add i2s_rxchannels and i2s_txchannels methods to the I2S lower half interface.
2018-08-27 08:37:57 -06:00
anchao
d795344014
nuttx/audio: Add hardware format support
2018-08-27 07:58:22 -06:00
ZhongAn
d77b9b1209
include/nuttx/audio/audio.h: Add ioctl cmd 'AUDIOIOC_SETBUFFERINFO' so user space could config the buffer
2018-08-27 07:57:16 -06:00
Xiang Xiao
d025162542
libs/libc/audio/lib_buffer.c: Call nxsem_destroy in apb_free
2018-08-27 07:49:23 -06:00
ZhongAn
4d115e925f
include/nuttx/audio/audio.h: Change member samp of apb to pointer so driver can customize sample buffer allocation
2018-08-27 07:45:27 -06:00
Juha Niskanen
7d734b52bd
arch/arm/src/stm32/stm32f30xxx_i2c.c: Fix compile error with I2C reset
2018-08-27 07:39:29 -06:00
Xiang Xiao
eb02b28428
drivers/audio: Move the I2S character driver to a dedicated folder.
2018-08-27 07:26:22 -06:00
Xiang Xiao
0308a86435
drivers/pwm: Move pwm.c into pwm folder
2018-08-27 07:17:34 -06:00
Xiang Xiao
ff1cba6ab5
drivers/crypto: Move dev_urandom.c into new crypto folder.
2018-08-27 07:14:01 -06:00
anchao
5f28be71e5
Kconfig: Move 'option modules' from NSH_FILE_APPS to BUILD_LOADABLE
2018-08-27 07:06:57 -06:00
zhuyanlin
7864ef1588
include/nuttx/nuttx.h: Added nuttx.h header file which is analogous to the linux.h header file. Currently, it contains on the defintion of the container_of() macro.
2018-08-27 06:52:02 -06:00
Xiang Xiao
894ca622e6
nclude/sys/types: Move wint_t and wctype_t from wchar.h to types.h. This change is compatible as before since wchar.h include types.h indirectly. This fixes a compilation error with newlib's math.h: 'unknown type name wint_t'
2018-08-27 06:26:37 -06:00
QianWenfa
e2e0911bc4
include/nuttx/mutex.h: Add inline wrapper functions to more clearly support semaphores when used as mutexs.
2018-08-27 06:26:11 -06:00
liuhaiyang
0c9a4ac4f9
nclude/nuttx/semaphore: apply the semaphore wait function nxsem_wait_uninterruptible(). The function nxsem_wait_uninterruptible() is a wrapped version of nxsem_wait(), which is uninterruptible and convenient for use.
2018-08-27 06:07:50 -06:00
Gregory Nutt
8980b08fae
include/nuttx/semaphore.h: don't include nuttx/fs/fs.h. (1) Avoid nested loops if CONFIG_SIG_EVTHREAD enabled, (2) semaphore.h doesn't depends on fs.h.
2018-08-27 06:05:28 -06:00
Xiang Xiao
71ad1993f2
Move clock_timespec_[add|subtract] to include/nuttx/clock.h
2018-08-27 06:04:04 -06:00
dongjiuzhu
bd24562aa5
include/nuttx/i2c/i2c_master.h: Add the standard speed macros.
2018-08-27 06:02:13 -06:00
Xiang Xiao
05949ff79c
include/spawn.h: Fix posix_spawnattr_destroy warning: 'the address of attr will always evaluate as true'
2018-08-27 06:00:33 -06:00
zhuguangqing
8780c51cb3
include/queue.h: Add dq_tail marco
2018-08-27 05:57:53 -06:00
zhuyanlin
57b91a8cfc
include/nuttx/kmalloc.h: Add {kumm/kmm}_calloc API. Add calloc API for manage user memory and kernel memory in Flat Build/Kernel Build without kernel heap.
2018-08-27 05:55:09 -06:00
Xiang Xiao
439aac1449
include/nuttx/compiler.h: fix warning: __cplusplus is not defined. Some gcc derived compiler do not define __cplusplus
2018-08-27 05:53:16 -06:00
Xiang Xiao
c139478f60
nclude/nuttx/fs/binfs.h: Fix warning: Type defaults to 'int' in declaration of 'mountpt_operations'
2018-08-27 05:50:52 -06:00
Xiang Xiao
1d9546ac1b
include/crc64.h: fix warning: integer constant is too large for its type
2018-08-27 05:47:59 -06:00
Gregory Nutt
05faba2514
include/nuttx/fs/fs.h: ... conflicting types for file_fstat().
2018-08-26 16:13:09 -06:00
dongjianli
09c689ea15
net/icmp and icmpv6: Fix failure to poll ICMP socket issue.
2018-08-26 15:37:03 -06:00
Xiang Xiao
40b0e98d25
net/icmp/icmp_conn.c and net/icmpv6/icmpv6_conn.c: Change the type of id in icmpv[6]_findconn to uint16_t
2018-08-26 15:28:02 -06:00
dongjianli
23f14c2660
net/usrsock: Add the listen/accept/getpeername/ioctl support
2018-08-26 15:15:48 -06:00
Xiang Xiao
42f7c3e927
net/usrsock: Optimize option dependence
2018-08-26 15:05:46 -06:00
ligd
3ae93762b7
net/usrsock/usrsock.h: Fix re-definitions of struct iovec.
2018-08-26 15:03:32 -06:00
Xiang Xiao
31b3dc6c27
net/usrsock: Combine some the duplicated logic.
2018-08-26 15:01:53 -06:00
Gregory Nutt
67193ff5c4
net/usrsock/: Correct of semphore usage issues.
2018-08-26 14:59:04 -06:00
Xiang Xiao
4c61565bbc
include/nuttx/net/ethernet.h: Remove CONFIG_NET_ETHERNET guard
2018-08-26 14:55:47 -06:00
dongjianli
b48804cfc2
net/netdev/netdev_ioctl.c: Add si_ioctl callback and net_ioctl_arglen so usrsock could forward the ioctl to the remote end
2018-08-26 14:54:26 -06:00
Xiang Xiao
3eedabfded
net/socket/getsockname.c: Add psock_getsockname function
2018-08-26 14:43:13 -06:00
Xiang Xiao
fd1405d976
netdev_findby_ipv[4|6]addr return netdev_default() as last resort but don't return loopback device if another network device is in the UP state.
2018-08-26 14:40:47 -06:00
zhangyuan7
da1a323f34
net/tcp/tcp_monitor.c: Fix net unlock issue when tcp close. This bug could leave the net locked.
2018-08-26 14:32:06 -06:00
Xiang Xiao
49548da297
net/Kconfig: Uncomment the prompt of NET_SLIP_PKTSIZE
2018-08-26 14:28:35 -06:00
Xiang Xiao
bcf9360e5f
Move psock check from [get|set]sockopt to psock_[get|set]sockopt
2018-08-26 14:25:54 -06:00
Gregory Nutt
655be281e6
include/nuttx/compiler.h, include/poll.h: Add logic to determine if the compiler supports anonymous structures and unions.
2018-08-26 14:20:58 -06:00
dongjianli
56883eef3b
fs/vfs/fs_poll.c: Add poll use in kernel space.
2018-08-26 13:44:07 -06:00