Xiang Xiao
63c911fb56
input/button: Remove the couple from uinput
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-27 22:19:23 +01:00
liuzhao
fb6f058395
Add EPSON RX8010SJ I2C RTC timer support
2022-02-26 11:47:24 -03:00
Gustavo Henrique Nihei
1a1409cbc3
drivers/timers: Fix domain of log messages
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-02-25 22:49:22 +08:00
zhuyanlin
f7a7eb9ee3
power/PM: add domain inner update power state feature
...
In some scenarios, We need to update state information internally.
Instead of use idle-task to drive the checkstate and change state
function.
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-02-25 00:16:48 +08:00
Alin Jerpelea
52558e7245
drivers: usbhost-hid: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
8e8b68b131
drivers: analog: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled ADC/DAC support will not
be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
32401a0adb
drivers: wireless: spirit: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
bbfed12fd9
drivers: wireless: bluetooth: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
660da04204
drivers: sensors: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
3a77cd3d6a
drivers: power: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
96ce5347fa
drivers: modem: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Alin Jerpelea
fe06e51df2
drivers: lcd: exclude BSD components from build
...
Unless ALLOW_BSD_COMPONENTS is enabled support will not be built
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-24 22:48:47 +08:00
Xiang Xiao
d7fe0127b0
Replece clock_gettime(CLOCK_REALTIME) with clock_systime_timespec if suitable
...
it's better to call the kernrel api insteaad user space api in kernel
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-24 01:06:36 +08:00
Xiang Xiao
43f57240e0
Replece clock_gettime(CLOCK_MONOTONIC) with clock_systime_timespec
...
it's better to call the kernrel api insteaad user space api in kernel
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-24 01:06:36 +08:00
Huang Qi
1699f530a5
vncserver: Allow fb operation while no connection
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-02-23 23:18:30 +08:00
Alin Jerpelea
1dada85b52
drivers: Giorgio Gross : update licenses to Apache
...
Gregory Nutt has submitted the SGA
Giorgio Gross has submitted the ICLA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-02-23 12:06:54 +01:00
Xiang Xiao
f1ed349dd9
sched/clock: Remove CLOCK_MONOTONIC option from Kconfig
...
here is the reason:
1.clock_systime_timespec(core function) always exist regardless the setting
2.CLOCK_MONOTONIC is a foundamental clock type required by many places
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-23 01:21:26 +08:00
Xiang Xiao
a5a25f72ab
pty: Move the post process after reading the buffer
...
to simplify the code logic
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-22 16:17:07 +01:00
Xiang Xiao
630b55feec
serial/pty: Remove the TODO comment for O_NONBLOCK
...
since it is fully suppported now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-22 09:34:57 -03:00
Masayuki Ishikawa
6a1a7bf455
Revert "pm: remove unnecessary depends on OSINIT_OS_READY"
...
This reverts commit 8785673a70
.
2022-02-22 10:56:14 +01:00
ligd
8785673a70
pm: remove unnecessary depends on OSINIT_OS_READY
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-02-22 07:58:55 +01:00
fangzhenwei
84b88205ab
serial/pty:Don't assert EBUSY when pty unregister driver
...
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2022-02-22 13:42:44 +08:00
fangzhenwei
88e871b13e
nuttx/pty: pty FIONBIO return -ENOTTY when pipe_ioctl return OK
...
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2022-02-22 13:42:44 +08:00
fangzhenwei
c7c91488d1
nuttx/pty: pass read nonblock flag to pipe
...
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2022-02-22 13:42:44 +08:00
fangzhenwei
1afdb06981
nuttx/pty:pty FIONBIO pass to pipe control
...
1. pass FIONBIO ioctl to pipe
2. resolve the return value error
Signed-off-by: fangzhenwei <fangzhenwei@xiaomi.com>
2022-02-22 13:42:44 +08:00
Alan C. Assis
9480ec54eb
drivers: Fix DAC license, the copyright owner didn't modify any line
2022-02-21 14:35:44 +01:00
Alan C. Assis
4553406ad4
drivers: Fix ADC license, the copyright owner didn't modify any line
2022-02-21 14:35:44 +01:00
Xiang Xiao
2dcaab8af8
serial/pty: Remove the unused code related to CONFIG_PSEUDOTERM_FULLBLOCKS
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 21:22:24 +01:00
Xiang Xiao
1d1bdd85a3
Remove the double blank line from source files
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-20 20:10:14 +01:00
Petro Karashchenko
27d75e7552
drivers/ioexpander: minor initialize and styling fixes
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-02-18 16:44:40 +08:00
Xiang Xiao
e0ae2963d2
drivers/pipe: Don't use sched_[lock|unlock] to do protection
...
since the sched lock can't work in SMP context
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-17 22:08:43 +01:00
Xiang Xiao
fe04eb535f
drivers/pipe: Fix the format style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-17 22:08:43 +01:00
Huang Qi
ccc708a142
vncserver: Fix dead lock on re-connect
...
`vnc_remove_queue` would waiting for new frame update request forever
even if the connection is lost, the updater thread wouldn't exit.
But the server thread will join updater thread before accept new client
connection, then we can't re-conncet to vnc server.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-02-16 22:57:21 +08:00
Petro Karashchenko
41c95da594
register_driver: fix driver modes accross the code
...
State of problem:
- Some drivers that do not support write operations (does not
have write handler or ioctl do not perform any write actions)
are registered with write permissions
- Some drivers that do not support read operation (does not
have read handler or ioctl do not perform any read actions)
are registered with read permissions
- Some drivers are registered with execute permissions
Solution:
- Iterate code where register_driver() is used and change 'mode'
parameter to reflect the actual read/write operations executed
by a driver
- Remove execute permissions from 'mode' parameter
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-02-16 16:15:29 +08:00
Petro Karashchenko
a1f6717e2a
mtd/filemtd: improve write and erase access
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-02-15 12:06:24 +08:00
Masayuki Ishikawa
0258968abd
drivers: wireless: Fix gs2200m_ioctl_accept()
...
Summary:
- I received an issue report that multiwebcam in Spresense SDK 2.4.0
has a problem with the Chrome browser
- Actually, the browser tries to establish 2 connections but
the multiwebcam can handle only 1 connection. And if accept() for
the second connection is delayed, the connection no longer exists
in the gs2200m hardware
- This commit fixes this issue by checking if the cid is valid or not.
Impact:
- gs2200m driver only
Testing:
- Tested with spresense:wifi_smp
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-02-15 10:22:42 +08:00
Jiuzhu Dong
ef66c620c4
input/uinput: fix codesyle issue
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-02-11 11:58:49 +08:00
zouboan
3f6626f765
drivers/mtd/sst39vf.c: patch adress bug
2022-02-10 17:05:53 +08:00
Xiang Xiao
845640bc33
serial/pty: Decouple SUSv1 style from pseudo fs operation
...
and always enable BSD style PTYs since this feature doesn't
consume the additional code size
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-09 20:35:59 +08:00
Xiang Xiao
8e64db45c7
serial/pty: Close the internal pipe when reference count drop to zero
...
so the other side can get the hang up notification
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-09 01:42:51 +08:00
zouboan
6166dd5833
drivers/mtd/mtd_config.c: enlarge the limits of blocksize in struct mtdconfig_struct_s
2022-02-09 01:39:55 +08:00
Xiang Xiao
358dab3723
serial/pty: Reorder the register driver to simplify the error handling
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-08 16:11:26 +01:00
Xiang Xiao
61066ecbc8
serial/pty: Sync the default termios setting regardless CONFIG_SERIAL_TERMIOS
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-08 09:33:46 -03:00
Xiang Xiao
3ec208fdbc
serial/pty: Don't initialize pd_iflag to ISIG
...
since ISIG belong local mode flags not input mode flags,
but local mode isn't implemented by pty driver yet.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-08 09:33:46 -03:00
Xiang Xiao
e3fed03e43
serial/pty: Don't use shced_[lock|unlock] to protect pp_locked
...
since the sched lock can't work in SMP context
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-08 09:31:56 -03:00
Xiang Xiao
f03fc4a179
serial/pty: Destroy pp_slavesem in pty_destroy to avoid the leak
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-08 09:31:56 -03:00
ligd
0155e910dc
serial: fix cu crash caused by ioctl is NULL
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-02-07 13:31:46 +08:00
Xiang Xiao
22f2269d6a
drivers/pipe: Remove pipe from file system after open
...
to make the pipe as an anonymous object as soon as
possible and simplify the life cycle management
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-07 12:05:47 +08:00
Xiang Xiao
345d2ac227
drivers/pipe: Add g_ prefix to pipe_fops and fifo_fops
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-07 12:05:47 +08:00
Xiang Xiao
15c487085a
serial/ptmx: Fix the typo error in ptmx_minor_free
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-06 16:19:27 +01:00
Xiang Xiao
6cc0388f4f
serial/ptmx: Add lock to avoid the race condition in ptmx_minor_free
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-06 16:19:27 +01:00
Xiang Xiao
01a234bfb1
pipe: Add DEV_PIPE_VFS_PATH to specify the pipe location
...
and put into /var/pipe by default like other pseudo device
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-05 23:37:44 +01:00
Xiang Xiao
91c331f3fd
pipe: Change the default of DEV_PIPE_MAXSIZE from 256/1024 to 65535
...
since both values have to typedef pipe_ndx_t to uint16_t,
it doesn't make sense to limit the size smaller than 65535
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-05 23:37:44 +01:00
Petro Karashchenko
74a4394352
drivers/syslog/syslog_device: fix flushing data when end of line is detected
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-02-05 03:10:31 +08:00
Alexander Lunev
a597e66070
bcm43xxx: fixed several warnings:
...
warning: ISO C forbids 'return' with expression, in function returning void [-Wpedantic]
warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint8_t * {aka unsigned char *}' [-Wformat=]
warning: too many arguments for format [-Wformat-extra-args]
2022-02-04 15:26:42 -03:00
chao.an
5457a9a450
serial/pty: fix the lock handling
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-02-03 13:14:34 +08:00
chao.an
2ab4003e0f
usbhost/max3421e: fix leaving from critical section
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-02-02 21:45:13 +08:00
Xiang Xiao
4c167b0729
Correct the code alignment
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-01 21:22:21 -03:00
Xiang Xiao
f987668068
serial: Consolidate the general termios in the common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-01 21:22:21 -03:00
Xiang Xiao
01b791d773
drivers/syslog: Implement RTT based log channel
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-01 11:26:46 +01:00
Xiang Xiao
1e87d50d34
drivers/syslog: Refine Kconfig option
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-31 13:42:19 +01:00
Xiang Xiao
6a0dbba62b
syslog: Include nuttx/syslog/syslog.h in include/nuttx/syslog/syslog_rpmsg.h
...
to avoid struct syslog_channel_s used before definition
and remove the unnecessary inclusion
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-31 13:41:56 +01:00
Alan C. Assis
0b23257ef1
i2c: Add support to TCA9548A multiplexer
2022-01-31 13:40:17 +01:00
David Sidrane
341bfeb8b6
cdcacm:support returning c_cflag & speed via termios
...
Implementation was incomplete. This can now be
used to pass the lincodeing information to
a real serial port.
2022-01-31 01:15:29 +01:00
chao.an
8e31fa572a
segger/RTT: hotfix for RTT compile warning
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-29 17:26:04 +08:00
chao.an
11f04e516a
drivers/segger: download the RTT/SystemView from github
...
RTT:
https://github.com/SEGGERMicro/RTT/archive/refs/tags/V7.54.zip
SystemView:
https://github.com/SEGGERMicro/SystemView/archive/refs/tags/V3.30.zip
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-29 17:26:04 +08:00
chao.an
e04ccba78a
note/sysview: add Segger System View support
...
Reference:
https://www.segger.com/products/development-tools/systemview
https://github.com/SEGGERMicro/SystemView
https://github.com/SEGGERMicro/RTT
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-29 17:26:04 +08:00
liucheng5
764fc7ef5e
fix: sensor: ppg of dual- and quad-channel sensor types
...
Some PPG devices have 4 ADCs to output quad-channel PPG values while some of them only have 2 ADCs to output dual-channel PPG.
To deal the case above, the type PPGD(PPG of Dual-channel) takes the place of former type PPG, which also have 2-channel PPG outputs. Type PPGQ (PPG of Quad-channel) is new for 4-ADC-PPG. Both types have contained new data "gain" to indicate ADC gains of each PPG channel, for the reason that the gains may vary during automatical optical adjustments.
Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
2022-01-28 14:07:46 +08:00
Xiang Xiao
ecccc614bd
arch: Add up_perf_getfreq function
...
it's important to know the perf count frequency
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-25 21:02:14 -03:00
Xiang Xiao
bc2dd37051
drivers/timers: Add weak_function for up_ function
...
so the user could replace the implementation if need
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-25 13:35:05 +01:00
Xiang Xiao
a24ae559c2
arch: Decouple up_critmon_[gettime|convert] from critmon
...
and rename to up_perf_[gettime|convert] since it's useful in other case
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-25 14:43:34 +08:00
chao.an
c50d39060b
drivers/sensors: fix Kconfig warning
...
drivers/sensors/Kconfig:590:warning: defaults for choice values not supported
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-24 23:52:56 +08:00
Alan C. Assis
d8163803d1
sensors: Add support to MS5611 Barometer
2022-01-24 10:23:45 +08:00
Alan C. Assis
d664385784
Move MS58xx CRC-4 to include/ it will be used by other sensors
2022-01-24 10:23:45 +08:00
Xu Xingliang
021363f1db
driver/mmcsd: add option to limit block count in multiple-block transfer mode.
...
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
2022-01-22 14:59:26 +08:00
Petro Karashchenko
08043fb5bc
net: unify FAR keyword usage for all net buffer memory mapped buffers
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-20 01:42:56 +08:00
yinshengkai
3bb4e053fe
driver/uinput: add uinput button support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 01:20:19 +08:00
yinshengkai
377c15955e
driver: add uinput support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 01:20:19 +08:00
yinshengkai
676b735c4a
driver/touchscreen: Add support for write operations
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-01-20 01:20:19 +08:00
ligd
302945760c
rpmsg_rtc: dirctly call rpmsg_rtc_server_xx() in server_ept_cb()
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-19 19:37:02 +08:00
SPRESENSE
021a58d71a
usbdev: Add board unique serial string support
...
iSerialNumber field in the device descriptor can be used to determining the
board when multiple boards connected to the same host. So add feature to change
serial string by board unique ID dynamically.
To use this feature, user must be implement the board_usbdev_serialstr() logic.
refs #13909
2022-01-19 09:25:48 +01:00
ligd
67f7efe0b1
rpmsg_rtc: fix typo
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-18 17:51:02 +01:00
ligd
a9e3a5c233
rpmsg_rtc: to simply the SYNC cmd logic
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-18 22:48:15 +08:00
ligd
cb502a869c
clock: update clock_synchronize() to support with time
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-18 22:48:15 +08:00
Petro Karashchenko
9551de7115
net: use HTONS, NTOHS, HTONL, NTOHL macro in kernel code
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-18 10:59:47 +01:00
Peter Kalbus
04b27b6877
Fix aligment issue: pktbuf needs to be 16bit aligned
...
Otherwise hardfault in cdcecm_receive() at BUF->type.
2022-01-18 09:08:09 +01:00
Petro Karashchenko
8d3bf05fd2
include: fix double include pre-processor guards
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 11:11:14 -03:00
Xiang Xiao
1adee3d657
rtc/rpmsg: Implement ioctl and destroy on server side
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
fd6a643460
rtc/rpmsg: Remove C99 specific statement
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
2b238d0772
rtc/rpmsg: Replace clock_[get|set]time with rtc_ops_s::[rd|set]time
...
to support the multiple rtc driver instance
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
3d3c4767a9
rtc/rpmsg: Replace session to client
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
41b9cf3cd8
rtc/rpmsg: Add sync parameter to control whether call clock_synchronize
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
6121f15d51
rtc/rpmsg: Move rtc_initialize out of rpmsg_rtc_initialize
...
like other rtc driver
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Huang Qi
2e35b6d611
serial/uart_16550: Allow uintptr_t as addr width
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-14 19:40:30 +08:00
Fotis Panagiotopoulos
0c41611429
syslog: Fix in file channel initialization.
2022-01-13 19:16:10 +01:00
Jukka Laitinen
297c8dfc3a
drivers/mmcsd/sdio.c: Fix struct packing of sdio_resp_r5
...
The struct memeber should be packed as well
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-01-13 10:34:28 -03:00
Xiang Xiao
40b1f0bee8
libc: Add include/nuttx/input/x11_keysym.h
...
to enable more key group inside x11_keysym.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-11 15:01:13 +08:00
Petro Karashchenko
a743fed63d
file_operations: get back C89 compatible initializer
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-11 02:14:00 +08:00
ligd
5a0ab205ca
serial: merge serial check signo to one place
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-10 17:07:32 +01:00
Xiang Xiao
e1b5e87ff3
Fix ioexpander/gpio_lower_half.c:359:23: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-09 11:06:06 +08:00
Xiang Xiao
bbf5511e3a
arch/sim: Move the dummy ioe driver to drivers/ioexpender
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-09 11:06:06 +08:00
Xiang Xiao
b054bd9d37
arch/sim: Move the dummy foc driver to drivers/motor/foc
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-09 11:06:06 +08:00
Xiang Xiao
3156a96a1b
arch/sim: Move qspiflash simulation to drivers/spi instead
...
since it's common implementation can be used in other arch too
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-07 23:50:11 +08:00
Xiang Xiao
d296f9c085
arch/sim: Move spiflash simulation to drivers/spi instead
...
since it's common implementation can be used in other arch too
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-07 23:50:11 +08:00
chao.an
3fceaf10a9
drivers/ioexpander: fix the kconfig warning
...
drivers/ioexpander/Kconfig:28:
warning:
config symbol 'IOEXPANDER_RPMSG_INT_NCALLBACKS' uses select, but is not boolean or tristate
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-07 09:37:07 +01:00
Xiang Xiao
7060408c62
Fix net/rpmsgdrv.c:440:20: error: '#' flag used with '%p' gnu_printf format
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-07 15:59:58 +08:00
Xiang Xiao
8dc2ce7995
ioexpander/rpmsg: Select IOEXPANDER_INT_ENABLE instead depend on it
...
follow other similiar drivers
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-06 22:20:38 +01:00
Xiang Xiao
afacc8d590
usbhost: Fix typo error in Kconfig(MOUSE->INPUT_MOUSE)
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-06 17:51:27 +08:00
Xiang Xiao
3c86a3c2b0
input: Remove prompt string from INPUT_MOUSE
...
to ensure this option can only be enabled by select in Kconfig
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-06 17:51:27 +08:00
Xiang Xiao
828f04f0e5
sdio: Move sdio utils functions to drivers/mmcsd
...
so all sdio client driver can reuse them
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-04 17:44:24 +01:00
Jiuzhu Dong
dce8c96281
uart_rpmsg: fix data loss
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-01-04 20:57:40 +08:00
Petro Karashchenko
6c2b40f98a
typos: fix typos in many files
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-03 22:10:07 +08:00
Petro Karashchenko
c7d3a674fd
drivers/sensors/as5048b: fix lower half init issue
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-03 11:38:44 +08:00
Xiang Xiao
4e595a3fde
Fix video/vnc/vnc_negotiate.c:396:3: error: ‘ret’ undeclared
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-03 11:19:32 +08:00
Xiang Xiao
3e85d81686
grahpics: Move VNC server to drivers/video
...
and remove the empty VNC client
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-03 11:19:32 +08:00
ligd
75aec04330
serial: add CONFIG_TTY_LAUNCH support
...
this allow user start new program from tty
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-01 20:38:26 +08:00
Matthew Trescott
2159315571
can: WIP: Cleanup usage of soft fifo semaphore
2021-12-30 17:39:26 +08:00
Petro Karashchenko
95db3ce741
nuttx: remove space befone newline in logs
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-29 23:37:56 +01:00
Alexander Lunev
76bb5f5a61
bcm43xxx: supported ARM CR4 core and bcm43455 chip in particular
2021-12-30 01:33:13 +08:00
Xiang Xiao
4262b09cbf
libc: Implement terminal api regardless of CONFIG_SERIAL_TERMIOS setting
...
since many functions aren't related to termios directly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-29 08:11:08 -03:00
Xiang Xiao
86684105f9
serial: Move tcdrain implementation from drivers/serial to libc
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-29 08:11:08 -03:00
Xiang Xiao
a010cb1af1
serial: Make SIGINT and SIGTSTP work even without CONFIG_SERIAL_TERMIOS
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-29 08:11:08 -03:00
Norman Rasmussen
baafd33cbe
Fix a typo in description of pwm_expired
2021-12-28 06:27:51 -06:00
zhuyanlin
1f87ded9c2
driver:clk: clk pending on semaphore waiting on IPC ready
...
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2021-12-27 23:25:28 -06:00
zhuyanlin
a22dae19c1
regulator/rpmsg: pending in wait ept ready for regulator client
...
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2021-12-27 23:25:28 -06:00
Petro Karashchenko
3ccb657dc2
nuttx: remove space befone newline in logs
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-27 21:01:19 -06:00
Xiang Xiao
8f72c7626c
driver/rwbuffer: Fix the compiler warning
...
rwbuffer.c: In function 'rwb_initialize':
rwbuffer.c:842:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
842 | ferr("Write buffer kmm_malloc(%d) failed\n", allocsize);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
| |
| uint32_t {aka long unsigned int}
rwbuffer.c:842:42: note: format string is defined here
842 | ferr("Write buffer kmm_malloc(%d) failed\n", allocsize);
| ~^
| |
| int
| %ld
In file included from rwbuffer.c:36:
rwbuffer.c:846:13: warning: format '%d' expects argument of type 'int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
846 | finfo("Write buffer size: %d bytes\n", allocsize);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
| |
| uint32_t {aka long unsigned int}
rwbuffer.c:846:34: note: format string is defined here
846 | finfo("Write buffer size: %d bytes\n", allocsize);
| ~^
| |
| int
| %ld
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-27 11:05:47 -06:00
Xiang Xiao
ab0f5f607d
Fix ioexpander/gpio_lower_half.c:302:23: warning: too many arguments for format
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-27 11:04:11 -06:00
zhuyanlin
c5aca37f8f
regulator: fix warning in RPIu32
...
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2021-12-27 06:56:38 -06:00
Diego Herranz
e6bd444fd3
drivers/sensors/isl29023.c: fix compilation error and warnings
...
- "op_mode" instead of "mode" (compilation error)
- CONFIG_ISL29023_I2C_FREQUENCY instead of CONFIG_LM75_I2C_FREQUENCY
(probably a leftover)
- Fix a couple of format warnings: now using PRIu32
- Also minor comment changes
2021-12-22 20:44:52 -06:00
Xiang Xiao
348b9b0d35
net/slip: Update IFF_RUNNING flag by netdev_carrier_on and netdev_carrier_off
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-22 07:15:00 -03:00
Xiang Xiao
e63e083a2f
net/tun: Update IFF_RUNNING flag by netdev_carrier_on and netdev_carrier_off
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-22 07:15:00 -03:00
Xiang Xiao
500d8541fa
net/loopback: Update IFF_RUNNING flag by netdev_carrier_on and netdev_carrier_off
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-22 07:15:00 -03:00
songnannan
0a62701c1a
fix: regulator: set ioexpander direction in regulator gpio init.
...
Signed-off-by: songnannan <songnannan@xiaomi.com>
2021-12-21 08:47:17 -06:00
Xiang Xiao
dfcb3cea59
Replace self defined macros with NET_SOCK_[FAMILY|TYPE|PROTOCOL]
...
NET_SOCK_* is defined by nuttx/net/netconfig.h and then can be shared
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-21 11:02:33 -03:00
Juha Niskanen
422ceec99b
Fix typos in comments and Kconfig files
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2021-12-21 03:26:16 -06:00
chao.an
928426295f
input/ads7843e: complement critical section operation
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-20 12:35:03 -06:00
Xiang Xiao
187d9e58c9
Remove the unnecessary inclusion of assert.h and string.h from public header files
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-20 10:30:08 +01:00
Petro Karashchenko
67d8a82393
Kconfig: fix non-string default values uniformity
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-20 00:10:57 +01:00
Diego Herranz
34c7bec0dc
drivers/sensors/hdc1008: fix formatting after decimal point
...
Modulo operation used to calculate digits after decimal point,
but if that result is <10, a leading zero wasn't added, giving a
wrong value.
2021-12-17 23:36:38 -06:00
Diego Herranz
1fe41381d5
drivers/sensors/hdc1008: include signal.h
...
Fix implicit declaration warning of nxsig_usleep.
2021-12-17 23:36:38 -06:00
Jiuzhu Dong
153254a496
sensor: reset interval,latency and circbuf when sensor is closed
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-12-17 23:36:07 -06:00
Jiuzhu Dong
f35c6d7ef1
syslog/rpmsg: using up_putc to force flush syslog_rpmsg buffer
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-12-17 11:43:08 -06:00
zhuyanlin
5df041ca55
ioe-rpmsg: bind server to diffent ept struture
...
N/A
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2021-12-16 01:29:24 -06:00
zhuyanlin
e75bcde0d6
driver:ioe_rpmsg: set_option add regval parameter
...
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2021-12-16 01:29:24 -06:00
zhuyanlin
e43e1423d6
driver/ioexpander: add ioe_rpmsg server and client
...
N/A
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2021-12-16 01:29:24 -06:00
Petro Karashchenko
6c255f2d07
drivers/analog: add mcp48xx dac support
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-15 07:02:56 -06:00
Petro Karashchenko
51a2db6ffc
Kconfig: improve uniformity
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-14 07:32:48 -06:00
Petro Karashchenko
3b3cebdd3e
typo: fix type for word "instance"
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-14 06:39:34 -06:00
Xiang Xiao
69468b700d
libc: Move syslog_stream from nuttx/streams.h to drivers/syslog/syslog.h
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-14 00:51:59 -06:00