Commit Graph

42885 Commits

Author SHA1 Message Date
pengyiqiang 57e4394dbd libc/string: add lib_strchrnul.
N/A

Change-Id: I25e2424e91b833815680d2e417f4384ed9062660
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2021-08-20 16:41:52 +08:00
Jiuzhu Dong 6eb29f9715 sim: add popen and pclose to nuttx-name.in
Change-Id: Id439ce5e308ce3ae0b618b4752e57965aa98f669
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-19 22:53:13 +08:00
liuhaitao 54f4c43e0a Add libcxxabi into .gitignore
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
Change-Id: I076f4c203b72bc039dea63b4a98e0db241628cef
2021-08-19 20:56:16 +08:00
Jiuzhu Dong 5867fd2ccc task_spawn: release g_spawn_parmsem and sched_unlock at the ending
Change-Id: Ifcb5b9921e82fc495c4457fdb5f0607f40b07fc0
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-19 16:16:36 +08:00
chao.an 59e2e5fdc8 arch/arm: correct the frame pointer register declare
In AArch32, the frame pointer is stored in register R11 for ARM code or register R7 for Thumb code.
In AArch64, the frame pointer is stored in register X29.

Change-Id: I0c60cf37bea9bb94b9c2043b4c97e06001214a54
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-18 19:37:01 +08:00
chao.an 7f192ca255 sched/backtrace: add sched_backtrace support
Change-Id: Ia764cf54dfa215b313f9d5f1a060aac18d765982
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-18 19:36:38 +08:00
chao.an db06f769ff libs/libc: move the backtrace implement to sched
1. move the backtrace implement to sched
2. rename CONFIG_UNWINDER to CONFIG_SCHED_BACKTRACE

Change-Id: I8176727602bfc695184b88210a3aaf90c6acaac7
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-18 19:36:23 +08:00
chao.an 0eba5015dd riscv/common: add CURRENT_REGS declare in RV32
Change-Id: I92322a707b29bf1389ba81da118fb8be61877531
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-18 19:36:09 +08:00
jordi cd2fbf0b3c Kconfig: add quotes in source to clean warnings from setconfig
To avoid the setconfig warning "style: quotes recommended around xxx in
source xxx"

Change-Id: Iaec3ae59ba2ec15337652c9962b25081ff03e1d7
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-18 19:35:59 +08:00
Xiang Xiao c906f1d482 fs: Add model field to geometry and mtd_geometry_s
the model is very to track the device info

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-18 18:37:51 +08:00
Jiuzhu Dong 960ca404b7 fs/mount: fix crash becauseof bad release order
N/A

Change-Id: I850f0706f4554d140a86f935b8dce07d23beedaf
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-18 15:49:50 +08:00
liucheng5 4a38b651c6 Feature: Sensor: Add new sensor types
N/A

New sensor types ECG(25), PPG(26), impedance(27), and their event types are added to sensor.h.

Change-Id: I2a2558e744b777178c4bf49505a92021595eb150
Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
2021-08-17 15:56:29 +08:00
liucheng5 7feeda8882 Feature: Sensor: Add sensor driver for MAX86178
CHAMPION-51

Add a driver for the Maxim MAX86178 vital-sign AFE, used for ECG and PPG measurements.

Change-Id: Iae10315abf9d1889af5257495da64c3221014dd7
Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
2021-08-17 15:25:22 +08:00
liuhaitao 3aa1adc6ec mtd: include nuttx/fs/fs.h explicitly
To fix struct partition_info_s undefined type issue.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
Change-Id: I7c67d0e2f84f4251574a13c22f3bd917742975ea
2021-08-17 10:14:32 +08:00
chao.an bd334d7c96 net/rpmsg: move connect state change to sync callback
Change-Id: I8ef6e4b4b4adc5727c072559239e87853abeab04
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-16 23:13:35 +08:00
Xiang Xiao 6803b6d23d fs: Support 64bit in register_[block|mtd]partition
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-16 22:07:08 +08:00
Xiang Xiao e91c95b197 mtd: Implement BIOC_PARTINFO for all drivers
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-16 22:07:02 +08:00
chao.an 47f784a748 net/rpmsg: fix typo in comment
Change-Id: Icbf8122c5054e01516841b7f0d369992bc967931
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-16 21:46:35 +08:00
chao.an 886d567e7d net/rpmsg: add nonblock connect(2) support
Change-Id: I6fe12c7e40d6e4c4353034d4731c24bd6a28225c
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-16 21:46:27 +08:00
chao.an b6dbf55271 net/rpmsg: move the sync handshark to ns_bind callback
Change-Id: Ic37671f59fbf08bcbd78cf0221759ee8fed1ed22
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-16 21:38:00 +08:00
chao.an 79dd7453ac net/rpmsg: simplify the socket timeout of connect
Change-Id: I9ff5b3e7dad0b73196cfa058f3a55f2ea3086815
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-16 21:38:00 +08:00
chao.an 00b373112b driver/pipe: add nonblock open support
Change-Id: Ibdf627167b1a30e698607b4f32f6b1c8cc2f15ae
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-16 21:38:00 +08:00
chao.an 2d597f55df net/local: add nonblock connect(2) support
Change-Id: Iee8250b5011f799c52d667b2593760673378443e
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-16 21:37:52 +08:00
chao.an bfeefa09b1 net/tcp: add nonblock connect(2) support
Change-Id: I01b125996a85c9ea0220a24bb3d41d6e75e36554
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-16 21:27:08 +08:00
Xiang Xiao 93b478a71f arch/arm: Add NVIC_FPCCR_XXX macro to avoid the hard code value
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-15 10:18:19 -07:00
Xiang Xiao 642443b8b3 arch/arm: Add NVIC_CPACR_CP_XXX(n) macro to avoid the hard code value
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-15 10:18:06 -07:00
Xiang Xiao 8c38d134f8 arch/arm: Add NVIC_AIRCR_VECTKEY macro to avoid the hard code value
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-15 10:17:54 -07:00
Xiang Xiao e0c4c5822e fs/partition: Support BIOC_PARTINFO
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-15 10:16:22 -07:00
genghuihui 11a0bb3e98 feature:add audio AUDIOIOC_SETPARAMTER ioctl command
add AUDIOIOC_SETPARAMTER iotcl command in include/nuttx/audio/audio.h

