Masayuki Ishikawa
edd3dd3168
libs: rv64: Fix _calc_imm() in arch_elf.c
2020-06-25 02:21:23 -05:00
Ouss4
701100f6f9
drivers/sensors/mpu60x0: Add I2C support.
2020-06-24 23:30:34 -03:00
Gustavo Henrique Nihei
807c1df498
boards/arm/stm32f7/stm32f769i-disco: Apply NxStyle fixes
2020-06-24 10:51:02 -03:00
Gustavo Henrique Nihei
105d561a51
arch/arm/src/stm32f7: Refactor FMC functions for STM32F7
...
This refactor is based on the FMC architecture of STM32H7, with the
exception of the board specific definitions.
2020-06-24 10:51:02 -03:00
Gustavo Henrique Nihei
cf86459495
boards/arm/stm32/stm32f769i-disco: Include missing header
2020-06-24 10:51:02 -03:00
Gustavo Henrique Nihei
b06722cd7f
boards/arm/stm32/stm32f769i-disco: Add support for external SDRAM
2020-06-24 10:51:02 -03:00
chao.an
f5039d0b23
sim: fix compile error caused by race condition
...
LD: nuttx.rel
objcopy: couldn't open symbol redefinition file nuttx-names.dat
(error: No such file or directory)
Makefile: 297: recipe for target 'nuttx.rel' failed
Change-Id: Ic78f030b77c3468ddbb96d4fb0558edad3abc3ae
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-24 14:32:22 +01:00
chao.an
d6a0da41d5
net/vfcntl: fix nxstyle warning
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-24 13:48:41 +01:00
chao.an
f56e0e004b
fs/setfd: correct the return value
...
Change-Id: I766f3760e7167a579b73673c44b70847ee06850b
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-24 13:48:41 +01:00
YAMAMOTO Takashi
ef5d204fd2
rewind: clear the error indicator
...
Make rewind() clear the error indicator of the stream
as it's specified by the standards.
2020-06-24 16:56:44 +08:00
Xiang Xiao
d24bd782a9
libc: Implement pathconf and fpathconf
...
specified here:
https://pubs.opengroup.org/onlinepubs/009695399/functions/fpathconf.html
note: only _PC_PATH_MAX is handled now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Idd323dc10e8f31f10dd1fc64f467227808c11dbd
2020-06-23 17:34:54 +01:00
Xiang Xiao
1e166f7ecb
sysconf: Implement _SC_ATEXIT_MAX query
...
and remove the incorrect macro ATEXIT_MAX
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ia5d7dafc50e942f62f95137313c34741c6dd60ba
2020-06-23 17:34:54 +01:00
Gregory Nutt
f24c71be32
include/ftw.h: Add header file
...
Add the ftw.h header file as specified at OpenGroup.org:
https://pubs.opengroup.org/onlinepubs/009695399/basedefs/ftw.h.html
2020-06-23 17:34:28 +01:00
Xiang Xiao
f3c046175d
tools/version.sh: Make it invokable from everywhere
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-23 00:49:27 -07:00
Xiang Xiao
8b9876830e
tools/zipme.sh: Add executable bit
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-23 00:49:27 -07:00
Xiang Xiao
9bf4b55073
tools/zipme.sh: Don't move the directory to nuttx/Documentation
...
and remove the redundancy of "cd ${TRUNKDIR}"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-23 00:49:27 -07:00
Xiang Xiao
062373af20
tools/zipme.sh: Fix the typo error
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-23 00:49:27 -07:00
Ouss4
e538198fd8
Update ReleaseNotes in preparation for the 9.1 release.
2020-06-22 21:50:05 -07:00
Nathan Hartman
72a06a6cc7
Docs and README: Add STM32G474, B-G474E-DPOW1 board
...
Documentation/NuttX.html:
Documentation/README.html:
README.txt:
boards/README.txt:
Document initial support for the STM32G474 MCU and
B-G474E-DPOW1 Discovery kit was added in NuttX-9.1.
2020-06-22 09:43:41 -06:00
David Sidrane
5cbebda133
kinetis:Ethernet fixed & better interrupt management
...
When any error was detected the buffers descriptors were
blindly initialized. This caused the TX of the MAC to
be in a bad state. The correct thing to do, we disable
the MAC, init the bufffers and re-eanable the MAC.
The interrupts were being throlled at the NVIC. This been
cleaned up.
2020-06-21 14:16:26 -06:00
Ouss4
530cad304f
drivers/spi/spi_bitbang.c: Fix typos and nxstyle complaints.
2020-06-21 14:13:32 -06:00
Ouss4
bd82486f1c
drivers/lcd: Add support for the ST7735 TFT controller.
2020-06-21 14:13:32 -06:00
Ouss4
a09f88c4a6
include/nuttx/video/fb.h: Several parentheses were missing in macros.
2020-06-21 14:13:32 -06:00
Ouss4
c02f0d4bb8
baords/arm/stm32/olimex-smt32-p407: Add SPI configuration and set up the
...
SPI3 pins present in the UEXT header.
These PINS are used to test an external ST7735 LCD.
2020-06-21 14:13:32 -06:00
Huang Qi
a13ebe5975
arch/arm/stm32: Make SysTick as a Tickless clock source option
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-06-20 09:10:27 -03:00
David Sidrane
b64060f717
s32k1xx:flexcan clock_systimespec -> clock_systime_timespec
2020-06-19 00:27:52 +01:00
chao.an
6e8cf28e9c
nuttx/names: add symbol name preprocessing support
...
Change-Id: I54e0b24391b6e08801e3f0b1799ed3fcc9188ae7
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-18 07:09:40 -06:00
chao.an
1a59e5ad0f
sim/names: add munmap into naming list
...
Change-Id: Ideb6c538fafda3f031d3a0d976da85917ba64530
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-18 07:09:40 -06:00
chao.an
d96b22ae3c
nuttx/names: add getchar into naming list
...
Change-Id: I04b9283250bd139201b2de766f7f5f30db992434
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-18 07:09:40 -06:00
qiaowei
1ab98da054
nuttx-names.dat: add strstr.
...
Signed-off-by: qiaowei <qiaowei@xiaomi.com>
Change-Id: Iab4bbe0ea3b12d819c790a4720d3d3c5534ad581
2020-06-18 07:09:40 -06:00
David Sidrane
3ec12a84c2
Makefile.unix:versioning insure it is a .git dir
...
An out-of-tree build may have a .git file that is from a
submodule. Once we find a .git file check if this is
really a working dir.
2020-06-18 10:29:51 +08:00
David Sidrane
c91a81149d
cstdlib:Add missing atox to std namespace
2020-06-18 10:23:47 +08:00
Peter van der Perk
ba5fe5cee3
SocketCAN: Fixed dropping timestamped frames when running in CAN2.0B
2020-06-17 15:17:38 -07:00
Gregory Nutt
ebeeb0d3e8
sched/pthread/pthread_cleanup.c: Exclude kernel threads.
...
Prohibit use of pthread_cleanup API's by kernel threads. The pthread pthread_cleanup functions MUST run in user mode, making them unusable for kernel threads.
See Issue #1263
2020-06-17 13:18:30 -03:00
Matias Nitsche
67ab8ebb5f
style fixes
2020-06-17 13:17:38 -03:00
Matias Nitsche
b7d18585dc
stm32l4: add I2C timings for 48 MHz SYSCLK
2020-06-17 13:17:38 -03:00
Matias Nitsche
fa97e216e4
stm32l4: clocking fixes (would hang for MSI@48MHz on STM32L476)
2020-06-17 13:17:38 -03:00
Huang Qi
8013f66ecd
boards/arm/imxrt/imxrt1060-evk: Remove deprecated lvgl configs
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-06-17 05:56:51 -07:00
Nakamura, Yuuichi
ec0212cc8a
drivers/syslog/note_driver.c: nxstyle fix
2020-06-17 20:15:54 +08:00
Xiang Xiao
56fa98f3ea
sched: Avoid call up_initial_state for idle thread twice
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Iaf5d4bcc915fbe842e9356ea6416f0af869ab116
2020-06-16 17:05:05 -06:00
Gregory Nutt
69e97c19ea
sched/sched/sched_note.c: Implement interrupt/syscall support
...
A previous PR added interrupt and system call scheduler notes. This addess buffering support for those notes.
2020-06-16 20:42:22 +01:00
Peter van der Perk
6a19f03756
FlexCAN C89 Style initialization
2020-06-16 15:35:43 -03:00
Peter van der Perk
ede6225c72
NXStyle fixes
2020-06-16 15:35:43 -03:00
Peter van der Perk
662bd5e49a
Added S32K1XX EEEPROM init code
2020-06-16 15:35:43 -03:00
Peter van der Perk
efbe4c89e2
S32K1XX Enhanced EEPROM block device driver
2020-06-16 15:35:43 -03:00
Peter van der Perk
4eecf8561f
FlexCAN interrupt fixes, old compiler fixes
...
SocketCAN old compiler fix
2020-06-16 15:35:43 -03:00
Gregory Nutt
4fd506efaa
include/nuttx/sched_note.h: nxstyle fixes.
2020-06-16 14:04:53 -03:00
Gregory Nutt
ed9532e31f
CONFIG_SCHED_INSTRUMENTATION_SYSCALL should not available if the architecture does not support the required system hook note hooks.
2020-06-16 14:04:53 -03:00
Yuuichi Nakamura
df2bc1e4c3
Add syscall and irqhandler hooks in sched_note.h
2020-06-16 14:04:53 -03:00
Xiang Xiao
dde25b0f80
tools/nxstyle: Fix AddressSanitizer error
...
=================================================================
==2474==ERROR: AddressSanitizer: stack-buffer-underflow on address 0x7fffb7e59b5f at pc 0x561fffec79f6 bp 0x7fffb7e59ac0 sp 0x7fffb7e59ab0
READ of size 1 at 0x7fffb7e59b5f thread T0
#0 0x561fffec79f5 in block_comment_width /home/xiaoxiang/mirtos/nuttx/tools/nxstyle.c:355
Address 0x7fffb7e59b5f is located in stack of thread T0 at offset 31 in frame
#0 0x561fffec7b90 in get_line_width /home/xiaoxiang/mirtos/nuttx/tools/nxstyle.c:419
This frame has 1 object(s):
[32, 544) 'line' (line 420) <== Memory access at offset 31 underflows this variable
HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork
(longjmp and C++ exceptions *are* supported)
SUMMARY: AddressSanitizer: stack-buffer-underflow /home/xiaoxiang/mirtos/nuttx/tools/nxstyle.c:355 in block_comment_width
Shadow bytes around the buggy address:
0x100076fc3310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc3320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc3330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc3340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc3350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x100076fc3360: 00 00 00 00 00 00 00 00 f1 f1 f1[f1]00 00 00 00
0x100076fc3370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc3380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc3390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100076fc33a0: 00 00 00 00 00 00 00 00 00 00 00 00 f3 f3 f3 f3
0x100076fc33b0: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==2474==ABORTING
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ie7dee3cdfdbbd04ea9cdb58e227afef07073cecd
2020-06-16 09:56:22 -06:00