Nakamura, Yuuichi
ec0212cc8a
drivers/syslog/note_driver.c: nxstyle fix
2020-06-17 20:15:54 +08:00
Masayuki Ishikawa
ae92afd250
drivers: audio: Fix cxd56_stop in cxd56.c
...
In the previous implementation, cxd56_stop() checked the internal
state before sending AUDIO_MSG_STOP to the message queue. However,
if the worker thread took time to turn on AMP, cxd560_stop() was
not able to send the message and caused a deadlock.
This commit fixes this issue by always sending AUDIO_MSG_STOP
regardless of the internal state.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-16 08:52:40 +02:00
Matias Nitsche
53387b53c6
style fixes
2020-06-16 01:01:14 +01:00
Matias Nitsche
6c333d7cbf
bmp280: support getting temperature via ioctl()
2020-06-16 01:01:14 +01:00
Alan C. Assis
3a95c41370
Fix devif_timer() function call
2020-06-15 07:13:21 -06:00
Alan C. Assis
7609b67496
Fix issues reported on PR #1233
2020-06-15 07:13:21 -06:00
Alan C. Assis
e1be7ace4b
Fix netdev and add Apache license to the file
2020-06-15 07:13:21 -06:00
Adam Porter
07c0faff59
Add support to CDC-MBIM USB host driver
...
This driver was created by Adam Porter and posted on NuttX
mailing list at Google Group on Nov 14 2019
2020-06-15 07:13:21 -06:00
Alin Jerpelea
c6c0214f9a
boards: arm: cxd56: initilize the video stream driver from the board
...
The video stream driver must be intialized from the board to comply with NuttX
NOTE:
Please remove the initalization from any camera example
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-06-15 08:10:49 +09:00
Alin Jerpelea
8fdfb745d6
drivers: video: fix uninitialized variables
...
Fix the build error by initializing the variables before we perform
th querry for the ext control.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2020-06-15 08:10:49 +09:00
Ouss4
02ad0e9094
drivers/leds/ncp5623c&pca9635pw: Fix nxstyle issues.
2020-06-12 17:51:23 -03:00
Ouss4
ebfc12d3d2
drivers/: Fix some drivers mode priviliges. It's not used but it's
...
better to get it right.
2020-06-12 17:51:23 -03:00
Ouss4
0acf6da4d8
drivers/analog/ and include/nuttx/analog: Fix typos and nxstyle issues.
2020-06-12 16:04:02 -03:00
Masayuki Ishikawa
958ddc1926
drivers: audio: Add a buffering feature to cxd56
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-10 09:11:15 -03:00
Masayuki Ishikawa
8a60cc01e2
drivers: audio: Send stop message when received the final buffer
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-10 09:11:15 -03: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
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
a7a272661e
Char drivers should return -ENOTTY if CMD is not recognized
2020-06-06 14:51:02 -03:00
Ouss4
36f54e280f
Fix PR1201 nxstyle issues.
2020-06-05 15:54:17 -03:00
Ouss4
8da4b02350
drivers/audio: Add CS4344 driver.
2020-06-05 15:54:17 -03: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
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
Gregory Nutt
0e425584b8
include/nuttx/video/video.h: Move global variable declaration out of header file
...
Move global variable declaration out of include/nuttx/video/video.h and into the file where it is initialized. With some toolchains/environments, declaring globals in header files results in multiply defined symobl errors at link time. This corrects that build problem.
2020-06-01 20:22:40 +01:00
Gregory Nutt
43183e5843
drivers/serial/pty.c: Correct returned number of bytes.
...
Reported by 권석근 <kwonsksj@gmail.com>:
I found a bug at "pty.c" during ssh server implementation.
When I turn on CONFIG_SERIAL_TERMIOS and OPOST|ONLCR on pty device
for nsh console's stdin/stdout (ssh shell service), I've got system crash.
Bugs at line 687 of pty.c, pty_write()
ntotal++;
when converting '\n' to '\r\n', pty_write() will return more than requested
(+1, for example) length. and this will break caller lib_fflush(), line 150
of lib_libfflush.c.
When she get (libfflush()) bytes_nwritten which is greater than nbuffer,
nbuffer goes to negative at line 150 and eventually destroys
*stream->fs_bufpos at line 163 of lib_libflush.c
Removing ntotal++; line 687 of pty.c will fix this bug.
BTW, nsh using ptm/pty as a ssh shell service works great with libssh +
mbedtls.
2020-06-01 16:39:49 +01:00
Masayuki Ishikawa
806710b225
drivers: wireless: New flow control based on total bulk size in gs2200m.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-01 09:08:05 +02:00
Gregory Nutt
738f3c61f7
drivers/usbhost/usbhost_ft232r.c: Cosmetic
...
Cosmetic changes to alignment. Also fixes some C89 non-compliance. Sorry to be so OCD.
2020-05-28 21:17:58 +01:00
Gregory Nutt
5a9f7927ee
nxstyle fixes
2020-05-28 12:22:46 -06:00
Nicholas Chin
560ba3adcd
usbhost: adds a driver for the FTDI FT232R USB to serial converter
2020-05-28 12:22:46 -06:00
Kazuya Hioki
075334cfcc
drivers: wireless: Fix buffer overrun in gs2200m.c
...
Warning ID: 85719.12039200
Reviewed-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Signed-off-by: Kazuya Hioki <Kazuya.Hioki@sony.com>
2020-05-26 15:38:43 +08:00
Xiang Xiao
8b20b97d26
build: Remove the dummy drivers folder under boards
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 20:20:12 +01:00
Xiang Xiao
23668a4b9b
build: Remove the empty variable assignment
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 08:24:13 -06:00
Xiang Xiao
edb0ce2d5a
build: Don't need use $(DELIM) in include statement
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 08:24:13 -06:00
Xiang Xiao
dd61d3d9f9
build: Remve the unnecessary .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 18:00:40 +01:00
Masayuki Ishikawa
287b9f9c38
drivers: wireless: Add WPA2-PSK in AP mode for gs2200m
...
NOTE: By default, WPA2-PSK is used instead of WEP
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>>
2020-05-22 10:20:07 +02:00
Masayuki Ishikawa
65e81a6159
drivers: wireless: Add do packet flow cotrol in gs2200m_ioctl_close()
...
NOTE: active close now works during http audio streaming
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-21 12:46:10 +02:00
Xiang Xiao
1a95cce1a3
build: Move .config check to the top Makefile
...
remove the workaround to handle the inexistence of .config/Make.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-20 17:57:34 +01:00
Masayuki Ishikawa
3c622db780
drivers: wireless: Fix pkt_q_cnt overflow in gs2200m.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-20 13:59:12 +02:00
Xiang Xiao
5eae32577e
build: Move INCDIROPT to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:02:55 -06:00
Xiang Xiao
bd656888f2
build: Replace WINTOOL with CYGWIN_WINTOOL Kconfig
...
so the correct value can be determinated by Kconfig system automatically
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:02:55 -06:00
Gregory Nutt
57bc329aac
Run nxstyle all .c and .h files modified by PR.
2020-05-17 14:01:00 -03:00
Gregory Nutt
a569006fd8
sched/: Make more naming consistent
...
Rename various functions per the quidelines of https://cwiki.apache.org/confluence/display/NUTTX/Naming+of+OS+Internal+Functions
nxsem_setprotocol -> nxsem_set_protocol
nxsem_getprotocol -> nxsem_get_protocol
nxsem_getvalue -> nxsem_get_value
2020-05-17 14:01:00 -03:00
Masayuki Ishikawa
60b404e076
drivers: wireless: Apply max payload size to gs2200m.c
...
Also, remove unnecessary initialization for tx packet.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-15 06:49:02 -06:00
Masayuki Ishikawa
3ead63c353
drivers: wireless: Fix to bind() with port=0 in gs2200m.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-14 14:17:47 +02:00
Masayuki Ishikawa
21c588b126
drivers: wireless: Add support for getsockname() to gs2200m
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-14 14:17:47 +02:00
Matias Nitsche
e0d21275df
fix all remaining nxstyle errors
2020-05-14 08:32:48 +02:00
Matias Nitsche
5fd9bd5837
stm32: moved all remaining sensor initialization to common board logic
2020-05-14 08:32:48 +02:00
Masayuki Ishikawa
ef169b7ebf
drivers: wireless: Handle multiple incoming packets in gs2200m.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-13 13:11:08 +02:00
Juha Niskanen
d666aa623f
drivers/mtd/filemtd.c: fix build error
2020-05-11 09:25:45 -04:00
Xiang Xiao
517974787f
Rename clock_systime[r|spec] to clock_systime_[ticks|timespec]
...
follow up the new naming convention:
https://cwiki.apache.org/confluence/display/NUTTX/Naming+of+OS+Internal+Functions
2020-05-10 14:35:50 -06:00