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
Jiuzhu Dong
7fa69e4173
syslog/ramlog: get ramlog size by ioctl
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-07-03 11:24:21 -05:00
Jiuzhu Dong
b30bf4ff06
syslog/default_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
Peter Bee
23746d171f
Add putarea() method for st7789
...
add st7789_putarea()
Signed-off-by: Peter Bee <bijunda1@xiaomi.com >
2021-07-02 10:08:26 -05:00
ligd
b86bcff2eb
serial: add ioctl TIOCNOTTY
...
Change-Id: I14ab1304d6330578423e0775f42faa8e19886fef
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-07-02 07:20:42 -05:00
Jiuzhu Dong
a75b712e77
syslog: fix crash when print localtime by syslog
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-07-02 04:57:11 -05:00
ligd
5de150160f
syslog: add CPU id to system when open CONFIG_SMP
...
Change-Id: Ie8aaf44583ff4146b79b1392d1410b31806a81e8
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-07-02 08:45:43 +09:00
Nathan Hartman
ee81b5a1d5
drivers/sensors/hyt271: Fix typos in comments and identifier
...
drivers/sensors/hyt271.c:
* struct hyt271_dev_s: Identifier "lock_measure_cylce" was
misspelled. Fix to "lock_measure_cycle" and update all instances
in the file.
* hyt271_mr(), hyt271_cmd(), hyt271_change_addr(),
hyt271_measure_read(), hyt271_thread(): Update instances of the
renamed "lock_measure_cycle" variable and fix various typos in
comments.
2021-07-01 12:43:18 -05:00
ligd
772044bbdf
serial: add ioctl TIOCNOTTY
...
Change-Id: I14ab1304d6330578423e0775f42faa8e19886fef
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-07-01 18:26:20 +08:00
ligd
23f948aa7f
syslog: add CPU id to system when open CONFIG_SMP
...
Change-Id: Ie8aaf44583ff4146b79b1392d1410b31806a81e8
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-07-01 18:26:20 +08:00
buyuer
82f57bd3f9
driver/fakesensor: fix bugs.
...
1.fix crash casued by closing the handle during the reading.
2.fix set_interval fail sometime:When fakesensor was activated, csv file is not opened timely, so
the sensor->interval that set_interval() seted will be coverd by
interval form csv file.
Signed-off-by: buyuer <dingddding@163.com >
2021-07-01 01:34:45 -05:00
丁欣童
cf3d397dd7
sensor/fakesenor: fix set_interval fail sometime.
...
N/A
When fakesensor was activated, csv file is not opened timely, so
the sensor->interval that set_interval() seted will be coverd by
interval form csv file.
Signed-off-by: 丁欣童 <dingxintong@xiaomi.com >
Change-Id: I611587f886c4d2eb6ddb6c28e575e0a0d2ac9cec
2021-06-30 15:00:10 +08:00
Jiuzhu Dong
d78b1ff5b3
ramlog: fix compile break
...
Change-Id: I03afb41790dbba1d3290c566b099fe511771de3c
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-06-29 16:56:35 +08:00
Masayuki Ishikawa
c89c11a078
drivers: wireless: Fix error handling in gs2200m_ioctl_send()
...
Summary:
- I noticed that NFS over TCP does not work correctly when
it tried to reconnect to the NFS server.
- This commit fixes this issue
Impact:
- gs2200m only
Testing:
- Tested with spresense:wifi_smp
- NOTE: need to update gs2200m_main.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com >
2021-06-28 21:48:47 -05:00
Jiuzhu Dong
6d883bbb5d
driver/sensor: fix crash casued by closing the handle during the reading.
...
N/A
Change-Id: I0632f3f81192b3924302f9b363497822b1117032
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-06-28 19:53:40 +08:00
Xiang Xiao
d37d8e00a5
mtd: Add MTDIOC_FLUSH IOCTL like MTDIOC_XIPBASE
...
since the old design reuse BIOC_FLUSH for
MTD device which make some confusion
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-06-28 18:06:52 +08:00
yangjiukui
b112e70f8b
L61: Sensor: Add driver for OPT3006 light sensor.
...
N/A
Add light sensor.
Signed-off-by: yangjiukui <yangjiukui@xiaomi.com >
Change-Id: If0695aaec21476e68d739c420db732b184c178bb
2021-06-25 17:47:55 +08:00
Xiang Xiao
800754a9be
Replace mktime with timegm in rtc and fs driver
...
since kernel component should use UTC instead local time
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Icf939e1ab0af8e577105f539d2553bc67b3b3d10
2021-06-24 20:53:53 +08:00
Xiang Xiao
ae9b5fd306
Replace mktime with timegm in rtc and fs driver
...
since kernel component should use UTC instead local time
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Icf939e1ab0af8e577105f539d2553bc67b3b3d10
2021-06-23 13:43:32 -03:00