Anthony Merlino
ee840c74da
Merged in antmerlino/nuttx/samv7_emac_bna_fix (pull request #824 )
...
arch/arm/src/samv7/sam_emac.c: Fixes rxdesc index logic to handle Buffer Not Available (BNA) condition.
If a SOF is found, but no EOF, don't move past the frame. Instead, keep the index at the SOF buffer until the rest of the data is written.
This fixes a receiver lockup condition where the peripheral and this driver get out of sync with there head pointers. In this case the driver has moved past buffers it owns, without clearing ownership, which results in the peripheral and driver in a deadlock with each other.
Approved-by: GregoryN <gnutt@nuttx.org>
2019-02-02 21:56:20 +00:00
Gregory Nutt
7a0e62e24f
arch/arm/src/samv7/sam_emac.c: Fix a compile problem introduced with commit cf1e0f7976
.
2019-02-01 16:14:41 -06:00
Gregory Nutt
cf1e0f7976
arch/arm/src/samv7/sam_emac.c: The logic for determining the number of queues for SAMV71 must be extended. All SAMv7 parts increase the number of queues from 3 to 6 at revision B, not just the SAMV71.
2019-02-01 15:42:11 -06:00
Gregory Nutt
40b74d1f1c
sched/wqueue/kwork_notifier.c: Fix broken assertion introduced in recent commit. Breaks non-error path. Suggested by Jussi Kivilinna in Butbucket commit comment.
2019-02-01 08:53:18 -06:00
David Sidrane
2f18326c09
arch/arm/src/imxrt/chip/imxrt_gpt.h: Correct register offsets.
2019-01-30 16:40:27 -06:00
Kevin Liu
46895dc86b
1./arch/arm/src/samv7/sam_spi.c DMA Tx/Rx timeout issue.
...
2./arch/arm/src/samv7/sam_qspi.c compiling error when set CONFIG_SAMV7_QSPI_DLYBCT
3. fix compiling error when set CONFIG_BOARDCTL_IOCTL/CONFIG_BOARDCTL_UNIQUEID
2019-01-30 10:07:01 -06:00
Gregory Nutt
8dd17362e3
sched/sched/sched_processtimer.c: Should include board if CONFIG_SYSTEMTICK_HOOK=y.
2019-01-30 08:21:09 -06:00
Gregory Nutt
6408857f6d
sched/sched/sched_processtimer.c: Add a configurable call out to a user-provided function, 'timer hook', on each timer interrupt.
2019-01-30 07:22:44 -06:00
David Sidrane
d70cb97950
arch/arm/src/imxrt/chip/imxrt_tmr.h: Fix addressing and restructure using common offset
2019-01-29 17:28:51 -06:00
David Sidrane
f7003f8ef2
arch/arm/src/imxrt: Add XBAR Support
2019-01-29 17:24:27 -06:00
Gregory Nutt
2fc9b7acfc
Update some comments.
2019-01-29 17:13:54 -06:00
Gregory Nutt
0aca9e4cfb
configs/nucleo-144/f767-netnsh/defconfig: Correct one location where CONFIG_NET_HOSTNAME was not changed to CONFIG_LIB_HOSTNAME.
2019-01-29 10:51:03 -06:00
Xiang Xiao
b9c55919b2
fs/littlefs/lfs_vfs.c: Fix typographical errors in the VFS wrapper.
2019-01-29 07:39:25 -06:00
Xiang Xiao
2f49cdb311
include/nuttx/list.h: Fix some typos.
2019-01-29 07:37:22 -06:00
Gregory Nutt
88353226c9
arch/arm/src/lpc17xx/lpc17_allocateheap.c: Fix some errors introduced in my last change. Noted by Pavel Pisa
2019-01-28 15:11:36 -06:00
Gregory Nutt
5a0f514615
drivers/timers/timer.c: Support the signal notification through SIGEV_THREAD
2019-01-28 06:32:27 -06:00
Xiang Xiao
b9c7a9a18f
binfmt/libelf/libelf_load.c: Remove the guard(CONFIG_BUILD_KERNEL) for umm_initialize()
2019-01-28 06:19:48 -06:00
Xiang Xiao
39d83375d2
arch/arm/src Serial: Remove duplicated inclusion of nuttx/fs/ioctl.h
2019-01-28 06:16:15 -06:00
Nikolay Semenov
5bbd831222
configs/nucleo-l432kc/src/stm32_appinit.c: Add support for I2C driver initialization.
2019-01-28 06:12:52 -06:00
Gregory Nutt
5bf7890d32
arch/arm/src/lpc17xx/lpc17_allocateheap.c: Correct some confusion in the memory layout introduced in commit 40d666f440
. The 'primary ram' may be either the internal SRAM or the external DRAM (in the case where an external bootloader has previously initialized the SDRAM). The primary ram is laid out as: .data, .bss, then the IDLE stack allocation. The global variable g_idlestack is the top of the IDLE stack and also the beginning of memory available for the heap in primary ram. With this change, a range comparison is used to determin if g_idlestack lies in SRAM or SDRAM. If so, then the remainder of the memory is available for HEAP usage.
2019-01-28 06:08:30 -06:00
Pavel Pisa
40d666f440
arch/arm/src/lpc17xx/: The enable of EMC clocks has to be preserved when already enabled by loader. EMC and related pins configuration has to be skipped if the system is run from SDRAM. A region of SDRAM which is used by system must not be used for heap.
2019-01-27 17:45:19 -06:00
Pavel Pisa
f43560c080
arch/arm/src/lpc17xx/lpc176x_clockconfig.c: The code preserves undocumented reserved bits only if board does not set them to keep previous behavior for boards where developers (hopefully) know what values should be set into these bits.
2019-01-27 17:30:01 -06:00
Gregory Nutt
78c8485b0d
Fix some warnings found in build testing.
2019-01-27 17:23:01 -06:00
Gregory Nutt
732bef73a7
include/net/if.h: Fix some macro definitions overlooked in commit d105dc9b5e
. Also corrects the name of a structure: mii_ioctl_notify_s vs mii_iotcl_notify_s.
2019-01-27 16:43:42 -06:00
Gregory Nutt
4b9abfa3c2
Every file that uses serial IOCTLs (TIOC*) must explicity include nuttx/fs/ioctl.h. This was included previously via sneak path in the now deleted arch/serial.h.
2019-01-27 13:41:44 -06:00
Gregory Nutt
2992660420
arch/arm/src/imxrt: Fix another newly introduced compilarsion error due to missing inclusion of nuttx/fs/ioctl.h. I think this is a side-effect of removing arch/serial.h which probably provided a sneak inclusion path for nuttx/fs/ioctl.h. We will just have to fix them one at a time as they pop-up in build testing.
2019-01-27 13:25:58 -06:00
Gregory Nutt
5b400cdf20
arch/arm/src: Fix newly introduced compilarsion errors in two more serial drivers: lpc17xx and lc8223450. Not sure why this are not occuring, but including nuttx/fs/ioctl.h.
2019-01-27 13:21:44 -06:00
Gregory Nutt
e4336bd1be
arch/arm/src/am335x/am335x_serial.c: Eliminate an error 'TIOCSBRK undeclared.
2019-01-27 12:49:42 -06:00
Xiang Xiao
af5e479fb5
fs/littlefs: VFS wrapper improvement: (1) Support block device interface, (2) support ioctl, stat and sync file operation, (3) support forceformat and autoformat option, (4) update file->f_pos and dir->fd_position, (5)remote the internal struct from dir, and (6) emove mtd byte read/write requirement.
2019-01-27 12:31:28 -06:00
Xiang Xiao
c511ff7ea2
fs/littlefs: Fix a minor issue found in code review: (1) Replace printf to finfo/fwarn/ferr, (2) Replace malloc/free to kmm_malloc/kmm_free, (3) define LFS_NAME_MAX to NAME_MAX, (4) Check the big endian using CONFIG_ENDIAN_BIG.
2019-01-27 12:16:02 -06:00
Xiang Xiao
bdbc91be98
drivers/syslog/ramlog.c: Fix error: Conflicting types for 'ramlog_addchar'
2019-01-27 12:12:19 -06:00
ligd
6ba29a93b6
fs/hostfs/hostfs.c: Remove the unnecessary use of host_stat() in hostfs_bind()
2019-01-27 12:10:19 -06:00
Xiang Xiao
5708a1ac73
fs/mount and fs/romfs: Add support to mount a ROMFS volume using an MTD driver interface using the standard mount() operation.
2019-01-27 12:07:37 -06:00
zhuyanlin
d53a5381f0
include/nuttx/list.h: Added a Linux-compatible list implementation.
2019-01-27 11:56:25 -06:00
Xiang Xiao
43d47a66c5
include/pthread.h and signal.h: Avoid redefinition of types
2019-01-27 11:34:39 -06:00
Xiang Xiao
daf26128d7
include/nuttx/fs/fs.h: Move the union inode_ops_u i_mtd field into the mount section of inode_ops_u and remove the guard to simplify fs which support both block and mtd.
2019-01-27 11:27:46 -06:00
Xiang Xiao
d0ac00c2f5
include/stdbool.h: Define bool only when __cplusplus isn't defined.
2019-01-27 11:25:00 -06:00
Xiang Xiao
bc43769f60
include/nuttx/serial/uart_16550.h: Fix warning: 'struct file' declared inside parameter list.
2019-01-27 11:22:40 -06:00
Xiang Xiao
6884af68d8
include/nuttx/irq.h: Fix enter_critical_section/spin_lock_irqsave macro typo error and remove the duplicated inclusion of arch/irq.h
2019-01-27 11:21:03 -06:00
ligd
32075ef9d8
drivers/power/pm_activity.c: Add pm_staycount API for get stay numbers. This function is currently not used and a waste of FLASH space.
2019-01-27 11:19:26 -06:00
Xiang Xiao
d6b0b0d94b
sched/mqueue/mq_desclose.c: Fix warning: variable 'msgq' set but not used
2019-01-27 11:08:28 -06:00
ligd
14573202bc
sched/sched/sched_timerexpiration.c: Fix macro SEC2TICK() 32-bits overflow by using uint64_t in calculation.
2019-01-27 11:07:09 -06:00
Gregory Nutt
cc8878f08a
sched/Kconfig: Change SCHED_NOTE_GET type from int to bool~
2019-01-27 11:04:54 -06:00
Xiang Xiao
fe421022e2
sched/wqueue/kwork_notifier.c and several Kconfig files: Notifier should work with either lpwork or hpwork and other minor typo fix.
2019-01-27 11:02:56 -06:00
Gregory Nutt
7310fb7018
drivers/serial/uart_16550.c: Fix typo for UART1 flow field initialization
2019-01-27 10:57:41 -06:00
Xiang Xiao
4ed591355b
drivers/serial/serial.c: Don't reset the circular buffer on close since DMA may still be transferring data in the background if the user closes the handle too quickly and the handle is opened with O_NONBLOCK.
2019-01-27 10:57:41 -06:00
Xiang Xiao
c07ba1eac1
drivers/serial/uart_16550.c: Fix error: 'g_uart0port' undeclared.
2019-01-27 10:57:41 -06:00
Gregory Nutt
f992fd9f51
drivers/serial/serial.c: Call pm_activity() when characters are received on a console device.
2019-01-27 10:57:41 -06:00
Xiang Xiao
63276899bf
drivers/serial/serial.c: Initialize OPOST and ONLCR in uart_register
2019-01-27 10:57:40 -06:00
raiden00pl
5911478777
Merged in raiden00/nuttx_pe (pull request #823 )
...
Improvements in STM32 ADC, PWM and TIM
arch/arm/src/stm32/chip/stm32_adc_v2.h: missing T1TRGO2 for JEXTSEL
arch/arm/src/stm32/stm32_adc: configure injected channels external trigger when ADC enabled
arch/arm/src/stm32/stm32_adc: update injected conversion queue of context after configuration
arch/arm/src/stm32/stm32_adc: fix sample time configuration for channels. The array index for channels was missing
arch/arm/src/stm32/stm32_adc: support for offset configuration
arch/arm/src/stm32/stm32_pwm: fix TRGO/TRGO2 configuration
arch/arm/src/stm32/stm32_pwm: support for advanced timers channel 5 and 6
Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-27 16:17:39 +00:00