Johanne Schock
8792ade0fe
Several USB improvements.
...
Kinetis: Reworked USB driver for setup out data phase.
Freedom K28: New config nshsdusb, with RNDIS support
PL2303: Try to avoid clone detection.
General: various nxstyle fixes
General: license changed
2020-07-24 13:24:53 -03:00
Xiang Xiao
a5ef3731b1
drivers/video: fb_read/fb_write need consider the current file position
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Id3a475dac928ed3dff4eee96150badadf5210f44
2020-07-24 10:49:37 +02:00
Xiang Xiao
f044c82dae
drivers/lcd: Remove the redundant LCD_HWCURSOR
...
reuse FB_HWCURSOR instead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I568104a87b9c08308374a9723c248287332bc9e4
2020-07-24 10:47:02 +02:00
Xiang Xiao
da6bb94740
drivers/lcd: Don't select NX_LCDDRIVER automatically
...
since graphics/Kconfig already do the similar thing
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ib2c1955a6b027cfa4e83c3b81ddfb505902dd85d
2020-07-24 10:47:02 +02:00
Xiang Xiao
6be8dd420c
tools/incdir: Fix the memory leak
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I9bf57071b5e967a3db55c7e473e84a8bad44cd2a
2020-07-23 15:49:08 +01:00
Xiang Xiao
131535dfe4
drivers/lcd: Fix the memory leak when board_graphics_setup fail
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I08a7ecc48b2c28b1c8c97f74e7a163ca67de6fca
2020-07-23 13:05:58 +01:00
YAMAMOTO Takashi
9f8d52830f
tools/incdir: Assume GCC compatibility for unknown compilers
...
A use case:
intercept-build --override-compiler make CC=intercept-cc
cf. https://github.com/rizsotto/scan-build
2020-07-23 00:55:24 -05:00
Nakamura, Yuuichi
ac34ac9f5c
Add g_funcnames declaration in syscall.h
2020-07-22 12:01:40 -05:00
Nakamura, Yuuichi
02718f0827
Syscall instrumentation build system support for Arm and RISC-V
2020-07-22 12:01:40 -05:00
Nakamura, Yuuichi
376786288e
Create wrapper library for system call instrumentation
2020-07-22 12:01:40 -05:00
Nakamura, Yuuichi
2b4d2cd4a3
Fix note structure members types
2020-07-22 11:55:21 -05:00
SPRESENSE
e4b50c4ba0
drivers/mmcsd: Fix minor bugs
...
- Add missing cancel process when the send command fails
- Make it possible to recover from SD initialization error
- Reduce time in changing transfer mode to 5msec from 500msec.
Replace usleep function instead of up_udelay in other to avoid
blocking other tasks from working.
2020-07-22 09:51:54 -05:00
Oleg
fd220e7a6c
arch/arm/src/stm32f7/stm32_dma.c: fix debug ifdef
2020-07-22 13:37:02 +01:00
SPRESENSE
76c87d2f85
net/socket: Fix nxstyle issue
2020-07-22 11:41:53 +01:00
SPRESENSE
5ee0432d6f
net/socket: Fix sanity checking of socket interface
...
No error occurs even if NULL is set in the input argument
of socket API. So added an argument check process.
2020-07-22 11:41:53 +01:00
SPRESENSE
89a79b03cf
fs/smartfs: Fix file size corruption when opening with overwriting mode
...
If a existing file is opened with overwriting mode e.g. fopen(file, "w+"),
the file size will be incorrect after writing any data to the file.
This bug is caused by previous commit 10903b5
, and its changes should be
limited to only O_APPEND mode.
2020-07-22 04:22:22 -05:00
Ouss4
172aaa5e5c
.gitignore: Don't ignore directories that have the .d extenion.
...
.d directories are common for holding config and init scripts.
They are being ignored with the global *.d pattern which is meant to
ignore Make dependency files.
2020-07-21 23:16:13 -07:00
Xiang Xiao
b4b413e2f4
arch/arm/src/arm/Toolchain.defs: Append "-P -x c" for CPP macro
...
like other Toolchain.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-21 22:11:34 -07:00
Xiang Xiao
1a901d72c0
board/arm: Remove -march and -mcpu option
...
Already add in arch/arm/src/armv7-m/Toolchain.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-21 22:11:34 -07:00
Xiang Xiao
6c03a4e4d5
libc: Add uuid implemenation
...
specified by OpenGroup here:
https://pubs.opengroup.org/onlinepubs/009629399/toc.htm
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I3bc585e7f4d41f6c2ea70e170276ab0d0399b088
2020-07-21 21:48:18 -07:00
Xiang Xiao
2b7528feae
binfmt: Fix warning: unused variable ‘exidx’
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I55d3355813b8b24727e2a7f78fcd72622a1e6758
2020-07-21 00:03:47 -07:00
Xiang Xiao
5efa93ec26
arch/Toolchain.defs: Change all ARCROSSDEV to CROSSDEV
...
ARCROSSDEV always equals to CROSSDEV, so it is no reason to keep ARCROSSDEV.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-20 23:50:59 -07:00
Alan C. Assis
ba274b999e
Fix small formatting issues caused by VIM macro edition
2020-07-20 21:02:41 +01:00
raiden00pl
ba44a812bb
fix nxstyle warnings
2020-07-20 17:11:11 +01:00
raiden00pl
8fe3a46dc0
boards/arm/nrf52/nrf52840-dk: add timer example
2020-07-20 17:11:11 +01:00
raiden00pl
4152193e0a
arch/arm/src/nrf52: add support for TIMER lowerhalf
2020-07-20 17:11:11 +01:00
Xiang Xiao
5ce84693d3
tools/mksyscall: Fix warning: '__builtin_strncpy' specified bound 256 equals destination size
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-20 17:10:37 +01:00
Xiang Xiao
b329e2377d
boards: Move toolchain related variables to Toolchain.defs
...
1.It make sense to let Toolchain.defs give the default value
2.The board can still change if the default isn't suitable
3.Avoid the same definition spread more than 200 Make.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ic2649f1c7689bcf59c105ca8db61cad45b6e0e64
2020-07-20 17:10:37 +01:00
Dong Heng
97be116a39
fs/nxffs: Fix scan good block slowly and scan an invalid block
2020-07-20 10:23:58 -03:00
Kazuya Hioki
822061a3d0
net: Fix dupulicated NET_USRSOCK in Kconfig
...
Reviewed-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Signed-off-by: Kazuya Hioki <Kazuya.Hioki@sony.com>
2020-07-19 20:05:50 -07:00
Xiang Xiao
da3e6cb175
board: Let avr/renesas utilize boards/Board.mk
...
to avoid the duplication
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I79d80e08fe6a05f6182dc07ea41aade7aeb9d4b0
2020-07-19 19:40:32 -07:00
Xiang Xiao
7c54f51dc0
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-19 19:35:21 -07:00
Xiang Xiao
e1ecb3e27c
libc: Don't define localtime[_r] to macro when CONFIG_LIBC_LOCALTIME not define
...
since libc++ declare these function in ctime by:
using ::localtime[_r];
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ic0bb68b44c0cab838ab7cc34baee2aaa3ca8a9b5
2020-07-19 19:35:21 -07:00
Masayuki Ishikawa
11f8b7c974
boards: stm32f4discovery: Remove CONFIG_SCHED_LPWORK=y from wifi/defconfig
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-19 21:11:46 -05:00
Masayuki Ishikawa
4cf307584f
boards: spresense: Remove CONFIG_SCHED_LPWORK=y from wifi/defconfig
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-19 21:11:46 -05:00
Masayuki Ishikawa
0475540c83
drivers: wireless: Add 'select SCHED_LPWORK' to WL_GS2200M
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-07-19 21:11:46 -05:00
Xiang Xiao
47f2090410
arch: Change --print-file-name=libgcc.a to --print-libgcc-file-name
...
Since the new option is more compatible with clang
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-19 18:26:31 -07:00
Alan C. Assis
79a3fd1932
ESP32: Add driver support to SPI Master and Slave
...
This driver was implemented by Dong Heng <dongheng@espressif.com>
and modified to fix coding style by Alan Carvalho de Assis.
2020-07-19 21:26:58 +01:00
Xiang Xiao
aa57174eb9
rwbuffer: Optimize the buffer algorithm
...
avoid the buffer flush as much as possible
Change-Id: I902f374e9540b36bd0b0c77a34cab5014a2c24fc
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-07-19 13:13:50 -07:00
Xiang Xiao
e7034c102f
rwbuffer: Fix the wrong remaining block calculation in invalidation
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I00e6e7332f397bcddfd44e1b3c5c514a8f07923f
2020-07-19 13:13:50 -07:00
Xiang Xiao
4f22f746f8
syscall: Remove g_funclookup and g_funcnparms
...
since nobody use them
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-19 13:07:31 -07:00
Brennan Ashton
1a90a933df
Revert "REMOVE ME: Force build of AVR in test"
...
This reverts commit f27fbe856d
.
2020-07-19 16:55:15 -03:00
Brennan Ashton
f27fbe856d
REMOVE ME: Force build of AVR in test
2020-07-19 15:49:13 -03:00
Brennan Ashton
8319078887
AVR: Remove warning pragma from SPI freq function
...
The function for updating the spi frequency included a #warning
pragma because the divider registers are computed but not used
it is not clear what needs to be done here to implement this
but the warning has been removed and replaced with a comment
in the function.
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-07-19 15:49:13 -03:00
Brennan Ashton
fe0b5df223
boardctl: Remove warning pragma on BOARDIOC_USBDEV_CONNECT
...
We already have a debug assert and a return error this warning
will fail builds that are not even using this ioctl.
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-07-19 15:49:13 -03:00
Brennan Ashton
3a58926d01
Cast pointer to uintptr prior to ulong for ioctl
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-07-19 15:49:13 -03:00
Brennan Ashton
ff6e2e7b7d
AVR: Fix warnings from pointer casts and prototype
...
There was broken logic around serial initialization function
prototype. Pointers were also being cast directly to uint32
without first being cast to uintptr.
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-07-19 15:49:13 -03:00
Alan C. Assis
871613f271
libc: Typecast to avoid overflow in inet_addr for AVR
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-07-19 15:49:13 -03:00
Brennan Ashton
470624fa78
Use AVR Linux toolchain instead of buildroot
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-07-19 15:49:13 -03:00
Ouss4
f66ead9ca3
Update the boards matrix to add AVR builds.
2020-07-19 10:57:54 -03:00