Signed-off-by: genghuihui <genghuihui@xiaomi.com>
Change-Id: I8d88c649a87cb5fbdd0fb1f83c111a1fff380507
2021-08-13 15:47:56 +08:00
genghuihui d8c0f7279e feature:add awinic88266a smart pa nuttx driver
awinic88266a smart pa driver use nuttx/audio framework to register audio device,
use i2c to control smart pa configuration

Signed-off-by: genghuihui <genghuihui@xiaomi.com>
Change-Id: I05361a582dde49af71c5dbd08ab9365b4ea0f80a
2021-08-13 15:44:03 +08:00
zhuyanlin 9d92277bb8 arch:xtensa: replace include file from src/chip_xxx to chip.h
Use chip.h as a standard include file, replace chip_xxx in src dir
2021-08-13 13:56:39 +08:00
zhuyanlin 7b1d3d5c75 arch:esp: create chip.h header for chip src code.
Create chip.h header for esp src code.
2021-08-13 13:56:35 +08:00
zhuyanlin 43b72c180a arch:xtensa: add __ASSEMBLY__ for espxxx_soc.h
Those header contain syntax not be recognize by gnu assembler.
2021-08-13 13:56:31 +08:00
Xiang Xiao 4bee1e5690 mtd: Replace MTDIOC_XIPBASE with BIOC_XIPBASE
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-12 20:29:18 +08:00
Xiang Xiao 1e557e16ff Revert "mtd: Add MTDIOC_FLUSH IOCTL like MTDIOC_XIPBASE"
to simplify flt and partion layer implementation

This reverts commit 2e49e1bc5c.
2021-08-12 20:29:12 +08:00
Xiang Xiao 0705ae633e mtd: Replace MTDIOC_PARTINFO with BIOC_PARTINFO
to simplify flt and partion layer implementation

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-12 20:28:45 +08:00
Xiang Xiao 9b58b77b88 mtd: Remove the empty MTDIOC_XIPBASE implmentation
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-11 23:39:24 +08:00
Xiang Xiao 36e744d88a fs: Remove endsector from partition_info_s
since it can be computed from startsector and numsectors simply

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-11 23:39:02 +08:00
Gustavo Henrique Nihei 336222524a mtd: Translate BIOC_PARTINFO into MTDIOC_PARTINFO on FTL driver
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-11 23:39:02 +08:00
Gustavo Henrique Nihei e66503788e fs: Add ioctl command for retrieving partition info of a block device
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-11 23:39:02 +08:00
Gustavo Henrique Nihei 1767685a9e mtd: Enable retrieval of MTD partition information
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-11 23:39:02 +08:00
Gustavo Henrique Nihei 5883abbe77 fs: Add data structure for Partition Information
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-11 23:39:02 +08:00
Gustavo Henrique Nihei 845b1e8043 risc-v/esp32c3: Implement MTDIOC_ERASESTATE for SPI Flash driver
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-11 23:37:48 +08:00
Gustavo Henrique Nihei 4c13006515 drivers/mtd: Implement MTDIOC_ERASESTATE for MTD drivers
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-11 23:37:48 +08:00
Gustavo Henrique Nihei 66aa221947 arm/lpc43xx: Implement MTDIOC_ERASESTATE for SPIFI Flash driver
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-11 23:37:48 +08:00
Gustavo Henrique Nihei 5784d1384b xtensa/esp32: Implement MTDIOC_ERASESTATE for SPI Flash driver
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-11 23:37:48 +08:00
Gustavo Henrique Nihei f5964d55dd mtd: Add MTDIOC_ERASESTATE command for retrieving erase state value
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-11 23:30:30 +08:00
Xiang Xiao 622c637832 fs/userfs: Support fchstat and chstat callback
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-11 18:18:52 +08:00
Xiang Xiao 276f99d239 fs/unionfs: Support fchstat and chstat callback
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-11 18:18:52 +08:00
Jiuzhu Dong 36ac863777 endian.h: add prefix for __LITTLE/__BIG_ENDIAN, __BYTE_ODRER
Change-Id: If072b69e37a89ccd6dc62e1d485b15703da029ac
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-11 17:58:17 +08:00