Xiang Xiao
2659ab121f
fs: Remove magic field from partition_info_s
...
since it is wrong and impossible to return file
system magic number from the block or mtd layer.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-28 09:26:22 +08:00
yangjiukui
c5488010c2
fix: sensor: fix the bug that lsm6dsl selftest is invalid in nuttx.
...
N/A
according to the ST manual, the logic part of
selftest that is meaningless is modified.
Change-Id: Ie7218b502236a0c27136f8ec80ed8ac482c4285f
Signed-off-by: yangjiukui <yangjiukui@xiaomi.com >
2021-08-25 20:46:33 +08:00
yangjiukui
cc07094c69
fix: sensor: fix lsm6dso get a null pointer in non-fifo mode.
...
CHAMPION-63
get the parent pointer in front of the batch.
Change-Id: Ie309c6df942ecd3ae0f87966fe68053fe4fe4520
Signed-off-by: yangjiukui <yangjiukui@xiaomi.com >
2021-08-24 17:13:19 +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
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
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
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
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
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
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
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
Xiang Xiao
4bffde887d
Rename LIB_ to LIBC_ for all libc Kconfig
...
follow other libc component naming convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I66cf8f3201560ce71576279640e94ae3147ad0a2
2021-08-09 21:03:17 +08:00
xiatian6
ca095b2d90
Feature: Sensor: Add ct7117 temperature sensor driver.
...
N/A
Add ct7117 temperature sensor driver for nuttx.
Change-Id: Ibc21e732c418ab2d61cc40a806c82cc76ad400bd
2021-08-09 18:30:04 +08:00
yangjiukui
fe98e909d2
L61: Sensor: Add sensor driver for LSM6DSO.
...
N/A
Add driver for the STMicro LSM6DSO.
Change-Id: I462a2912cf8c7f141f285e482c8222bdb854b5ee
Signed-off-by: yangjiukui <yangjiukui@xiaomi.com >
2021-08-09 11:39:42 +08:00
Xiang Xiao
030d496728
Fix the printf warning after off_t change
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Id46daa2ee690a73d3187b479f0e7ab0e2e361764
2021-08-04 16:13:25 +08:00
yangjiukui
309b215cda
L61: Sensor: Add driver for OPT3007 light sensor.
...
N/A
Add light sensor.
Signed-off-by: yangjiukui <yangjiukui@xiaomi.com >
Change-Id: I91654ffff94a7faff17b765524b595cd92049b33
2021-08-02 09:12:18 +08:00
anjianjun
1c06fc0ca4
L61:bsp:Add bes mmcsd control support for provisional
...
Signed-off-by: anjianjun <anjianjun@xiaomi.com >
Change-Id: I390e740de1e4e6a42f702a83781082f9933e0647
2021-07-28 19:13:49 +08:00
anjianjun
52cfa2d4a3
drivers/mmcsd:Send cmd0 just once for Increased compatibility
...
Signed-off-by: anjianjun <anjianjun@xiaomi.com >
Change-Id: Ic2372c677af250b6268e6d29e823e50713ea138c
2021-07-28 17:31:14 +08:00
anjianjun
07d7eb3ac0
drivers/mmcsd:fix build error of debug
...
N/A
Signed-off-by: anjianjun <anjianjun@xiaomi.com >
Change-Id: I7b5f5590bb953add6919b64fa37f73cdcfc32b49
2021-07-28 17:30:59 +08:00
xiatian6
941aa03401
Feature: Seneor: Add sx9373 capacitive sensor driver.
...
N/A
Add sx9373 capacitive sensor driver for nuttx.
Change-Id: I7179633ac0ea5c9f073ddc13b50b442997e4a2c2
Signed-off-by: xiatian6 <xiatian6@xiaomi.com >
2021-07-23 18:36:13 +08:00
xiatian6
f8ef15915a
Fix: Sensor: Fix the problem of uneven sampling.
...
N/A
Simply using workqueue will result in uneven sampling, so
the timer is used here to ensure the uniformity of the sampling
rate.
Change-Id: If49f4782bfe7d6c4d8335141bda6d3209d6241ae
Signed-off-by: xiatian6 <xiatian6@xiaomi.com >
2021-07-23 18:36:01 +08:00
丁欣童
6805257488
fakesensor: transform ddmm.mmmm to dd.mmmmmm.
...
N/A
Signed-off-by: 丁欣童 <dingxintong@xiaomi.com >
Change-Id: I8c4b0e73ee20507721fe9bac13de1519fedf4807
2021-07-22 10:22:58 +08:00
Jiuzhu Dong
1c3fe27235
sensor: directly return -ENOTSUP without the set_interval or batch
...
implementation for lowerhalf driver.
Change-Id: I7b02e0331e5f8b89b39896049a9e24ce30116f8a
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-07-21 19:41:06 +08:00
Xiang Xiao
6e5e9cf8a1
drivers/rptun: Start/stop remote processor in the background thread
...
to avoid blocking the main thread initialization process
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Ib8ab2a661ee9540bb03d9d4d851a8d8ee212404e
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-07-20 17:55:28 +08:00
丁欣童
4bde7e277e
Fakesensor: support gps by read nema csv.
...
N/A
Signed-off-by: 丁欣童 <dingxintong@xiaomi.com >
Change-Id: Ia0f32b7fcb433db8916699e87bf789fcb9e57196
2021-07-15 15:33:06 +08:00
Xiang Xiao
c8f1eeed57
Merge commit '2e43815c929acb818b34a5ff8828494b0c6f6891' into dev
...
Change-Id: Idcbac12fec435abff01cfb4efd5a26a02eb08f93
2021-07-13 03:14:34 +08:00
yangjiukui
eafc254e14
Fix: Sensor: Fix the use of ioexpander and delete redundant member of opt3006.
...
N/A
Add pull up when using SETDIRECTION; Using transformation replace pinset;
Delete i2c point in opt3006 device struct.
Signed-off-by: yangjiukui <yangjiukui@xiaomi.com >
Change-Id: I7e46d0cde878fbca325f89be47c57ff9b9456ff0
2021-07-12 15:30:37 +08:00
Jiuzhu Dong
0c3cb0cb66
syslog: optimize init logic for early buffer initialize
...
N/A
Change-Id: I3295803977fa51e8ed8dedf7f0966b9604f8204d
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-07-10 11:10:13 -07:00
Jiuzhu Dong
4bb48892d0
ramlog: init head and tail when buffer is empty on boot
...
N/A
Change-Id: I6963ef6256c3a93ac7a63115c303033ceafa321f
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-07-10 11:10:13 -07:00
Jiuzhu Dong
c8ce33c634
syslog/intbuf: output log when syslog interrupt buffer is full
...
N/A
instead of adding overrun memssage:"[truncated]\n" to the end.
Change-Id: Ie27cdf0ca902d9ba203619a95162f01222e371c5
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-07-10 11:08:59 -07:00
Alexander Lunev
9e27888938
bcm43xxx: supported IW_AUTH_CIPHER_NONE mode
2021-07-09 21:34:05 -07:00
Alexander Lunev
ace43936c1
bcm43xxx: nxstyle fixes ("error: Mixed case identifier found")
2021-07-09 21:34:05 -07:00
Gustavo Henrique Nihei
d12619c85f
drivers/syslog: Avoid prepending process name when no TCB is available
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com >
2021-07-08 21:13:36 -05:00
Jiuzhu Dong
4c867f3b6d
syslog: optimize init logic for early buffer initialize
...
N/A
Change-Id: I3295803977fa51e8ed8dedf7f0966b9604f8204d
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-07-08 14:16:21 +08:00
Jiuzhu Dong
e63fe68980
ramlog: init head and tail when buffer is empty on boot
...
N/A
Change-Id: I6963ef6256c3a93ac7a63115c303033ceafa321f
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-07-08 14:05:13 +08:00
Jiuzhu Dong
c5e6c0a99f
Revert "fix(ramlog): fix initial ramlog buffer pointer overflow"
...
This reverts commit 76242c5ee1 .
2021-07-08 11:43:23 +08:00
chenwei23
76242c5ee1
fix(ramlog): fix initial ramlog buffer pointer overflow
...
description: modify function ramlog_initbuf in
drvers/syslog/ramlog.c to fix initial ramlog buffer
pointer overflow
Signed-off-by: chenwei23 <chenwei23@xiaomi.com >
Change-Id: I38e2d5c726e3af11c4b47245197fec5cbe4af1f6
2021-07-07 14:33:19 +08:00
xiatian6
cf9baa0178
feature(nuttx sensor driver): add ak09919c mag sensor dirver.
...
Add ak09919c mag sensor dirver.
Change-Id: Ie90149689a50dc4f68aa1802d00bb818092ed795
Signed-off-by: xiatian6 <xiatian6@xiaomi.com >
2021-07-05 09:22:04 +08:00
Xiang Xiao
8fe701c8ae
note/notelog: Implement more sched_note callback
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-07-04 18:52:32 -03:00
Xiang Xiao
0941bad877
note: Move up_schednote.c to drivers/note folder
...
since it is general enough to work on other target
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-07-04 18:52:32 -03:00
Nathan Hartman
ce20211357
Fix various typos in comments and documentation
...
Fix typos in these files:
* Documentation/components/drivers/character/foc.rst
* Documentation/guides/cpp_cmake.rst
* Kconfig
* arch/arm/src/imxrt/imxrt_lpspi.c
* arch/arm/src/kinetis/kinetis_spi.c
* arch/arm/src/kl/kl_spi.c
* arch/arm/src/lpc31xx/lpc31_spi.c
* arch/arm/src/nrf52/nrf52_radio.h
* arch/arm/src/s32k1xx/s32k1xx_lpspi.c
* arch/arm/src/stm32/Kconfig
* arch/arm/src/stm32/stm32_adc.c
* arch/arm/src/stm32/stm32_foc.c
* arch/arm/src/stm32/stm32_foc.h
* arch/arm/src/stm32/stm32_pwm.c
* arch/arm/src/stm32/stm32_spi.c
* arch/arm/src/stm32f0l0g0/stm32_spi.c
* arch/arm/src/stm32f7/Kconfig
* arch/arm/src/stm32f7/stm32_spi.c
* arch/arm/src/stm32h7/Kconfig
* arch/arm/src/stm32h7/stm32_allocateheap.c
* arch/arm/src/stm32h7/stm32_fmc.c
* arch/arm/src/stm32h7/stm32_fmc.h
* arch/arm/src/stm32h7/stm32_pwm.c
* arch/arm/src/stm32h7/stm32_qspi.c
* arch/arm/src/stm32h7/stm32_spi.c
* arch/arm/src/stm32l4/stm32l4_pwm.c
* arch/arm/src/stm32l4/stm32l4_spi.c
* arch/arm/src/stm32l5/Kconfig
* arch/arm/src/stm32l5/stm32l5_spi.c
* arch/renesas/src/rx65n/rx65n_dtc.c
* arch/renesas/src/rx65n/rx65n_usbdev.c
* arch/risc-v/src/rv32m1/rv32m1_serial.c
* boards/arm/stm32/b-g431b-esc1/src/stm32_foc.c
* boards/arm/stm32/nucleo-f103rb/src/stm32_foc_ihm07m1.c
* boards/arm/stm32/nucleo-f302r8/src/stm32_foc_ihm07m1.c
* boards/arm/stm32h7/nucleo-h743zi2/README.txt
* boards/risc-v/rv32m1/rv32m1-vega/README.txt
* boards/sim/sim/sim/scripts/Make.defs
* drivers/1wire/1wire.c
* drivers/1wire/1wire_internal.h
* drivers/lcd/Kconfig
* drivers/syslog/ramlog.c
* fs/fat/Kconfig
* libs/libc/debug/Kconfig
* libs/libc/machine/Kconfig
* libs/libc/stdio/lib_libvsprintf.c
* libs/libc/stdlib/lib_div.c
* libs/libc/stdlib/lib_ldiv.c
* libs/libc/stdlib/lib_lldiv.c
* libs/libdsp/lib_observer.c
2021-07-04 11:23:26 -05:00
Jiuzhu Dong
817259ec2d
syslog/ramlog_channel: fix log confusion when multi task writing together
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-07-03 11:24:21 -05:00