Xiang Xiao
11bccf42ea
include/nuttx/usb/audio.h: Fix warning: 'missing whitespace after the macro name'
2018-08-29 06:10:52 -06:00
ligd
289af9a0fb
configs/boardctl.c: Add support for board_app_finalinitialize()
2018-08-28 15:34:31 -06:00
Gregory Nutt
0756cf66ed
sched/signal: Add support for SIGINT in addition to SIGKILL. drivers/serial: Use SIGINT instead of SIGKILL when control-C is pressed.
2018-08-28 12:15:31 -06:00
Gregory Nutt
e7ce9bbfc4
drivers/serial: Integrate new Ctrl-C logic with the ISIG flag in the termios c_lflag. Fix several compiler errors resulting from recently flurry of renaming.
2018-08-28 09:15:29 -06:00
Xiang Xiao
70a0bf0849
Squashed commit of the following:
...
fs/partition/fs_partition.c: Add PTABLE parser
fs/partion: Add a partition parser framework
fs/driver/fs_blockpartition.c: Add register_blockpartition for block partition
2018-08-28 07:30:21 -06:00
Xiang Xiao
8b5ac497ad
drivers/mtd/ftl.c: Support initialization of an FTL block device with a custom name
2018-08-28 07:15:57 -06:00
Xiang Xiao
159b88c871
include/limits.h and include/sys/types.h: Fix warning about 'SIZE_MAX' redefined. include/nuttx/usb/audio.h: Fix warnings due to '-' used whete '_' intended.
2018-08-28 06:41:57 -06:00
wangyanjiong
25f2bcea38
drivers/mtd: Add gd25 driver
2018-08-28 06:31:54 -06:00
Gregory Nutt
499b89feed
sched/signal: Default Signal Actions. Change some types to superficially simplify. Add configuration options to enabled default signal behaviors on a per-signal basis. I don't think users are prepared for SIGALRM to terminate the task (which is the correct default behavior if you don't change it). Extend the implementation of default signals so that it is totally table driven and extensible by simply mondifying the content of const tables.
2018-08-27 15:37:43 -06:00
zhuguangqing
1bbe9baa29
drivers/pm: PM: Add PM_RESTORE to notify driver that device exit WFI so the driver could restore state. For example, WDT may stop counting before enter low power state and restore the counting agian in PM_RESTORE notification
2018-08-27 13:26:33 -06:00
zhuguangqing
7f4064e511
drivers/pm: PM: Decrease the power state in the reverse order. Since the child driver need power off before parent driver.
2018-08-27 13:22:11 -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
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
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
23f14c2660
net/usrsock: Add the listen/accept/getpeername/ioctl support
2018-08-26 15:15:48 -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
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
Xiang Xiao
3f50451046
fs/vfs/fs_fcntl.c, net/socket/net_dupsd.c, and net/socket/net_vfcntl.c: Add file_fcntl, psock_fcntl, and psock_dupsd for use within the kernel.
2018-08-26 13:31:18 -06:00
ligd
aa52c457cc
fs/vfs/fs_fstat.c: Add file_fstat() function for internal OS use.
2018-08-26 13:26:37 -06:00
Xiang Xiao
ead2c40cd4
Squashed commit of the following:
...
drivers/serial/uart_16550.c: Support 16550 auto hardware flow control
drivers/serial/uart_16550.c: Add configuration option CONFIG_16550_SUPRESS_INITIAL_CONFIG. This is identical to the standard configuration in arch/Kconfig CONFIG_SUPPRESS_UART_CONFIG, but with scope of only the 16550 driver.
2018-08-26 11:37:16 -06:00
Xiang Xiao
46e47c8dcf
Squashed commit of the following:
...
drivers/serial/uart_16550.c: Add a configuration, analogous to the STM32 configuration option, to suppress the NuttX standard re-ordering for /dev/ttySN for special case of the 16550 UART.
config/serial: UART 16550: Add CONFIG_SERIAL_UART_ARCH_MMIO option so the a memory mapped device doesn't need to provide uart_getreg() and uart_putreg() implementations.
u16550_txempty() should check UART_LSR_TEMT to avoid some data left in the transmit FIFO
2018-08-26 11:17:33 -06:00