zhanghongyu
f00c11aec4
socket: separation error code EBADF and ENOTSOCK
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-10-29 08:18:02 +02:00
chao an
a8d3286258
net: move device buffer define to common header
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-28 00:32:16 -04:00
Xiang Xiao
19bded4738
fs: Remove the unused nx_pipe to prefer file_pipe for kernel
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-27 23:14:25 +02:00
wangbowen6
f56710c121
rpmsgblk: rpmsg block device support
...
Like rpmsgdev and rpmsgmtd, rpmsgblk allow the local cpu to
access the block device in the remote cpu.
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-10-28 01:13:58 +08:00
liuxuanfu
29be2481e9
drivers/timers/capture: Fix mutual exclusion lock
2022-10-27 19:10:16 +08:00
Tiago Medicci Serrano
b4b0624f6a
drivers/audio: add support for setting I2S's mclk on CS4344 codec
...
Set the mclk frequency on I2S lower half by 1) checking supported
sample rate, data width and mclk multiplier table and 2) setting
this value using the I2S_MCLKFREQUENCY macro. I2S driver may or
may not implement the i2s_mclkfrequency method for setting the
master clock.
2022-10-27 00:09:01 +08:00
Tiago Medicci Serrano
41475e11e0
drivers/audio: fix CS4344 supported sample rates
2022-10-27 00:09:01 +08:00
SPRESENSE
6eb0ef618d
drivers/video/isx019: Use clock function instead of gettimeofday
...
Change to use clock_systime_timespec() to avoid using libc API
from the driver layer.
2022-10-26 03:57:26 +08:00
SPRESENSE
8a0ce3f000
drivers/video/isx019: Fix incorrect JPEG DQT table
2022-10-26 03:57:26 +08:00
SPRESENSE
5e4e8f6809
drivers/video/isx019: Fix white balance control and capability
2022-10-26 03:57:26 +08:00
SPRESENSE
d57324473e
drivers/video/isx019: Increase waiting time for HW initialization
2022-10-26 03:57:26 +08:00
SPRESENSE
254139bcec
drivers/video/isx012: Add missing FAR qualifier
2022-10-26 03:57:26 +08:00
SPRESENSE
e48f8be8c5
drivers/video/isx012: Support clip feature
2022-10-26 03:57:26 +08:00
SPRESENSE
277c8e368b
drivers/video: Update API to dump register for debug
2022-10-26 03:57:26 +08:00
SPRESENSE
1332bdb9a7
drivers/video: Add get frame interval API
2022-10-26 03:57:26 +08:00
yinshengkai
f018a9cb54
Makefile: Remove INCDIROPT
...
This option, which resolves to -w when CONFIG_CYGWIN_WINTOOL is
configured, is now appended to INCDIR in tools/Config.mk.
See git commit # 5eae32577e
in the main
2022-10-25 12:05:38 +02:00
SPRESENSE
e66bb207aa
drivers/modem/alt1250: Change return type of bool function
2022-10-24 10:44:01 +02:00
SPRESENSE
33f903178e
drivers/modem/alt1250: Fix poll function
...
Notify only when there are available events.
2022-10-24 12:57:22 +08:00
Xiang Xiao
00d78a51e4
Fix usbhost/usbhost_hub.c:1339:3: error: 'free' called on pointer 'alloc' with nonzero offset 12 [-Werror=free-nonheap-object]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-23 22:44:35 +02:00
Xiang Xiao
57b6447e0a
Fix error: mmcsd/mmcsd_sdio.c:2669:35: error: 'buffer' may be used uninitialized [-Werror=maybe-uninitialized]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-23 22:44:35 +02:00
Xiang Xiao
e91e144fb6
Fix sensors/hyt271.c:811:16: error: 'data.data' may be used uninitialized [-Werror=maybe-uninitialized]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-22 20:14:38 +02:00
Xiang Xiao
85deafd7bf
Fix bcmf_netdev.c:705:7: error: 'strnlen' specified bound 2 exceeds source size 1 [-Werror=stringop-overread]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-22 20:14:38 +02:00
anjiahao
e1ca516488
use SEM_INITIALIZER inside of NXSEM_INITIALIZER
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-10-22 14:50:48 +08:00
anjiahao
5724c6b2e4
sem:remove sem default protocl
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-10-22 14:50:48 +08:00
Alin Jerpelea
06c8e43df9
drivers: modem: update altair modem
...
update Altair modem with the ALT1250 implementation
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-10-22 09:00:32 +08:00
chao an
3f14efa033
wireless/bcm43xxx: Add missing FAR qualifier to bcmf_driver
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-21 14:38:45 +08:00
chao.an
d27129bc35
wireless/bcm43xxx: discard auth event if netdev down
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-21 14:38:45 +08:00
chao an
d861c7bfd9
wireless/bcm43xxx: subscribe only to the events we need
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-21 14:38:45 +08:00
chao.an
1935783392
wireless/bcm43xxx: skip WEP privacy
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-21 14:38:45 +08:00
chao.an
38534e06dd
wireless/bcm43xxx: skip bad channel bss
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-21 14:38:45 +08:00
chao an
4fe321b6fb
wireless/bcm43xxx: correct auth status if PSK is invaild
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-21 14:38:45 +08:00
chao.an
41c86c526a
wireless/bcm43xxx: only report PSK ssid by scan filter
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-10-21 14:38:45 +08:00
SPRESENSE
56e3053b1a
mtd/smart: Fix a compile error in smart_fsck
...
Fix a compile error caused by below commit.
9ad75fd95d
Added SMART flash filesystem to RP2040
Add some macro functions for smartfs driver.
2022-10-19 23:37:39 +08:00
Xiang Xiao
e2a18ad339
sched: Support envp argument of task_spawn and nxtask_create
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-19 08:22:56 +09:00
Xiang Xiao
6b31918b42
Remove the unnecessary cast for main_t, NULL and argv
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 08:51:45 +02:00
Xiang Xiao
dca5a3483f
drivers: Destroy mutex and sem in the error path
...
also correct the order to ensure the memory free is last step
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:59:46 +09:00
anjiahao
dee38ce3e8
arch: Replace critical section with nxmutex in i2c/spi/1wire initialization
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:59:46 +09:00
anjiahao
d1d46335df
Replace nxsem API when used as a lock with nxmutex API
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-17 15:59:46 +09:00
wangbowen6
c860a6e5f1
rpmsgdev: forward all open/close to server to support complex driver
...
Before this commit, each rpmsgdev server only manages one file
no matter how many times the client opened.
It can't work fine with some complex drivers, such as input driver
(keyboard, touchscreen and button), because input driver will alloc
a new private open structure for every open operation to make sure
all the applications don't miss data when input driver is used by
multiple applications.
This commit solves this problem by making the files in server and
client be one-to-one.
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-10-12 08:53:58 +02:00
zhangyuan21
fc9b5e1980
arch_alarm: adjust oneshot/arch_alarm to support tick
2022-10-12 11:55:46 +08:00
zhangyuan21
750007ded9
sched: use tick count for sched timer expiration
2022-10-12 11:55:46 +08:00
Gustavo Henrique Nihei
10efe43c4c
lcd: Fix npixels parameter in calls to getrun/putrun
...
It was being passed in number of bytes, but the correct should be the
number of pixels.
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-10-11 09:07:28 +08:00
liangchaozhong
cc426f8539
usrsock:add done flag in usrsock_iovec_do
...
set done to true if all data in iovec array is copied
Signed-off-by: liangchaozhong <liangchaozhong@xiaomi.com>
2022-10-11 00:57:49 +08:00
liangchaozhong
f9a9a02e3e
usersock: Add driver with type of rpmsg interface
...
move usrsock rpmsg driver from userspace to kernel to reduce extra
context switch for usrsock operations
Signed-off-by: liangchaozhong <liangchaozhong@xiaomi.com>
2022-10-11 00:57:49 +08:00
wangbowen6
5d8cbfb279
rpmsgdev: add rpmsgdev poll() support.
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-10-09 02:40:06 +08:00
Masayuki Ishikawa
9930ad3279
drivers: net: Fix build errors in skeleton.c
...
Summary:
- This commit fixes build errors in skeleton.c
- Also, add CONFIG_NET_SKELETON to Kconfig and Make.defs
Impact:
- None
Testing:
- Build with sabre-6quad:netnsh (will be updated later)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-10-07 14:34:03 +08:00
Xiang Xiao
34b05804b0
bluetooth: Remove hcicollecttask from btuart shim driver
...
monitor POLLIN event through callback mechanism instead
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-02 18:14:00 -03:00
Xiang Xiao
fe38cb1bad
bluetooth: Implement hciuart_ioctl for btuart lowerhalf shim driver
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-02 18:14:00 -03:00
Xiang Xiao
6ec74d8d36
bluetooth: Forward ioctl to btuart lowerhalf driver
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-02 18:14:00 -03:00
Xiang Xiao
fab8b081c0
bluetooth: Implement btuart_close for btuart upperhalf driver
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-02 18:14:00 -03:00
Xiang Xiao
11d083b358
bluetooth: Remove the unnecessary cast in btuart driver
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-02 18:14:00 -03:00
Xiang Xiao
dbb3c768c3
driver/usersock_dev: Check CONFIG_NET_USRSOCK_DEVICE instead CONFIG_NET_USRSOCK
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-02 22:13:52 +02:00
Xiang Xiao
486a6f81d1
drivers/net: Enable NETDEVICES by default
...
since there are many net drivers doesn't depend on phy
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-01 19:12:15 +02:00
Xiang Xiao
e38248ee08
Return -EINVAL for the internal API
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-30 17:54:56 +02:00
Xiang Xiao
bdeaea3742
Remove the unnessary empty line after label
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-30 17:54:56 +02:00
Xiang Xiao
0fa17f32f2
drivers/telnet: Remove io work thread
...
The thread isn't really needed but complicate the workflow
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-30 12:54:29 +09:00
Xiang Xiao
c3b6d35290
drivers/telnet: Let psock_poll check the valid of td_psock instead
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-30 12:54:29 +09:00
Xiang Xiao
a52fbe87eb
drivers/telnet: Return the partial sent bytes in telnet_write
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-30 12:54:29 +09:00
Fotis Panagiotopoulos
bbf3f2866d
Fixed non-UTF8 characters.
2022-09-28 09:38:55 +08:00
Xiang Xiao
40ef5bc6db
libc: Move queue.h from include to include/nuttx
...
to avoid the conflict with libuv's queue.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-26 08:04:58 +02:00
wangbowen6
344c8be049
poll: add poll_notify() api and call it in all drivers
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-09-26 12:06:32 +08:00
Xiang Xiao
ba20cadd65
watchdog: Add help description for each keep alive method
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-20 22:04:36 +02:00
Xiang Xiao
665e05ec48
watchdog: Change WATCHDOG_AUTOMONITOR_PING_INTERVAL default to zero
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-20 22:04:36 +02:00
Xiang Xiao
03f45a124a
watchdog: Support auto monitor keep alive from oneshot lowerhalf
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-20 22:04:36 +02:00
Xiang Xiao
1eefec4db3
watchdog: Support auto monitor keep alive from timer lowerhalf
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-20 22:04:36 +02:00
Xiang Xiao
47d2859f85
watchdog: Rename WATCHDOG_AUTOMONITOR_BY_TIMER to WATCHDOG_AUTOMONITOR_BY_WDOG
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-20 22:04:36 +02:00
田昕
f6ebbe4429
drivers/mtd:init commit of power-loss resilient cfg
...
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2022-09-15 17:46:56 +08:00
Alan Carvalho de Assis
72313301e2
net/w5500: Fix small typo
2022-09-13 19:50:25 -04:00
Nathan Hartman
1913163c64
drivers: Fix some Kconfig help texts
2022-09-13 23:25:47 +08:00
Nathan Hartman
00666a8778
drivers/mmcsd: Remove executable permissions from source files
2022-09-13 23:07:34 +08:00
licheng
6a01099c59
reinit spi sd when sd status is wrong.
...
Signed-off-by: licheng <chengli@bestechnic.com>
2022-09-12 17:12:02 -03:00
Xiang Xiao
8b8534c4b4
usrsock: Initialize g_usrsockdev in the declaration
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-11 10:08:04 +09:00
Xiang Xiao
77823415ed
net/usrsock: Remove the unnecessary blank line
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-11 10:08:04 +09:00
Xiang Xiao
ef246c0869
mtd/config: Remove MTD_CONFIG_ERASEDVALUE
...
since we can query this value by MTDIOC_ERASESTATE after:
commit 30cb497fe1
Author: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
Date: Tue Jul 13 19:33:12 2021 -0300
mtd: Add MTDIOC_ERASESTATE command for retrieving erase state value
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-10 10:41:42 +02:00
liangchaozhong
5ec4296553
move usrsock_dev.c to driver folder
...
Signed-off-by: liangchaozhong <liangchaozhong@xiaomi.com>
2022-09-10 13:08:22 +08:00
ligd
d1b118d731
uart_rpmsg: add mutex to dmatx
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-09-09 20:27:25 -03:00
wangbowen6
c754df6411
drivers/mtd: add rpmsg mtd support
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-09-09 19:27:57 +08:00
chao an
7c6e4a7204
drivers/ipcc: enter/leave critical section should in pairs
...
Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-08 19:37:18 +08:00
Masayuki Ishikawa
22a5cc0973
drivers: wireless: Add SIOCGIFFLAGS support to gs2200m.c
...
Summary:
- I noticed that the latest ifconfig command shows nothing
- Finally, I found that gs2200m.c needs to handle SIOCGIFFLAGS
- This commit fixes this issue
Impact:
- gs2200m only
Testing:
- Tested with spresense:wifi
- NOTE: gs2200m_main.c will be updated later
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-09-07 11:21:20 +08:00
Xiang Xiao
9726be616a
fs: Run the default action of FIONBIO/FIOCLEX/FIONCLEX in success path
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-09-06 23:16:15 +08:00
curuvar
89d3ba44ca
Fixes to RP2040 SMART flash and documentation
2022-09-06 13:13:00 +08:00
curuvar
9ad75fd95d
Added SMART flash filesystem to RP2040
2022-09-05 10:38:56 -03:00
zhangyuan21
1a9252aec9
nuttx/queue: change some queue function to macro
2022-09-04 11:08:02 +08:00
Xiang Xiao
38af5befad
bt_bridge: Fix error: address argument to atomic operation must be a pointer to _Atomic type
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-27 22:38:43 +08:00
chengkai
40f7872668
wireless/bluetooth:add btsnoop for bt bridge
...
Signed-off-by: chengkai <chengkai@xiaomi.com>
2022-08-27 15:57:30 +08:00
chengkai
7a7b5e5779
wireless/bluetooth:add bt bridge codes
...
Signed-off-by: chengkai <chengkai@xiaomi.com>
2022-08-27 15:57:30 +08:00
zouboan
b933ea63c4
as5048b.c: change initialization of struct to C89 standard
2022-08-27 07:24:21 +02:00
Simon Filgis
423ee67554
Double the MMCSD_IDLE_DELAY from 50ms to 100ms because I found one card that needs this to work after initial CMD0.
2022-08-26 13:37:08 +08:00
Xiang Xiao
130b196876
Refine how to specify iob and ramlog data section
...
1.Remove the default value(.bss)
2.Remove !ARCH_SIM dependence
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-25 14:05:17 +02:00
Huang Qi
e4e3208180
Replace all strncpy with strlcpy for safety
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-25 13:38:36 +08:00
chengkai
d78ffeca71
serial/uart/h4: add ioctl interface
...
Signed-off-by: chengkai <chengkai@xiaomi.com>
2022-08-24 21:42:58 +08:00
chao.an
55df6e951e
drivers: Fix compiler errors
...
riscv64-unknown-elf-ld: staging/libdrivers.a(rwbuffer.o): in function `rwb_flush':
rwbuffer.c:(.text.rwb_flush+0x12): undefined reference to `rwb_forcetake'
Signed-off-by: chenwen@espressif.com <chenwen@espressif.com>
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-08-22 23:03:30 +08:00
Michał Łyszczek
4e967c67b4
stm32wl5: fix unbuffered mode and other possible bugs
...
This patch fixes unbuffered mode so it actually works.
Also, patch contains fixes for possible bugs that could result in
deadlock or system hang in certain situations.
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2022-08-18 11:46:38 +08:00
curuvar
74f1bfbfd7
Added support for Raspberry Pi Pico W
2022-08-17 19:03:19 -03:00
wangbowen6
52a1692cfa
rpmsgdev: add rpmsg-device support.
...
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2022-08-17 18:33:58 +08:00
Xiang Xiao
ba9486de4a
iob: Remove iob_user_e enum and related code
...
since it is impossible to track producer and consumer
correctly if TCP/IP stack pass IOB directly to netdev
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-08-15 08:41:20 +03:00
curuvar
e247eaf3e8
Add gSPI mode support for Infineon CYW43539
2022-08-15 10:31:36 +08:00
Nathan Hartman
9d5a91c41a
ioexpander: Honor C89 standard
2022-08-15 10:24:39 +08:00
Alan Carvalho de Assis
9b67c759cb
apa102: Remove unused variable
2022-08-15 00:32:42 +08:00
Diego Herranz
e1e89b925f
drivers/leds/ws2812: Revert SPI frequency change
...
0c3db448bb
added the option to generate the waveforms to drive ws2812 and similar LEDs using different
hardware (e.g. RP2040 PIO instead of SPI).
For that new mode, the concept of CONFIG_WS2812_FREQUENCY is different. Instead of
the SPI frequency (commonly a few MHz), it is the frequency of the actual output waveform
(commonly 400 or 800 kHz).
There was an attempt to express the SPI frequency divided by 10, but it's not actually the
case either (it would be divided by 8).
I think it is clearer to explain in Kconfig what CONFIG_WS2812_FREQUENCY means for each mode
and go back to the previous behaviour for the original SPI mode (also to avoid breaking
out-of-tree boards).
2022-08-13 10:01:28 -07:00