ZhongAn
596f52c3ee
Nuttx/dma: add dma framework for nuttx
...
Signed-off-by: ZhongAn <zhongan@pinecone.net>
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-04-22 01:02:51 +08:00
yinshengkai
a297ff61f5
drivers/note: replace sched_note_filter_dump to sched_note_filter_tag
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-04-19 02:53:34 +08:00
Fotis Panagiotopoulos
ab1b3c0337
Added missing checks in strdup'ed strings.
2023-04-19 02:49:31 +08:00
simbit18
433ec4c9de
drivers/sensors/Kconfig: Fix bmp280 texts in Kconfig
...
Fix SENSORS_BMP280 texts in Kconfig
2023-04-19 02:46:09 +08:00
XinStellaris
a4546f35d2
drivers/mtd:fix uninit data in mtd_config_fs
...
Signed-off-by: XinStellaris <tianxin7@xiaomi.com>
2023-04-19 02:45:46 +08:00
SPRESENSE
20424a8a59
drivers/audio/cxd56.c: Fix freeze audio and add underrun notify
...
Fix freeze audio driver when it start 2nd time.
And add underrun notify to application as an event.
2023-04-17 10:24:48 +02:00
Zhe Weng
7671ed9615
usrsock_server: Raise error earlier for large sendto request
...
It's better to raise error before client sends its (NIOVEC+1)th buffer
(and release buffers held by server), otherwise the client may stuck at
getting (NIOVEC+1)th tx buffer if NIOVEC is equal to rpmsg buffer num.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-04-15 21:56:03 +09:00
Zhe Weng
0d118ec214
usrsock_server: Use remain instead of iov[0] to figure out partial requests
...
Found a problem:
When sendto handler gets an error, it will release all its rx buffer,
then iov_base becomes NULL. But it cannot let client stop its request,
then the next data from client cannot be handled by usrsock server
correctly.
It's better to note down the remaining bytes, then we can stop at
correct time.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-04-15 21:56:03 +09:00
simbit18
2309eacf9f
drivers/sensors/Kconfig: Fix bmi160 help texts in Kconfig
...
Fix bmi160 help texts in Kconfig
2023-04-12 07:54:19 +02:00
zhangyuan21
c239d19df0
nuttx: add more dependent header file
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-04-11 09:13:32 +03:00
wangming9
a7fc26124d
arch/arm64: the arm64 perf interface supports pmu
...
Summary:
- Support arm64 pmu api, Currently only the cycle counter function is supported.
- Using ARM64 PMU hardware capability to implement perf interface, modify all
perf interface related code.
- Support for pmu init under smp.
Signed-off-by: wangming9 <wangming9@xiaomi.com>
2023-04-10 16:23:49 -03:00
zouboan
90ff76dfd6
drivers/sensors: add support of InvenSense MPU-9250 sensor
2023-04-10 11:25:42 -03:00
yinshengkai
b3e1004658
sched_note: add function auto-tracing
...
After enabling this option, you can automatically trace the function instrumentation without adding tracepoint manually.
This is similar to the Function Trace effect of the linux kernel
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-04-10 11:04:24 -03:00
Dong Heng
a51e102a41
xtensa/esp32: Make asprintf and lib_free corresponding
2023-04-06 20:57:19 +03:00
raiden00pl
478f2f3d5f
rndis: move private definitions from a public header to the source file
2023-03-31 08:17:01 +09:00
raiden00pl
58e817db76
rndis: do not configure endpoints from Kconfig when composite enabled
...
This should be done from a board specific logic, as for other composite devices
2023-03-31 08:17:01 +09:00
Lwazi Dube
18d196e968
usbhost_hidkbd: Add the option to use interrupt transfers.
...
Using the interrupt pipe is recommended in the Get_Report
request section of the HID standard. This option has been
added to support some keyboards that refuse to return valid
keys when polled using the Get_Report request. Support for
the Caps Lock key, including LED, has also been added.
2023-03-29 09:22:41 -03:00
Zhe Weng
9fd4d6b767
usrsock_server: Do not poll SOCK_CTRL.
...
It seems that we don't need to poll the SOCK_CTRL sockets, so skip them in usrsock server.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-03-29 09:18:36 -03:00
zhanghongyu
0550082966
usrsock_server: add debug info for poll_setup
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-03-29 09:18:36 -03:00
raiden00pl
bed53538e8
rndis: EP0 belongs to composite class if composite enabled
2023-03-28 19:43:56 -03:00
raiden00pl
8de2197773
rndis: exclude the logic that belongs to composite
2023-03-28 19:43:56 -03:00
raiden00pl
cb05700acf
rndis: interface association descriptor should depend on CONFIG_COMPOSITE_IAD
2023-03-28 19:43:56 -03:00
raiden00pl
10f1d3e76e
rndis: fix dev info init for composite
2023-03-28 19:43:56 -03:00
raiden00pl
9b70e010dc
rndis: refactor usbdev_rndis_get_composite_devdesc to make it more like in other composite drivers
2023-03-28 19:43:56 -03:00
Huang Qi
c623a7b731
drivers/lcd/st7789: Support mirror X/Y
...
Support mirror display by X/Y axis, it's useful for
single portrait/landscape but need to mirror specific direction.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-27 17:55:49 -03:00
Xiang Xiao
bc3e6c84e1
arch: Rename up_[early]serialinit to [arm64|riscv|x86_64][early]serialinit
...
The naming standard at:
https://cwiki.apache.org/confluence/display/NUTTX/Naming+of+Architecture%2C+MCU%2C+and+Board+Interfaces
requires that all MCU-private function begin with the name of the architecture, not up_.
follow the change from: https://github.com/apache/nuttx/pull/930
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-27 12:35:04 +03:00
Lwazi Dube
21ffb4de72
boards/sama5d3-xplained: Make hot plugging more reliable.
2023-03-26 13:03:21 -03:00
Huang Qi
7ce78dd66a
Revert "driver/uart_rpmsg: Passthrough data by default"
...
This reverts commit 64e611d71e
.
2023-03-24 14:59:41 -03:00
raiden00pl
50cf84c99a
usbdev-composite: ep0 submit should be send only once for the composite class
2023-03-24 14:54:31 -03:00
raiden00pl
d014b9d384
rndis: use composite_ep0submit to send the ep0 when composite
2023-03-24 14:54:31 -03:00
raiden00pl
6caa9317f6
usbmsc: do not send deferred response if we are part of the composite device
...
EP0 is owned by the composite class so it shouldn't be directly accessed by usbmsc
2023-03-24 14:52:50 -03:00
chao an
cdcdce16f7
wireless/bcm43xxx: enter power saving only if IEEE80211_BROADCOM_LOWPOWER enabled
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-22 17:26:52 -03:00
chao an
266774939f
wireless/bcm43xxx: downgrade log level of allocate frame fail
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-22 17:26:52 -03:00
chao an
4e3480554d
mmcsd/sdio: enlarge cmd53 timeout to 1s
...
cmd53 need a longer tolerance on some slow devices
Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-22 17:26:52 -03:00
chao an
1b46484849
mmcsd/sdio: fix potential race condition in sdio
...
sdio driver should ensure the thread safety
Signed-off-by: chao an <anchao@xiaomi.com>
2023-03-21 14:40:44 -03:00
Lwazi Dube
84a3ddd79b
boards/sama5d3-xplained: Fix OHCI clock.
...
Choose a divider value that matches the description provided within
the same header file.
Include stddef.h to fix compiler errors because NULL is not defined.
Make logs print protocol, vid and pid consistently, (decimal hex hex).
2023-03-21 14:08:03 -03:00
Lucas Saavedra Vaz
326261dd7d
drivers/audio/es8388: Add input support
2023-03-21 12:13:59 -03:00
yinshengkai
64e7e43f1f
drivers/note: adjust the note_driver_ops definition
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-03-21 12:13:38 -03:00
yinshengkai
9ecaa022c8
note: fix assignment warning
...
note/note_driver.c:154:7: warning: unsigned conversion from ‘int’ to ‘unsigned char’ changes value from ‘65535’ to ‘255’ [-Woverflow]
154 | , CONFIG_SCHED_INSTRUMENTATION_CPUSET
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-03-21 12:13:38 -03:00
yinshengkai
d73fb5ca21
note: fix sched_note_suspend logic error
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-03-21 12:13:38 -03:00
Huang Qi
fab77cd322
drivers/pty: Echo input by default
...
Align the pty behavior to linux/bsd,
Also fix the ECHO issue with microadb after https://github.com/apache/nuttx/pull/8691 .
adb shell will echo normally with this patch.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-21 07:23:17 +09:00
Sebastien Lorquet
13d823f307
spi_xx25xx: Repair the spi bus locking mechanism when waiting for write completion
2023-03-20 07:08:16 -07:00
Xiang Xiao
e7090022a0
drivers/serial: Fix some typo error report in https://github.com/apache/nuttx/pull/8843
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-20 08:08:04 +01:00
Xiang Xiao
d9a8d5f2ee
usb/cdcacm: Remove the process for tc_iflag, tc_oflag and tc_lflag
...
since the common code in serial.c already handle them correctly:
https://github.com/apache/nuttx/blob/master/drivers/serial/serial.c#L1556-L1601
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-19 14:54:59 -06:00
Xiang Xiao
b63994b7f7
drivers/serial: Always support c_oflag, c_iflag and c_lflag in termios
...
CONFIG_SERIAL_TERMIOS only decide whether to support c_cflag field since
many terminal application need the first three fields to work correctly.
For more information please reference:
https://www.mail-archive.com/dev@nuttx.apache.org/msg09321.html
before this change(olimexino-stm32:tiny):
text data bss dec hex filename
34884 328 1768 36980 9074 nuttx
after this change:
text data bss dec hex filename
35052 340 1768 37160 9128 nuttx
delta
text data bss dec hex filename
168 12 0 180 b4 nuttx
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-19 14:54:59 -06:00
zhanghongyu
9a28cd2000
tun: fix the access address is incorrect
...
correct eth_hdr address and reset d_iob to NULL after netdev_iob_prepare
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-03-15 22:34:59 +01:00
zhangyuan21
443c4c46b0
arch_timer: fixed build issue when enable tickless
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-03-15 11:52:52 +01:00
raiden00pl
a6c1ef3c52
wireless/bluetooth: add RPMSG HCI controller support
2023-03-14 09:51:13 +08:00
Michal Lenc
0797b03c08
mmcsd: add nxsig_usleep delay after MMC_CMD1 command
...
MMC_CMD1 command is used to check whether card is MMC type (checked if
CONFIG_MMCSD_MMCSUPPORT is enabled). This commit inserts nxsig_usleep
wait if this check fails. This is to ensure the communication recovers
from invalid response as this may take some time on some platforms (
samv7 for example). Following command for SDHC check may fail if sleep
is not used.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-03-13 22:22:54 +02:00
Huang Qi
061e98aa98
drivers/serial: Fix wrong ECHO flag
...
There is a rookie mistake introduced by https://github.com/apache/nuttx/pull/8691 ,
ECHO flag is a part of Local Mode (c_lflags) instead of c_iflags.
nuttx-apps should do the same change in nsh_login and termcurse_vt100.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-13 16:29:36 -03:00
zouboan
474bcedbd4
sensor/mpu60x0: Fix some error bit and width macro
2023-03-12 15:59:56 +02:00
raiden00pl
b9fd059914
drivers/bluetooth: bth4 depends on bluetooth definitions
2023-03-11 20:30:25 -03:00
Petro Karashchenko
61e996af33
drivers/usbmisc: remove redundant scope in switch/case
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-09 16:27:07 -03:00
Petro Karashchenko
4581a84064
nuttx: fix indentation issue
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-09 16:27:07 -03:00
Gonzalo Aterido
6cb649ecf6
Fix unwanted flush in the SPI slave driver
2023-03-09 03:53:35 +08:00
Huang Qi
cfe6c4be8e
driver/serial: Only enable tx interrupt if tx buffer is not empty
...
Fix https://github.com/apache/nuttx/issues/8731
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-08 16:02:56 +02:00
Karel Kočí
62661600b2
treewide: add DOWNLOAD variable as unification of curl call
...
This is a followup to the commit
03b164f59c
.
2023-03-08 17:05:05 +08:00
Huang Qi
64e611d71e
driver/uart_rpmsg: Passthrough data by default
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-08 16:39:17 +08:00
Michal Lenc
88f3d89920
pwm: add configuration option for dead time generators
...
PWM drivers usually supports dead time generators that automatically
insert output activation delay for complementary PWM outputs. This
is usefull for some control purposes as control of H bridge for example.
This commit adds an application to driver interface that can be used
to set up those delays (if supported by the selected architecture)
directly from the application. The set up remains the same as for duty
cycle value.
The whole addition is by default disabled. It can be enabled by config
option PWM_DEADTIME.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-03-07 01:30:01 +08:00
TimJTi
94f0283bdd
Correct DEBUGASSERT code error, _err format error, better C89 compatability
...
Update drivers/power/supply/act8945a.c
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-03-06 17:25:39 +02:00
jturnsek
4c2edece50
Adding support for LS027B7DH01A display and MEMLCD_EXTCOMIN_MODE_HW
2023-03-06 16:23:15 +02:00
jturnsek
97b4900c59
Bug fixes and improved interrupt support for mcp23x17 driver
2023-03-06 08:40:33 +08:00
Tiago Medicci Serrano
a3badd26a0
drivers/serial: Echo CR if NL is detected if console
...
Echoing console's input is now performed by the serial driver
(https://github.com/apache/nuttx/pull/8691 ). In order to keep old
behavior of CR being echoed by the device, it's needed to detected
whenever NL is being echoed and send CR before sending it.
2023-03-05 09:44:26 +08:00
zhangyuan21
699c930987
drivers/usb: fixed sim usb dev and host build issue
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-03-03 14:31:30 -03:00
Xiang Xiao
a2190aeb35
Fix error: '%s' directive output may be truncated
...
writing up to 31 bytes into a region of size 27 [-Werror=format-truncation=]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-03-03 04:08:22 -08:00
Huang Qi
44857ab30e
driver/serial: Echo only determined by ECHO flag with termios enabled
...
Fix a bug that can not disable echo even if termios is enabled.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-03 09:44:30 +02:00
Huang Qi
68384e9db4
drivers/serial: Echo input in driver layer
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-03 11:37:41 +08:00
yinshengkai
6e35a51feb
note: optimize noteram_add, copy as much content as possible at a time
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-03-02 22:55:50 +08:00
Huang Qi
5ced61ce08
drivers/serial: Include spawn.h required by CONFIG_TTY_LAUNCH
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-02 11:43:28 +08:00
zhanghongyu
16ea80e53b
rndis: support iob offload
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-03-02 02:50:59 +08:00
yinshengkai
67461175fe
note: support note filtering at runtime
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-03-01 22:09:41 +08:00
huxiandong
266455f01c
mtd: Extend isbad and markbad func for mtd_dev_s
...
Signed-off-by: huxiandong <huxiandong@xiaomi.com>
2023-03-01 10:06:56 -03:00
Huang Qi
b178ce4da9
driver/pty: Map CR->LF from terminal input
...
NuttX only treat \n as new line after https://github.com/apache/nuttx/pull/8628 ,
so need this conversion to interact with terminal emulator.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-02-27 21:12:35 +08:00
Xiang Xiao
2c5f653bfd
Remove the tail spaces from all files except Documentation
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-26 13:24:24 -08:00
zhangyuan21
528dce4f7f
usbdev/adb: fixed adb build issue
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-02-27 01:30:19 +08:00
yinshengkai
aa6bffef83
drivers/note: dump the latest scheduling information when panic
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-02-25 18:39:27 +08:00
yinshengkai
f9f0ab8dc4
drivers: add note driver backend for recording scheduling information
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-02-25 18:39:27 +08:00
pengyiqiang
621bf54efc
drivers/video/fb: fix poll event lost
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-02-24 22:21:09 +08:00
yinshengkai
9ed1519cea
note: handle tcb is empty, so that it can also record before the driver initialization
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-02-24 14:07:33 +08:00
lilei19
38f64f559d
change strcpy to strlcpy
...
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-02-24 12:15:40 +08:00
ligd
8b078d261f
rptun: fix rptun_start() failed
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-02-23 22:49:47 +08:00
yinshengkai
29a7d267fb
note: correct systime with perf count
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-02-23 22:30:07 +08:00
yinshengkai
55ce5d0511
note: remove SCHED_INSTRUMENTATION_HIRES
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-02-23 22:30:07 +08:00
Xiang Xiao
c54c9395a5
Revert "drivrs/mtd/filemtd.c: add block device MTD interface. Block MTD interface allows using block device directly as MTD instead of having to use file-system in between. NOTE that this provides the opposite capability of FTL which will let you use an MTD interface directly as a block device."
...
since filemtd can handle not only char device, but also block device.
This reverts commit 5ef548677a
.
2023-02-22 16:38:29 +08:00
Zhe Weng
9d53de374c
usrsock: Add DebugAssert for poll setup result
...
We never check its result and assume it will success, so an assert should be better than retval.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-02-22 01:42:14 +08:00
Xiang Xiao
a841be9b9c
drivers/note: Remove the warning of preemption and critical sections
...
since both aren't suitable after:
commit 98ab55ef68
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date: Fri Dec 30 12:02:47 2022 +0800
drivers/note: Replace the scritical section with spin_xxx_wo_note
to avoid to generate the unexpected schedule information
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-20 19:27:32 +08:00
chao an
ee1e1108a7
drivers/note: fix build break by note rename change
...
Regression by:
| commit ee24396d77
| Author: Xiang Xiao <xiaoxiang@xiaomi.com>
| Date: Tue Feb 14 01:11:48 2023 +0800
|
| drivers/note: Change DRIVER_NOTExxx to DRIVERS_NOTExxx
|
| follow other driver config style
|
| Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-20 16:19:57 +08:00
Xiang Xiao
ee24396d77
drivers/note: Change DRIVER_NOTExxx to DRIVERS_NOTExxx
...
follow other driver config style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-20 14:30:59 +08:00
Xiang Xiao
eafc80c055
drivers/note: Remove the dependence of noteram driver
...
since after the below commit, noteram driver can work even when
the instrumentation of csection, spinlock and smp is enabled
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-20 14:30:59 +08:00
Xiang Xiao
6b14ad9337
driver/note: Restore SCHED_INSTRUMENTATION config to sched/Konfig
...
since the chip/board vendor could disable dirvers/note and
provide the implementation of sched_note_xxx by self
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-20 14:30:59 +08:00
Oreh
9902f39d92
Add MTD loop driver (use filemtd)
2023-02-19 19:46:48 +08:00
Michal Lenc
333707e101
pwm: add PWM overwrite under CONFIG_PWM_OVERWRITE option
...
Generic drivers shoud not use architecture related config options like
CONFIG_SAMV7_PWM. This commit adds PWM pin overwrite under generic
configuration option CONFIG_PWM_OVERWRITE.
Now the overwrite can be used on other architectures as well or can be
completely disabled for SAMv7.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-02-19 00:16:41 +08:00
TimJTi
f629b6063c
Correct inconsistencies
2023-02-18 11:03:38 +08:00
Igor Mišić
8e4d461d61
drivers/mtd/ramtron: change nsectors size to uint32
2023-02-17 11:19:46 -03:00
Fotis Panagiotopoulos
85ceb7920e
Typo fixes.
2023-02-17 11:17:11 -03:00
David Sidrane
9d0e712347
mmcsd_sdio:Release CPU during wait for Write Completion
2023-02-17 15:26:19 +08:00
David Sidrane
d570a93945
mmcsd_sdio:Insure a error exiting via mmcsd_removed will not Hang system.
...
mmcsd_removed will be called if the card is in invalid state.
This can happen if the card is bad, or vibrations causes a power
loss.
mmcsd_removed resets:
priv->capacity = 0; /* Capacity=0 sometimes means no media */
priv->blocksize = 0;
priv->probed = false;
priv->mediachanged = false;
priv->wrbusy = false;
priv->type = MMCSD_CARDTYPE_UNKNOWN;
priv->rca = 0;
priv->selblocklen = 0;
priv->widebus = false;
If blocksize is set to 0 will cause the log2 to result
in an infinate loop in some drivers.
IS_EMPTY will check for priv->type = MMCSD_CARDTYPE_UNKNOWN
and return ENODEV.
2023-02-17 15:26:19 +08:00
Nathan Hartman
409e2f3701
drivers/serial, libc/termios: Implement tcsendbreak
...
The TERMIOS(3) function tcsendbreak() and the IOCTLs TCSBRK and TCSBRKP
transmit a serial line Break.
Previously NuttX included an extern declaration for tcsendbreak() and
defines for TCSBRK and TCSBRKP but none of these were implemented.
Attempting to build programs that called tcsendbreak() would fail with
a linker error; attempting to use TCSBRK and TCSBRKP would result in an
error at runtime.
This changeset adds the tcsendbreak() function and handling for TCSBRK
and TCSBRKP; tcsendbreak() is implemented in terms of TCSBRK. Both
TCSBRK and TCSBRKP are implemented in terms of the BSD-compatible Break
IOCTLs TIOCSBRK and TIOCCBRK, which must be provided by the lower half
serial driver. Currently, not all lower half serial drivers in NuttX
support these IOCTLs. Those that do implement them may need one or more
Kconfig options to be set, such as `CONFIG_*_U[S]ART_BREAKS` and, on
some architectures, a separate `CONFIG_*_SERIALBRK_BSDCOMPAT`.
* drivers/serial/serial.c
(uart_tcsendbreak): New function.
(uart_ioctl): Implement TCSBRK and TCSBRKP.
* libs/libc/termios/lib_tcsendbreak.c
(): New file.
* libs/libc/termios/Make.defs
(CSRCS): Add lib_tcsendbreak.c to the build.
Thanks to Xiang Xiao for PR feedback.
Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>
2023-02-15 07:50:02 +08:00
zhangyuan21
32513cedf0
usbdev/adb: add adb usbclass_unbind function
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-02-14 22:20:12 +08:00
jihandong
a1e04617f8
drivers/video/video: add poll support to capture
...
support part of Linux std:
https://www.kernel.org/doc/html/v4.9/media/uapi/v4l/func-poll.html
Capture devices set the POLLIN and POLLRDNORM flags in the revents field
Signed-off-by: jihandong <jihandong@xiaomi.com>
2023-02-13 23:17:45 +08:00
jihandong
ae7bc4e300
drivers/video/video: add NONBLOCK support
...
Signed-off-by: jihandong <jihandong@xiaomi.com>
2023-02-13 23:17:45 +08:00
zhangyuan21
b4aa5b0d0b
usbdev: fixed DUALSPEED issue for adb/cdcecm/rndis
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-02-13 18:47:42 +08:00
TimJTi
98e47a1770
FUSB302
...
Update fusb302.c
Update fusb302.c
2023-02-12 16:48:44 +08:00
zhangyuan21
8f4cb0fec3
rndis: add endpoint configure
...
ep3 is not avaliable in dummy hcd, so need to
make the endpoint number configurable.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-02-12 16:38:11 +08:00
zhangyuan21
f77a824105
usbdev/composite: remove excess uninitialize code
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-02-12 16:37:21 +08:00
zhangyuan21
4ddcb88c65
usbhost: fixed cdcacm issue
...
1. fixed cdcacm build issue
2. unregister uart driver when usbhost destroy
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-02-12 14:17:51 +08:00
Michal Lenc
824e6b3271
lcd/st7789: raise compilation error when CONFIG_SPI_CMDDATA is not set
...
CONFIG_SPI_CMDDATA is required for correct functionality of the display.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-02-11 20:32:20 +08:00
David Sidrane
ac50b3a473
ioexpander/gpio:Add gpio_pin_register_byname
2023-02-11 18:31:40 +08:00
Peter Bee
1949991fe0
drivers/video: add sequence number to video frames
...
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2023-02-09 23:27:15 +08:00
Peter Bee
2ebccd82b6
drivers/video: add timestamp support
...
Add support for timestamp and change in related drivers
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2023-02-09 23:27:15 +08:00
chao an
74ce3b81d3
build/Kconfig: add BINDIR/APPSBINDIR to support out of tree build
...
First decoupling changes related to CMAKE
BINDIR/APPSBINDIR:
Output path of Kconfig which dynamically generated by NuttX Kernel/Apps
This option is consistent with the TOPDIR/APPSDIR by default, and will
be changed when out-of-tree compilation is supported
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-09 20:13:04 +08:00
chao an
e942a7c55e
build/Kconfig: fix warnings detected by kconfiglib
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-09 20:07:46 +08:00
chao an
3a0fdb019d
nuttx: replace all ARRAY_SIZE()/ARRAYSIZE() to nitems()
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-09 20:05:44 +08:00
Huang Qi
b250db5dba
serial: Fix a warning if termios enabled
...
Fix:
```
serial/serial.c: In function 'uart_ioctl':
Error: serial/serial.c:1397:46: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1397 | FAR struct termios *termiosp = (FAR struct termios *)arg;
| ^
Error: serial/serial.c:1419:46: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
1419 | FAR struct termios *termiosp = (FAR struct termios *)arg;
|
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-02-08 13:31:35 +08:00
Huang Qi
3e41bd8b35
driver/serial: Convert CR to LF in driver
...
Enable the behavior by default for console,
but configurable by termios.
Binary size:
Before:
text data bss dec hex filename
326460 409 8164 335033 51cb9 nuttx/nuttx
After:
text data bss dec hex filename
326478 409 8164 335051 51ccb nuttx/nuttx
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-02-08 13:31:35 +08:00
Igor Mišić
0a4fbcd123
drivers/mtd: add Kconfig options for RAMTRON emulated page & sector size
2023-02-08 01:44:51 +08:00
chao an
1cb11968b7
net/ip: fix compile break if enable NET_LOCAL_SCM
...
1.
net/slip.c:865:29: warning: unused variable ‘priv’ [-Wunused-variable]
865 | FAR struct slip_driver_s *priv =
| ^~~~
net/slip.c: In function ‘slip_rmmac’:
net/slip.c:895:29: warning: unused variable ‘priv’ [-Wunused-variable]
895 | FAR struct slip_driver_s *priv =
| ^~~~
2.
local/local_sendmsg.c: In function ‘local_sendmsg’:
local/local_sendmsg.c:423:18: warning: ‘count’ may be used uninitialized in this function [-Wmaybe-uninitialized]
423 | return count;
| ^~~~~
local/local_sendmsg.c:131:11: warning: ‘i’ may be used uninitialized in this function [-Wmaybe-uninitialized]
131 | while (i-- > 0)
| ~^~
local/local_sendmsg.c:71:7: note: ‘i’ was declared here
71 | int i;
| ^
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-07 12:46:40 +02:00
Nathan Hartman
5f9cb6faf4
drivers/serial: Fix docstrings on UART interrupt handlers
2023-02-07 04:41:36 +08:00
chao an
1779433c35
wireless/bcm43xxx/qspi: try tx after rx fails
...
1. Try tx after rx fails to avoid gspi_thread busy to try rx
2. Add some delay if alloc frame buffer failed
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-07 04:40:38 +08:00
chao an
d5ac2be84f
bcm43xxx/bcmf_ioctl.h: pack wl_* structure to avoid unaligned access
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-07 04:40:38 +08:00
chao an
d03b105160
drivers/syslog: correct Kconfig name
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-05 01:05:32 +08:00
chao an
7625126c91
Remove the remain MIN/MAX like macro
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-03 23:22:41 +08:00
chao an
d1162ac58f
mmcsd/mmcsd_spi: remove redundant mmcsd_unlock()
...
Assertion on lm3s6965-ek/qemu-flat if enable CONFIG_DEBUG_ASSERTIONS:
_assert: Current Version: NuttX 12.0.0 666b224c35 Feb 3 2023 19:36:38 arm
_assert: Assertion failed : at file: misc/lib_mutex.c:336 task: nsh_main 0xb385
Backtrace:
nuttx/libs/libc/sched/sched_dumpstack.c:69
nuttx/sched/misc/assert.c:494
nuttx/libs/libc/assert/lib_assert.c:36
nuttx/libs/libc/misc/lib_mutex.c:336
nuttx/drivers/mmcsd/mmcsd_spi.c:421
nuttx/drivers/mmcsd/mmcsd_spi.c:2072
nuttx/boards/arm/tiva/lm3s6965-ek/src/lm_bringup.c:119 (discriminator 3)
nuttx/boards/boardctl.c:335
apps/nshlib/nsh_init.c:144
apps/system/nsh/nsh_main.c:68
nuttx/libs/libc/sched/task_startup.c:70 (discriminator 2)
nuttx/sched/task/task_start.c:134
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-03 16:34:04 +02:00
Xiang Xiao
09841300b0
Remove the remain MIN/MAX like macro
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-03 20:42:57 +08:00
chao an
4c8d244fae
sched/getpid: replace syscall getpid/tid/ppid() to kernel version
...
NuttX kernel should not use the syscall functions, especially after
enabling CONFIG_SCHED_INSTRUMENTATION_SYSCALL, all system functions
will be traced to backend, which will impact system performance.
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-02 10:33:01 +08:00
Gustavo Henrique Nihei
e6b204f438
nuttx: Use MIN/MAX definitions from "sys/param.h"
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-02-01 23:47:44 +08:00
anjiahao
52eaefcc8e
watchdog:fix Kconfig typo
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-02-01 19:50:47 +08:00
pengyiqiang
b1773934fe
note_driver: fix build error
...
note/note_driver.c: In function 'note_isenabled':
note/note_driver.c:278:7: error: invalid type argument of unary '*' (have 'int')
278 | if (CPU_ISSET(&g_note_filter.mode.cpuset, this_cpu()) == 0)
| ^~~~~~~~~
note/note_driver.c:278:7: error: invalid operands to binary << (have 'int' and 'volatile cpu_set_t *' {aka 'volatile unsigned char *'})
278 | if (CPU_ISSET(&g_note_filter.mode.cpuset, this_cpu()) == 0)
| ^~~~~~~~~
| |
| volatile cpu_set_t * {aka volatile unsigned char *}
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-02-01 14:30:33 +08:00
Xiang Xiao
9f027208d4
fs: Add model field to geometry and mtd_geometry_s
...
the model is very useful to track the device info
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-31 11:50:28 -03:00
Ville Juven
da83836da7
drivers/mmcsd: Fix kconfig error regarding MMCSD_IOCSUPPORT
...
Something I noticed in CI:
drivers/mmcsd/Kconfig:32:warning: 'MMCSD_IOCSUPPORT': number is invalid
2023-01-31 13:56:17 +01:00
Xiang Xiao
55679aec5f
drivers/camera: Support the private data for imgsensor and imgdata
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-31 08:04:39 +01:00
dongjiuzhu1
74e032e924
drivers/pipes: fix write busy loop because POLLOUT always ready.
...
the size of pipes buffer +1 as compensate the full indicator
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-01-31 12:45:16 +08:00
Xiang Xiao
004853d6d1
drivers/watchdog: Fix the wrong value of WATCHDOG_AUTOMONITOR_PING_INTERVAL
...
if CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL equals 0, we should set
WATCHDOG_AUTOMONITOR_PING_INTERVAL to CONFIG_WATCHDOG_AUTOMONITOR_TIMEOUT / 2, not 0
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-31 11:54:36 +08:00
Zhe Weng
d3dd349649
net: Implement shutdown() for usrsock
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-01-31 11:15:01 +08:00
lilei19
1d8af7e105
add holder for mutex
...
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-01-31 12:08:05 +09:00
Nathan Hartman
6b89b6f945
Remove executable permissions from source files
...
* arch/arm/src/sama5/sam_flexcom_spi.h,
arch/risc-v/src/mpfs/mpfs_ihc_sbi.c,
drivers/usbdev/adb.c,
libs/libc/math/lib_scalbn.c,
libs/libc/math/lib_scalbnf.c,
net/ipfrag/Make.defs,
net/ipfrag/ipfrag.c,
net/ipfrag/ipfrag.h,
net/ipfrag/ipv4_frag.c,
net/ipfrag/ipv6_frag.c: Remove executable permission.
2023-01-30 20:34:51 -03:00
helei8
4b4004b874
drivers/mmcsd: Add MMC_IOC_CMD ioctl
...
Signed-off-by: helei8 <helei8@xiaomi.com>
2023-01-30 14:09:23 -03:00
Zhe Weng
ff68d9ac04
net/tun: Change TUN/TAP to use IOB
...
TUN/TAP is not working after IOB offload, try to fix.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-01-31 00:39:15 +08:00
Zhe Weng
af0a35f9ae
net/slip: Change SLIP to use IOB
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-01-30 23:42:01 +08:00
anjiahao
6f2f62f4ce
watchdog:fix Kconfig typo
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-30 15:49:50 +01:00
Oleksandr Oryshchenko
0842a291e0
[Drivers] Add smart_loop_register_driver call to drivers_initialize
2023-01-30 11:09:40 +08:00
Oleksandr Oryshchenko
28f92e8238
[MTD/SmartFS] Extract register_driver call to own function
2023-01-30 11:09:40 +08:00
Xiang Xiao
7d66a16c53
Minor style clean up
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-28 19:53:20 +02:00
chao an
94db8a9414
wireless/ieee80211: update ieee80211 header
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-29 00:34:26 +08:00
Xiang Xiao
c137abf4b0
drivers/wireless: Remove the duplicated bc_bifup check from bcmf_wl_auth_event_handler
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-28 11:31:28 -03:00
Petro Karashchenko
8e72b07a62
nuttx: Add missing FAR and CODE
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-27 13:23:25 +08:00
chentao9
1e8d9466d6
ref: charge: add support for voltage infomation
...
Signed-off-by: chentao9 <chentao9@xiaomi.com>
2023-01-27 00:40:43 +02:00
丁欣童
63879598fa
sensors/fakesensor: fix timestamp is woring when batch.
...
Signed-off-by: 丁欣童 <dingxintong@xiaomi.com>
2023-01-27 00:39:15 +02:00
梁超众
7b8ef5dc1b
usrsock: only TCP data should be aggregrated for rpmsg case
...
non-streaming socket's rx data should not be aggregrated.
Signed-off-by: 梁超众 <liangchaozhong@xiaomi.com>
2023-01-27 00:38:32 +02:00
Jiuzhu Dong
5bd448825b
driver/sensor: sync set buffer number to remote proc
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2023-01-27 00:37:49 +02:00
Jiuzhu Dong
c9c5940382
driver/sensor: using recursive lock to fix deadlock beacuse rptun reentrancy
...
nxsem_wait
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../sched/semaphore/sem_wait.c:155 (discriminator 2)
sem_wait
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../sched/semaphore/sem_wait.c:273
nxmutex_lock
/home/neo/projects/monkey/nuttx/include/nuttx/mutex.h:161
nxrmutex_lock.isra.0
/home/neo/projects/monkey/nuttx/include/nuttx/mutex.h:348
sensor_rpmsg_unsub_handler
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/sensors/sensor_rpmsg.c:1048
rpmsg_virtio_rx_callback
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../openamp/open-amp/lib/rpmsg/rpmsg_virtio.c:334
virtqueue_notification
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../openamp/open-amp/lib/virtio/virtqueue.c:623
up_block_task
/home/neo/projects/monkey/nuttx/arch/arm/src/common/arm_blocktask.c:82 (discriminator 2)
nxsem_tickwait
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../sched/semaphore/sem_tickwait.c:116
rptun_wait_tx
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/rptun/rptun.c:522
rpmsg_virtio_wait_tx_buffer
/home/neo/projects/monkey/nuttx/include/openamp/rpmsg_virtio.h:120
sensor_rpmsg_push_event_one
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/sensors/sensor_rpmsg.c:778
sensor_rpmsg_alloc_stub
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/sensors/sensor_rpmsg.c:547
sensor_rpmsg_sub_handler
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../drivers/sensors/sensor_rpmsg.c:991
rpmsg_virtio_rx_callback
/home/neo/projects/monkey/nuttx/arch/arm/src/../../../openamp/open-amp/lib/rpmsg/rpmsg_virtio.c:334
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2023-01-27 00:37:49 +02:00
fangzhenwei
8a1489c291
driver/h4:increase h4 uart tx/rx buffer default size
...
tx buffer size 1024 to 2048
rx buffer size 1024 to 8096
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2023-01-27 00:27:02 +02:00
xinbingnan
7076de9e8a
sensors/bmi160.c: fix the problem Linux SPI doesn't working properly
...
CH341A chip only supports SPI MODE0, and BMI160 supports both MODE0 and MODE3. So, changing MODE3 to MODE0 makes all cases available.
Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2023-01-27 00:26:13 +02:00
Petro Karashchenko
e3a8e1e3ef
drivers/mtd/mtd_config: switch from semaphore to mutex for exclusive access
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:24:05 +08:00
Petro Karashchenko
6e3cb04531
drivers/sensors/msa301: switch from semaphore to mutex for exclusive access
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:24:05 +08:00
Petro Karashchenko
f952b8456c
assert: switch from ASSERT(0/false) to PANIC
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-26 10:15:34 +08:00
Xiang Xiao
1280a2a8f9
Launch the initial task through task_spawn instead of nxtask_create
...
to share the code with the code path of posix_spawn
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-25 23:34:52 +02:00
raiden00pl
30015b862c
drivers/foc: add ioctl interface that turn off all PWM switches
2023-01-21 12:28:16 +08:00
raiden00pl
91d43edffd
drivers/foc: support for BEMF sensing
2023-01-20 21:26:27 +02:00
Masayuki Ishikawa
dc454765fb
Revert "add holder for mutex"
...
This reverts commit fc176addeb
.
2023-01-19 06:04:48 +09:00
To Doan Ngoc Hai
6ca75deec8
drivers/can/can.c: Change size_t type printf formatter %d -> %zu
2023-01-18 22:03:17 +08:00
lilei19
fc176addeb
add holder for mutex
...
Signed-off-by: lilei19 <lilei19@xiaomi.com>
2023-01-18 17:40:58 +08:00
ligd
5b22eba0bd
rptun ping: fix warning when open CONFIG_SYSTEM_TIME64
...
rptun/rptun_ping.c: In function 'rptun_ping':
rptun/rptun_ping.c:171:20: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'time_t' {aka 'long long int'} [-Werror=format=]
171 | syslog(LOG_INFO, "avg: s %" PRIu32 ", ns %ld\n", ts.tv_sec, ts.tv_nsec);
| ^~~~~~~~~~ ~~~~~~~~~
| |
|
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-17 10:59:59 +08:00
ligd
354abd4e8e
uinput: fix uinput compile failed, if no define CONFIG_UINPUT_TOUCH
...
input/uinput.c:81:28: error: field 'lower' has incomplete type
81 | struct touch_lowerhalf_s lower;
| ^~~~~
CC: pipes/pipe.c
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-17 10:55:52 +08:00
crafcat7
2ec117b3ca
fs/fs_fsync:Fix the expected error of socket,fifo and pipe returning error in fsync case
2023-01-17 01:56:40 +08:00
ligd
23d1d4c42a
power: avoid sem_wait called in IRQ handler
...
error backrace:
_assert --- assert again
sem_wait
pm_unregister
wdog_notifier
panic_notifier_call_chain
_assert
dataabort
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-17 01:25:27 +08:00
ligd
38c6f20d17
pm: add pm_domain_lock/unlock support
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-17 01:25:27 +08:00
ligd
d2ef505684
pm: add lock for pm_auto_updatestate_cb()
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-01-17 01:25:27 +08:00
Xiang Xiao
a851ad84c3
net: consistent the net sem wait naming conversion
...
to prepare the new mutex wait function
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-15 12:31:30 -03:00
TimJTi
f5e8c30808
Add ACT8945A power driver
...
Update act8945a.c
Update Kconfig
Update act8945a.c
Corrections (xiaoxiang781216)
2023-01-14 18:49:25 +08:00
liushuai25
ea67dafd93
Fix scope issues with "switch ... case"
...
Signed-off-by: liushuai25 <liushuai25@xiaomi.com>
2023-01-14 13:38:37 +08:00
liushuai25
57295d750d
Use C89 compatible initializer and modify code format
...
Signed-off-by: liushuai25 <liushuai25@xiaomi.com>
Update drivers/video/mipidsi/mipi_dsi_device.c
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-01-13 23:10:56 +08:00
liushuai25
6b729487fb
feat: add mipidsi support
...
add mipi dsi subsystem support.
reference links:
https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/drm_mipi_dsi.c
https://github.com/torvalds/linux/blob/master/include/video/mipi_display.h
Signed-off-by: liushuai25 <liushuai25@xiaomi.com>
2023-01-13 23:10:56 +08:00
Jani Paalijarvi
bd461a1016
drivers/eeprom/i2c_xx24xx.c: Fix compiler warnings
...
Debug prints were not able to handle 64bit off_t and size_t.
2023-01-13 23:08:58 +08:00
Lee Lup Yuen
6de5a862cd
drivers/input: Add driver for Goodix GT9XX Touch Panel
...
This PR adds the driver for Goodix GT9XX I2C Touch Panel, which will be called by PINE64 PinePhone.
Our driver follows the design of the NuttX Driver for [Cypress MBR3108](https://github.com/apache/nuttx/blob/master/drivers/input/cypress_mbr3108.c ).
We have documented our driver here: ["NuttX Touch Panel Driver for PinePhone"](https://lupyuen.github.io/articles/touch2#appendix-nuttx-touch-panel-driver-for-pinephone )
`drivers/input/Kconfig`: Added option `INPUT_GT9XX` to select GT9XX Driver
`drivers/input/Make.defs`: Added GT9XX Driver to Makefile
`drivers/input/gt9xx.c`, `gt9xx.h`: I2C Driver for GT9XX Touch Panel
2023-01-13 12:19:53 +08:00
zhanghongyu
48c9d10336
net_socket: add accept4 function
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-01-11 23:28:08 +08:00
xinbingnan
1ce93a7d9a
sensors/bmi160.c: fix i2C read and write behavior
...
There is a problem with the original driver reading and writing behavior, refer to the driver of mpu60x0 to make corresponding changes.
Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2023-01-11 21:12:29 +08:00
梁超众
aca1a065a8
move usrsock to kernel space
...
Signed-off-by: 梁超众 <liangchaozhong@xiaomi.com>
2023-01-11 15:14:03 +08:00
chengkai
f864e5f657
wireless/bluetooth: add interrupt_context hander for netsnoop
...
Signed-off-by: chengkai <chengkai@xiaomi.com>
2023-01-10 18:08:22 +08:00
田昕
587305723e
drivers/pipe:add PIPEIOC_POLLTHRES to set POLLIN/POLLOUT threshold
...
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2023-01-10 13:33:13 +08:00
Zhe Weng
5e42bd97cd
virtio/net: Try fix virtnet logic
...
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-01-09 10:10:49 +09:00
anjiahao
96ec6983db
watchdog:use 'V' to stop watchdog
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-06 20:02:26 +08:00
yinshengkai
6064aa8bb5
drivers/note: remove choice in Kconfig
...
To support multiple note drivers to be used at the same time
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-06 16:23:00 +08:00
yinshengkai
2e4c4822eb
segger/sysview: add up_perf_freq result chaeck
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-06 15:06:15 +08:00
Sebastien Lorquet
af6c990498
add support for more is25 mtd devices
2023-01-06 11:52:37 +08:00
anjiahao
5e878186c7
watchdog:add a callback when painc stop the watchdog
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-01-06 10:42:37 +08:00
Xiang Xiao
1a59f4ed00
mm/map: Remove the unnessary map.h inclusion in various drivers
...
and Fix include/nuttx/mm/map.h:55:28: error: 'struct task_group_s' declared inside parameter list will not be visible outside of this definition or declaration
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-05 16:06:53 +02:00
yinshengkai
8f823ce320
sergger: add note_ prefix to sysview
...
change 1: rename sysview.c to note_sysview.c
change 2: add note_ prefix to sysview's public function
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-05 22:04:52 +08:00
yinshengkai
77466742c7
drivers/segger: register sysview to note drivers list
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-05 22:04:52 +08:00
yinshengkai
4ba7624804
Revert "Sysview add prefix kconfig to add an option to decouple sched_note calls"
...
This reverts commit f72f7ebee0
.
2023-01-05 22:04:52 +08:00
yinshengkai
e9ed994fec
syslog: merge multiple lib_sprintf into one
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-05 02:00:43 +08:00
yinshengkai
74b8776872
syslog: put variable initialization in the front
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-05 02:00:43 +08:00
yinshengkai
72b19200b5
syslog: replace the switch statement with an array of strings
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-05 02:00:43 +08:00
Xiang Xiao
7179d57026
fs: Check offset and length more carefully in mmap callback
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-04 17:43:59 +02:00
Xiang Xiao
b0a0ba3ad7
fs: Move mmap callback before truncate in [file|mountpt]_operations
...
since mmap may exist in block_operations, but truncate may not,
moving mmap beforee truncate could make three struct more compatible
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-04 17:43:59 +02:00
Xiang Xiao
779a610ca3
Remove the unnecessary NULL fields in global instance definition of file_operations
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-04 00:32:13 +02:00
Xiang Xiao
1815f8b731
drivers/note: Add const to g_notelog_ops
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-04 00:21:18 +02:00
Xiang Xiao
98ab55ef68
drivers/note: Replace the scritical section with spin_xxx_wo_note
...
to avoid to generate the unexpected schedule information
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-04 00:21:18 +02:00
zouboan
56c6943311
sensors/mpu60x0: fix build warning about data type
2023-01-03 01:45:56 +08:00
yinshengkai
1cee890aa7
drivers/note: unify the spinlock operation in noteram
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-01-02 22:29:01 +08:00