Xiang Xiao
650e18baa1
serial: Shouldn't mangle pid when ISIG is changed
...
Let's check ISIG flag directly instead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I060f70eefc79b1c34aa11ed4071179d2ae5fa5ca
2020-09-25 06:48:26 -07:00
anjana
c6b51771f0
USB Device Mode Driver Support for RX65N
2020-09-25 09:06:59 -03:00
Alexander Vasiljev
834e584169
spi_xx25xx: in write operation return the number of bytes written not the result of ee25xx_semtake
2020-09-25 04:51:25 -07:00
ligd
b54e9ffccc
nuttx/audio/audio.h: add ac_chmap support for both input & output
...
Change-Id: Ic582868fa3099943c4c28ccca7e33f7b3a2afbf7
2020-09-25 00:54:26 -07:00
Nathan Hartman
44d7f14121
tiva: tiva_ssi.h: Fix nxstyle warnings
...
arch/arm/src/tiva/tiva_ssi.h:
* Fix nxstyle warnings. No functional changes.
2020-09-24 16:00:55 -03:00
Matias N
0f9fb67b0c
nrf52 spi: build fixes for !SPI_EXCHANGE
2020-09-24 09:51:51 -03:00
David Sidrane
4665a3d648
cstdio:Fixed compile error with CONFIG_STDIO_DISABLE_BUFFERING lit.
...
Resolves compiler error introduced by 57dfb9 when
using cpp with CONFIG_STDIO_DISABLE_BUFFERING lit.
NuttX/nuttx/include/cxx/cstdio:79:11: error: '::setbuf' has not been declared
using ::setbuf;
2020-09-24 13:56:10 +02:00
Xiang Xiao
66057a4612
fs: Add the relative path support
...
all functions which accept the path argument should support the relative path:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-24 03:13:27 -07:00
Bhindhiya
d0e0af7826
Renesas .gitignore files added
2020-09-24 10:10:40 +01:00
Nathan Hartman
c8bb4474bb
tiva: tiva_periphrdy.h, tiva_pwm.h: Fix nxstyle warnings
...
arch/arm/src/tiva/tiva_periphrdy.h:
* Fix nxstyle warnings. No functional changes.
arch/arm/src/tiva/tiva_pwm.h:
* Fix nxstyle warnings. No functional changes.
2020-09-23 22:00:17 +01:00
Xiang Xiao
eacca2b7a2
wireless/bluetooth: replace open with file_open in uart shim drivers
...
it is simpler than open and then file_detach
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I22585b7450804c6c012fecf369a8d7e25970c192
2020-09-23 15:08:18 -03:00
Thomas Axelsson
f193f0f702
imxrt: Style fixes in mux and ADC hardware headers
2020-09-23 13:16:33 -03:00
Thomas Axelsson
d67bc0c3c8
imxrt: ADC driver
...
Based on LPC17xx_40xx and STM32 drivers.
2020-09-23 13:16:33 -03:00
Masayuki Ishikawa
6696d72494
boards: spresense: Adjust parameters for wifi and wifi_smp
...
Summary:
- This commit adjusts parameters for audio streaming
Impact:
- Only affects spresense:wifi and spresense:wifi_smp
Testing:
- Tested with nxplayer
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-23 15:17:46 +02:00
Daniel Mesham
c8dc9e39ac
arch/arm: stm32l4: Fix typo in TIM15 PWM config
...
When configuring TIM15_CH2 as output, we mistakenly referred to TIM12 instead.
2020-09-23 14:29:10 +02:00
YAMAMOTO Takashi
3e6561c3cf
lib_libvscanf.c: Implement "j" modifier for scanf
...
It's a part of C99 and commonly used these days.
2020-09-23 03:28:40 -07:00
Masayuki Ishikawa
a92e394884
tools: Fix nuttx-gdbinit for armv7-m without FPU
...
Summary:
- I noticed that call stack for Cortex-M3 was incorrect
- This commit fixes this issue
Impact:
- Affects nuttx-gdbinit for armv7-m without FPU
Testing:
- Tested with lm3s6965-ek:discover (qemu)
- Tested with spresense:wifi
- Tested with sim
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-23 02:58:33 -07:00
zhongan
6240977341
rv32im: add missing call of 'up_savefpu'.
...
Change-Id: Iaf2e212a4fdea2f5f04a178d24755e0e37a30ef6
Signed-off-by: zhongan <zhongan@xiaomi.com>
2020-09-23 10:22:45 +01:00
zhongan
07dd053e86
risc-v: add putreg64 for mtimer registers.
...
Change-Id: I18fe312c95c73966f5c09fd18081b0c72923e2ac
Signed-off-by: zhongan <zhongan@xiaomi.com>
2020-09-23 10:22:45 +01:00
Masayuki Ishikawa
89cfaf1e6a
drivers: audio: Fix cxd56.c for SMP
...
Summary:
- Add spin_unlock_irqrestore to avoid deadlock
- Improve cxd56_resume() sequence
- Remove AUDIO_MSG_USER and call cxd56_stop_dma() for buffering
- Remove redandant 'Lock interrupt' and 'Unlock interrupt'
Impact:
- Affects all use cases with cxd56.c audio driver
Testing:
- Tested with spresense:rndis and spresense:rndis_smp
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-23 10:45:29 +02:00
Masayuki Ishikawa
b08eaf0fbb
boards: spresense: Add rndis_smp/defconfig
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-23 10:45:29 +02:00
Masayuki Ishikawa
809b0aa02c
boards: spresense: Add CONFIG_SYSTEM_NXRECORDER=y to rndis/defconfig
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-09-23 10:45:29 +02:00
Daniel Agar
3df8f79111
stm32f412ce fixes
2020-09-22 22:44:43 -07:00
Gregory Nutt
ebdfd16f0f
Move gettid() implementation to /libs/libc/unistd
...
Move sched/task/task/task_gettid.c to libs/libc/unistd/lib_gettid.c. gettid() is a dumb wrapper around getpid(). It is wasteful of resources to support TWO systme calls, one for getpid() and one for gettid(). Instead, move gettid() in the C library where it calls the single sysgtem call, getpid(). Much cleaner.
2020-09-22 19:40:56 -07:00
saramonteiro
7d889bf4c4
nrf52: Fix typo, replace setcc with getcc
2020-09-22 21:07:31 -03:00
Xiang Xiao
031984f76a
arch/arm: Select arm family when ARCH_ARM1136J/ARCH_ARM1156T2/ARCH_ARM1176JZ is defined
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-22 23:05:29 +01:00
Xiang Xiao
d078518502
arch/arm: Should include arch/armv8-m/spinlock.h when CONFIG_ARCH_ARMV8M is defined
...
forget in commit 2376d8a266
Author: qiaowei <qiaowei@xiaomi.com>
Date: Wed Apr 22 10:09:50 2020 +0800
Porting arch/armv8-m support
1. Add dsp extension; float point based on hardware and software.
2. Delete folder "iar"
3. Add tool chain for cortex-M23 and cortex-M35p
Signed-off-by: qiaowei <qiaowei@xiaomi.com>
Change-Id: I5bfc78abb025adb0ad4fae37e2b444915f477fe7
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-22 23:05:29 +01:00
Xiang Xiao
7faf72cabc
arch/arm: Add ARCH_ARMV6M Kconfig to prepare the support of CortexM0+
...
also align with the armv7m implementation
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-22 23:05:29 +01:00
Xiang Xiao
de45e8647a
Revert "s/dirent: Corrects a problem with opendir() noted by Petteri Aimonen in Bitbucket Issue 132: "opendir() fails for FAT filesystem with trailing slash in path":"
...
because:
1.The name of directory may terminated by the whitespace
2.inode_search can handle the trailing '/' correctly
3.Let fix the issue in FAT filesystem instead
This reverts commit 97b0235d77
.
2020-09-22 23:05:10 +01:00
Xiang Xiao
8567637378
fs/fat: Handle the tail '/' correctly
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I72c4d018c174d094d777941d0679ad792a1f5527
2020-09-22 23:05:10 +01:00
Gregory Nutt
5ffb1c6a0b
Fix Cygwin build broken by commit 34b34e2d45
...
Commit 34b34e2d45
uses the full path to libapps.a and introduced the use of the Make notdir command. That command breaks the Cygwin build because when a native Windows toolchain is used, the full path to libapps.a is a Windows-sytle path and the Make notdir command (like most other GNU Make commands) fails if it is passed a Windows-style path. This commit replaces the Make notdir command with the Bash basename command which can handle Windows paths.
2020-09-22 17:12:00 -03:00
Nathan Hartman
560a052144
tiva: tiva_timer.h: Fix nxstyle warnings
...
arch/arm/src/tiva/tiva_timer.h:
* Fix nxstyle warnings. No functional changes.
2020-09-22 10:29:28 -07:00
Bhindhiya
c5ef686707
Warnings in NuttX Renesas common files Resolved
2020-09-22 09:49:46 -07:00
Xiang Xiao
43f0070582
fs: Simplify the symbol link process in inode_search
...
avoid the recursive call by moving the path catenation into _inode_search
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-22 16:39:47 +08:00
Xiang Xiao
f4794f0b48
libc: Implement access function correctly
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I6ae3abf79bd9aa8cfb54b8bbe302d69c4d9cb8ff
2020-09-22 10:30:36 +02:00
spiriou
a1c047fe53
libc/uio: enable writev() for sockets
2020-09-21 19:31:06 -07:00
spiriou
65bb956e5e
pipe: check for writers first in case of pipe empty
2020-09-21 19:30:21 -07:00
Abdelatif Guettouche
a128995eab
arch/xtensa: Few typos and style fixes.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2020-09-21 19:14:19 -04:00
Nathan Hartman
bc9d3cdd14
tiva: tiva_flash.h: Fix nxstyle warnings
...
arch/arm/src/tiva/tiva_flash.h:
* Fix nxstyle warnings. No functional changes.
2020-09-21 22:04:45 +01:00
Bhindhiya
b8b4055cb1
RX65N Pre-check Warning Resolved
2020-09-21 19:59:34 +01:00
Xiang Xiao
68a2727c12
arch/sim: Extend the heap size to 64MB
...
to support the more complex application and
remove the special definition for CONFIG_MM_SMALL
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-21 07:40:17 -07:00
Xiang Xiao
411f5d591a
sched: Fix undefined reference to 'sched_cpu_count'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-21 07:37:04 -07:00
Xiang Xiao
ba3f12c93f
libc: Implement popcount/popcountl/popcountll
...
specified here:
https://www.unix.com/man-page/netbsd/3/popcountll/
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-21 07:37:04 -07:00
zhongan
657d1c9fdc
Add and fix CSR macros listed in RISC-V spec V1.10.
...
Add csr operatiing macros.
Change-Id: Ia5c148d10709c21424c5ecaaca01b7d200fb8e01
Signed-off-by: zhongan <zhongan@xiaomi.com>
2020-09-21 07:35:56 -07:00
Brennan Ashton
5498f72fa5
input: Q10 BlackBerry Keyboard from Solder Party
...
This adds support for the Q10 BlackBerry based keyboard
from Solder Party. https://www.solder.party/docs/keyboard-pmod/
They keyboard device registered at /dev/kbdN is fully compatible
with hidkbd and has been testing with the Keyboard FeatherWing
on the nRF52 platform.
The buttons are added as a standard discrete joystick if
optionally enabled. The PMOD variant of this does not
include these buttons, but the Keyboard FeatherWing does.
This joystick is usually defined at /dev/djoyN and
can be used with the djoy example application.
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-09-21 07:40:42 -06:00
Juha Niskanen
366e8afdb1
net/usrsock: fix outputted function name in debug prints
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-09-21 10:36:31 -03:00
chenwen
64e2f102ac
xtensa/esp32: Add power management of force-sleep
2020-09-20 17:23:07 +01:00
licheng
29030557ff
sched: Fix nuttx typo
2020-09-20 02:32:25 -07:00
chao.an
b2b7541d59
nuttx/wireless: fix nxstyle warning
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-09-19 11:39:13 -07:00
chao.an
9e45d6e88e
nuttx/wireless: add wireless event member length helper
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-09-19 11:39:13 -07:00