ligd
434c49f282
rptun_dump: use METAL_LOG_EMERGENCY log level
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-26 09:36:05 +08:00
ligd
4a9bd26317
rptun: merge rptun_ioctl & rptun_ops to one
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-26 09:36:05 +08:00
ligd
631eb516c9
rptun_dump: don't get lock in IRQ handler
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-26 09:36:05 +08:00
Peter van der Perk
b3590f00b3
NXStyle and preprocessor fixes
...
Co-authored-by: Jari van Ewijk <jari.vanewijk@nxp.com>
2022-07-25 23:47:05 +08:00
Jari van Ewijk
dd1096695d
Add initial support for NXP S32K3 MCU family
...
Co-authored-by: Peter van der Perk <peter.vanderperk@nxp.com>
2022-07-25 23:47:05 +08:00
Jari van Ewijk
d3b1ee9866
Macronix MX25RXX driver: add support for MX25LXX as well
...
Co-authored-by: Peter van der Perk <peter.vanderperk@nxp.com>
2022-07-25 23:47:05 +08:00
Jiuzhu Dong
fc84813b0a
driver/sensor: add calibrate interface for sensor driver.
...
Add standard sensor interface for calibrate, can trigger
calibration and obtain calibration value.
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-25 17:44:31 +08:00
Jiuzhu Dong
1c342328de
rtc/rpmsg: when a client connection, server initiates time sync
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-25 14:58:16 +08:00
Jiuzhu Dong
3132f169ef
driver/sensor: add sensor type of cap and wake_gesture
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-25 13:34:58 +08:00
raiden00pl
0570704cdc
sensors: use the INA226 driver also for INA230 chips
2022-07-23 16:48:13 -03:00
curuvar
c21c7ac8dc
Added Adafruit QT Py RP2040 board.
...
Added ability to configure indivdual UART, SPI and I2C pin location.
2022-07-23 18:25:38 +08:00
Jiuzhu Dong
40e86501f1
driver/ioe_rpmsg: split server and client ept_cb to simplify code
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-22 14:44:44 +08:00
Karel Kočí
3693d38763
drivers/lcd/st7789: update implementation of driver for ST7789
...
'putarea' function now has to select the appropriate values from the
whole frame buffer instead of the previous expectation of having just
specified rectangle passed to it.
This required extension of WRRAM handling function as we now are not
writing simply buffer but we want to skip some values and do that
multiple times. Having two implementation in this case is worst as this
function is actually called only twice in the whole code (thus making
dedicated function for every call if we would have two variants).
Calling `st7789_wrram` multiple times is not an option as command
ST7789_RAMWR resets the position and thus calling it multiple times just
overwrites the previous values.
2022-07-22 11:08:00 +08:00
Alan Carvalho de Assis
a9d3e1bd08
lcd/apa102: Fix APA102 RGB LED Matrix interleaving issue
...
I found an issue in the APA102 framebuffer that wasn't spot
before by fb test because this application draw symetric squares
Normally in a display each line starts at left and increase to the
right, however for this APA102 matrix the next line starts at the
end of previous line and move the opposite direction, forming a
zig-zag pattern.
2022-07-22 11:05:32 +08:00
Xiang Xiao
d04ed9587b
drivers/syslog: Call up_nputs in syslog_default_write
...
since the buffer may not be terminated by null
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-21 21:26:10 +03:00
Jiuzhu Dong
e7b8af7a35
driver/ramlog: set CONFIG_SYSLOG_DEVPATH to /dev/kmsg when enbale ramglog
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-21 23:40:56 +08:00
Jiuzhu Dong
af62e6cbfa
driver/syslog: support syslog rpmsg server chardev
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-21 23:40:56 +08:00
Jiuzhu Dong
eedb774d68
driver/syslog: remove TRANSFER_DONE and sem wait when buffer is full
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-21 23:40:56 +08:00
Jiuzhu Dong
059114557f
driver/syslog: support syslog output when buffer remaining space over 75%
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-21 23:40:56 +08:00
Jiuzhu Dong
664fcb2698
driver/syslog: support syslog rpmsg character buffer
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-07-21 23:40:56 +08:00
ligd
5c33db4220
syslog_rpmsg: head must bigger then tail when syslog_rpmsg_init
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-07-21 23:40:56 +08:00
Alan Carvalho de Assis
9587e4a85e
lcd/apa102: Add putarea() support for faster rendering
2022-07-20 11:52:22 +08:00
Alan Carvalho de Assis
b3daaf765b
drivers/lcd: Add support to use APA102 LED Matrix as LCD Display
...
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-07-19 18:50:04 +03:00
SPRESENSE
b04c4972fe
mtd/smartfs: Fix uninitialized variable
...
If CONFIG_SMARTFS_MULTI_ROOT_DIRS is enabled and dev->partname is not empty,
dev->rwbuffer is an uninitialized variable and register_blockdriver is called.
2022-07-19 11:08:13 +03:00
Xiang Xiao
2166c98809
Add printflike and scanflike to all printf/scanf like functions
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-18 14:14:36 +03:00
Xiang Xiao
19f269e54b
syslog: Remove the lock from syslog_default_write
...
to avoid the problem when is called from interrupt/signal handler
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-17 17:31:19 +03:00
Xiang Xiao
8254ad9159
drivers/syslog: Call up_puts instead up_putc one by one
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-17 17:31:19 +03:00
Xiang Xiao
02ea79365a
drivers/bch: Adjust f_pos with the correct value
...
Fix the problem reported by:
https://github.com/apache/incubator-nuttx/issues/6619
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-17 17:13:36 +03:00
Xiang Xiao
a2239891e7
mmcsd: Remove the not really used capacity field
...
to avoid the check of CONFIG_HAVE_LONG_LONG in many place
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-16 11:12:30 +03:00
Gustavo Henrique Nihei
e999708b31
drivers: Convert DEBUGASSERT(false) into more intuitive DEBUGPANIC()
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-07-14 12:08:45 +08:00
Huang Qi
70c0672598
vncserver: Support keyboard driver
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-07-12 10:05:15 -03:00
Eero Nurkkala
5a45130d5c
usbdev/usbmsc: introduce USBMSC_WRMULTIPLE for faster writes
...
This patch introduces a configuration option USBMSC_WRMULTIPLE,
which is used to store multiple blocks into a larger chunk that
then gets written via the mmcsd_writemultiple() (in case mmcsd
is used).
The bottleneck with the current implementation is the poor
performance due to short block writes. USBMSC_DRVR_WRITE()
always writes only one sector (with eMMC that's usually 512 bytes).
eMMC devices usually erase much larger regions with near constant
time (see Jedec JESD84-B51, Extended CSD register byte [225],
SUPER_PAGE_SIZE): 'This register defines one or multiple of
programmable boundary unit that is programmed at the same time.'
If USBMSC_WRMULTIPLE is defined, then USBMSC_NWRREQS is used to
allocate the write buffer size. We don't want this to be the
default behavior yet as this may reveal unseen bugs in usb drivers
due to the faster overall performance.
Sample configurations with measured performance:
- Without USBMSC_WRMULTIPLE: 470 Kb/s
- With USBMSC_WRMULTIPLE, CONFIG_USBMSC_NWRREQS=4: 1.1 Mb/s
(dd with bs=2k)
- With USBMSC_WRMULTIPLE, CONFIG_USBMSC_NWRREQS=16: 5.2 Mb/s
(dd with bs=8k)
No doubt, this feature alone may make the mass storage work 10
times faster than before with eMMC cards.
Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2022-07-12 18:36:34 +08:00
Nathan Hartman
1867bc2210
Fix compiler warnings (-Wunused-parameter) in various functions
...
Fixes the -Wunused-parameter warning in:
* group/group_signal.c: group_signal()
* irq/irq_unexpectedisr.c: irq_unexpected_isr()
* task/task_spawn.c: nxtask_spawn_proxy()
* timer/timer_getoverrun.c: timer_getoverrun()
* misc/dev_null.c: devnull_read(), devnull_write(), devnull_poll()
* misc/dev_zero.c: devzero_read(), devzero_write(), devzero_poll()
* syslog/syslog_channel.c: syslog_default_write()
* syslog/syslog_device.c: syslog_dev_flush()
* grp/lib_initgroups.c: initgroups()
* misc/lib_mknod.c: mknod()
* misc/lib_glob.c: ignore_err()
* pthread/pthread_barrierinit.c: pthread_barrier_init()
* pthread/pthread_atfork.c: pthread_atfork()
* semaphore/sem_init.c: nxsem_init()
* stream/lib_nullinstream.c: nullinstream_getc()
* stream/lib_nulloutstream.c: nulloutstream_putc()
* stream/lib_libnoflush.c: lib_noflush()
* stream/lib_libsnoflush.c: lib_snoflush()
* string/lib_strerror.c: strerror()
* time/lib_gettimeofday.c: gettimeofday()
* time/lib_settimeofday.c: settimeofday()
* unistd/lib_pathconf.c: fpathconf(), pathconf()
* unistd/lib_getrusage.c: getrusage()
* unistd/lib_setrlimit.c: setrlimit()
* unistd/lib_getrlimit.c: getrlimit()
* unistd/lib_setpriority.c: setpriority()
2022-07-12 11:42:34 +08:00
Huang Qi
e23bcb0e81
vncserver: Correct rfb_keyevent_s definition
...
Refer to https://datatracker.ietf.org/doc/html/rfc6143 ,
size of key is 4 byte.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-07-11 14:11:43 +08:00
Adam Kaliszan
da69b013bc
SSD1680 Landscape mode bugfix
...
Displays with resolution that is not multiplication of 8 had some issues in landscape mode (columns ware shifted).
Fixed function for copying bits.
Optimized memory reload for landscape mode.
2022-07-09 16:13:22 +08:00
Huang Qi
4945c49c61
vncserver: Support pointer driver
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-07-08 13:28:34 +08:00
Nathan Hartman
849f760b77
Fix various typos
2022-07-08 02:15:54 +08:00
curuvar
aa6ec6518c
Added ADC to RP2040
2022-07-07 12:45:28 -03:00
Xiang Xiao
3308f77e7c
drivers/segger: Support the customize SEGGER_RTT_[BUFFER_]SECTION
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-06 12:55:16 -03:00
Adam Kaliszan
664d45dcba
New rules of triggering redrawing display.
...
New callback redraw in lcd_framebuffer.c
SSD1680 driver (e-ink display) changes.
2022-07-05 23:05:32 +08:00
licheng
ee0dc87059
fix sd can't usage when mult-block receive errro
2022-07-04 20:43:50 +03:00
chao.an
5048be1bfe
wireless/bcm43xxx: set listen interval on lowpower
...
set listen interval dtim(Delivery Traffic Indication Message) on lowpower mode
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-07-03 02:28:50 +08:00
Xiang Xiao
881902d2cd
drivers/lcd_framebuffer: Optimize updateearea for the full screan case
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-07-02 18:37:42 +03:00
chao.an
9a4f494da2
wireless/bcm43xxx: fix memory leak if tx fail
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-07-02 21:33:16 +08:00
chao.an
f424bb32aa
wireless/bcm43xxx: only break out the send loop if no data
...
only break out the continuous send if IP stack has no data to send to avoid
tx being constantly interrupted by RX
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-07-02 19:39:49 +08:00
chao.an
96192eac55
wireless/bcm43xxx: filter out the bssi with same ssid name
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-07-02 19:39:23 +08:00
chao.an
ba3e859aa5
wireless/bcm43xxx: allocate tx frame with nonblock mode
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-07-02 19:24:34 +08:00
chao.an
5ce7b35020
wireless/bcm43xxx: replace private queue implement to list_node
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-07-02 19:24:34 +08:00
chao.an
14f1519d1e
wireless/bcm43xxx: discard auth event if netdev down
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-07-02 17:39:52 +08:00
chao.an
752e48eb34
wireless/bcm43xxx: remove flowctrl check
...
remove flowctrl check since credit is enough to check flow control status
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-07-02 17:34:56 +08:00