Xiang Xiao
6f3cef856d
libc: Add the remaining wscanf series declaration
...
The function isn't implemented like other wide printf/scanf
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I0b26bb5174d1a9295fe2454d0e33f8227b8cbf8a
2020-06-08 11:42:56 +01:00
Masayuki Ishikawa
d0158fe8d8
boards: Fix Kconfig for maix-bit with QEMU
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-08 07:57:47 +02:00
Huang Qi
2b0324c3bf
boards/risc-v/k210/maix-bit: Add initial autoled support
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-06-08 10:53:29 +09:00
Huang Qi
bcd7ccc0b5
arch/risc-v/src/k210: Add basic gpiohs support
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-06-08 10:53:29 +09:00
Xiang Xiao
24262a4ddb
Fix nxstyle issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-07 19:28:10 +01:00
Xiang Xiao
7a18ebe459
drivers/led: Extend userled_set_t from 8bits to 32bits
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I5701b42ff930998198b1d915316cc4f2d085d4eb
2020-06-07 19:28:10 +01:00
Xiang Xiao
76965474ac
drivers/led: Let board_userled_initialize return the led number
...
so the lower half driver don't need include the specific board.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Icf6638a6865bac42150b5957376e55909f041d40
2020-06-07 19:28:10 +01:00
Xiang Xiao
1ba1c34b01
drivers/led: Decopule USERLED from ARCH_HAVE_LEDS
...
and let USERLED_LOWER depends on ARCH_HAVE_LEDS instead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ie03e76d90b61a3d8d3457ccdd319a247b6075fa8
2020-06-07 19:28:10 +01:00
Xiang Xiao
a61b8a13c6
Fix nxstyle issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-06-07 19:28:10 +01:00
Xiang Xiao
1b47aa1cb2
drivers/button: Let board_button_initialize return the button number
...
so the lower half driver don't need include the specific board.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I2ff5c30049a5c5e8ee90baea56e9f4cb1a8a4f87
2020-06-07 19:28:10 +01:00
Alan C. Assis
73fc43770a
Fix nxstyle errors
2020-06-07 19:26:50 +01:00
Alan C. Assis
4fce224ac1
Add LED support to stm32f411-minimum board
2020-06-07 19:26:50 +01:00
Alan C. Assis
a673086af8
Add Apache license to Make.defs as well
2020-06-07 02:29:16 +01:00
Alan C. Assis
f227b65a37
Fix nxstyle issues
2020-06-07 02:29:16 +01:00
Alan C. Assis
1e8cd3f189
Add initial support to STM32F411-Minimum board (aka BlackPill)
2020-06-07 02:29:16 +01:00
Alan C. Assis
d41a2f87f0
Add support to STM32F411CE
2020-06-07 02:29:16 +01:00
Alan C. Assis
00200915ee
Run nxstyle on lpc17_40_ubxmdm.c
2020-06-06 21:55:12 +01:00
Alan C. Assis
9718611b29
Fix lpc17_40_ubxmdm.c board driver to return -ENOTTY
2020-06-06 21:55:12 +01:00
Xiang Xiao
40376697d7
boards/sim: Break out the thread loop instead calling pthread_exit
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I744d06d7a669067c68b74c69f3961f34673d81a0
2020-06-06 20:14:26 +01:00
Ouss4
a90f657743
arch/arm/src/stm32/stm32_hrtim.c: Fix nxstyle issues.
2020-06-06 15:46:51 -03:00
Ouss4
465a13c2cb
arch/arm/src: Return ENOTTY when the ioctl command is not recognized.
2020-06-06 15:46:51 -03:00
David Sidrane
a793369815
stm32h7:DMA Add BDMA support
...
Apply suggestions from code review
Co-authored-by: Mateusz Szafoni <raiden00pl@gmail.com>
2020-06-06 19:17:15 +01:00
Alan C. Assis
a7a272661e
Char drivers should return -ENOTTY if CMD is not recognized
2020-06-06 14:51:02 -03:00
David Sidrane
a254023e74
stm32h7:SPI Locate SPI6 DMA buffers in sram4
2020-06-06 23:05:30 +08:00
David Sidrane
b19171420f
stm32h7 boards:Emit the the D3 power domain section for locating BDMA data
2020-06-06 23:05:30 +08:00
David Sidrane
ddf2704915
stm32h7:Kconfig limit STM32H7_SPIn_COMMTYPE range to valid values
2020-06-05 21:07:54 +01:00
Ouss4
36f54e280f
Fix PR1201 nxstyle issues.
2020-06-05 15:54:17 -03:00
Ouss4
d001c82bc6
boards/arm/stm32/olimex-stm32-p407: Add support for the CS4344 audio
...
driver.
2020-06-05 15:54:17 -03:00
Ouss4
8da4b02350
drivers/audio: Add CS4344 driver.
2020-06-05 15:54:17 -03:00
Ouss4
d065bbe9b3
audio/pcm_decode.c: Fix #endif position when excluding stop and
...
pause/resume.
2020-06-05 23:59:28 +08:00
Xiang Xiao
09f64dd0ac
sched/task: Avoid the cast in atexit when CONFIG_SCHED_ONEXIT is defined
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ic3360555fa8bb24d5dae52e7ae5bb5fb5c24de0c
2020-06-05 13:29:22 +01:00
Xiang Xiao
3409c989bd
sched/task: Simplify atexit and onexit implementation
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I3028b74fe4872ae5cb376fa160e3cff79d5ad449
2020-06-05 13:29:22 +01:00
Tobias Johansson
368fbd0dea
cxd56: Fix lock issue in Spresense audio driver
...
Replace semaphore with spinlock in the DMA buffer handling code
since it is called from an interrupt.
2020-06-05 19:50:27 +08:00
YAMAMOTO Takashi
36ae29c21c
sim: Fix hostfs errno
...
Don't forget to convert the host convention (-1/errno) to
the nuttx kernel convention. (negative errno)
2020-06-05 19:49:35 +08:00
David Sidrane
b7ab9aa8f2
nuttx compiler.h: Add location directive for code and data
...
The ability to locate data and code in different sections
is becomming critical and common place in cores with multiple
bus matrices and power domains, where DMA can be limited to
a specific memory.
2020-06-05 15:21:42 +08:00
Ouss4
871d5c6b72
Fix PR 1188 nxstyle issues
2020-06-05 12:21:43 +08:00
Ouss4
1ca552716c
arch/arm/src/stm32/stm32_i2s: Change the initialize function from
...
stm32_i2sdev_initialize to stm32_i2sbus_initiliaze, to be consistent
with the way other buses are initialized.
The stm32_i2sdev_initiliaze (similar to stm32_spidev_initialize for
example) is a board specific function that does any necessary
initialization that's board depedent.
2020-06-05 12:21:43 +08:00
Ouss4
a30b77cbb9
arch/arm/src/stm32/stm32.h: Include stm32_i2s.h
2020-06-05 12:21:43 +08:00
Ouss4
a098e03005
arch/arm/src/stm32/stm32_i2s.h: file hardware/stm32_i2s.h does not
...
exist.
2020-06-05 12:21:43 +08:00
Ouss4
1c17e5f3c3
arch/arm/src/stm32/Kconfig: Fix a trivial typo (I2C -> I2S)
2020-06-05 12:21:43 +08:00
Masayuki Ishikawa
4b9886fa29
drivers: audio: Return -ENOTTY in xxx_ioctl() if not handled
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-05 12:02:33 +08:00
Masayuki Ishikawa
ef30832e67
include: audio: Remove CONFIG_AUDIO_DRIVER_SPECIFIC_BUFFERS from audio.h
...
NOTE: struct ap_buffer_info_s can be used without the config
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-05 12:02:33 +08:00
Xiang Xiao
a69678810d
sched: Change the return type of nxtask_activate to void
...
to simplify the error handling logic
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I00fedd4d69620a7cc7b9f9e8bf4ba7f7989dc2b2
2020-06-04 22:20:45 +01:00
Xiang Xiao
b4bd9427f7
arch: Rename _exit to up_exit to follow the naming convention
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I2779a2a3ccb5426fe78714fdcc629b8dfbb7aaf6
2020-06-04 22:20:45 +01:00
Xiang Xiao
85b859fb8d
arch: _exit should't call nxsched_resume_scheduler twice in SMP mode
...
utilize the call inside nxtask_exit instead, also move
nxsched_suspend_scheduler to nxtask_exit for symmetry
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I219fc15faf0026e452b0db3906aa40b40ac677f3
2020-06-04 22:20:45 +01:00
Jakob Haufe
c45289eb89
Fix typo in arch/arm/src/lpc17xx_40xx/Kconfig
2020-06-04 16:46:12 +01:00
liuhaitao
ac84a5177d
libc/time: call _NX_OPEN/_NX_CLOSE instead of open/close
...
Change-Id: I1d8a17ae7cac11e445dba25a8699f98186910568
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-06-04 12:10:54 +01:00
liuhaitao
ff9d435a95
include/cxx/cwchar: include wctype.h to fix libcxx build break
...
Note that iswalnum etc functions defined in wctype.h, and cwchar uses them.
So include wctype.h to fix libcxx build break.
Change-Id: I0f6b402d817f0927729800bdb8b9fce15e76ec3d
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-06-04 12:07:16 +01:00
Huang Qi
7575518998
boards/Board.mk: Remove include $(TOPDIR)/Make.defs
...
This file is already included by most board's Makefile,
remove it to avoid override the board's specific CFLAGS
etc.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-06-04 11:56:28 +01:00
Gregory Nutt
4935ab5243
printf() and vprintf() must use C buffered I/O if available.
...
This backs out a part of PR 1179 which has a very serious error: If C buffered I/O is available, then printf() and vprintf MUST use it. Otherwise, the ordering of the I/O will be screwed up. They must not use direct file descriptor I/O UNLESS C buffered I/O is disabled.
2020-06-03 18:38:19 +01:00