Nathan Hartman
8e77b79f78
Kconfig: Make indent consistent with TABS
2023-02-10 14:11:48 +08:00
chao an
42d34fcef3
build/Kconfig: fix warnings detected by kconfiglib
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-09 19:45:36 +08:00
raiden00pl
ee1e84a261
examples/nxscope: add a new option to wake up the samples thread with timer.
...
Now we can add samples with at a higher frequency than with usleep().
2023-02-08 02:54:56 +08:00
raiden00pl
1dd7d3dec3
examples/timer_gpio: fix compilation
2023-02-08 00:36:20 +08:00
chao an
8ad4ae5508
net: fix compiler warning
...
sixlowpan_assocresp.c: In function ‘sixlowpan_assoc_resp’:
sixlowpan_assocresp.c:48:3: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]
48 | strncpy(arg.ifr_name, ifname, IFNAMSIZ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-08 00:35:39 +08:00
raiden00pl
bcd721b627
examples/nxscope: add support for CDCACM dev
2023-02-08 00:34:33 +08:00
Lee Lup Yuen
c57e7a7b81
examples/lvglterm: Add LVGL Terminal for NSH
...
This PR adds an LVGL App that executes NSH Commands (entered with a Touchscreen Keyboard) and renders the NSH Output. The app follows the same design as the `lvgldemo` app and is explained here: ["NuttX RTOS for PinePhone: LVGL Terminal for NSH Shell"](https://lupyuen.github.io/articles/terminal )
`examples/README.md`: Added doc for `lvglterm` app
`examples/lvglterm/lvglterm.c`: LVGL Terminal App
`examples/lvglterm/Makefile`, `Make.defs`: Makefile for LVGL Terminal
`examples/lvglterm/Kconfig`: Added menuconfig option for "Application Configuration > Examples > LVGL Terminal"
2023-02-07 20:53:24 +08:00
Xiang Xiao
a29d9ea9da
fsutils/examples: Include unistd.h explicitly
...
to get the prototypes or macros are defined in it
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-05 08:46:59 +02:00
Gustavo Henrique Nihei
b0da60e498
apps: Use MIN/MAX definitions from "sys/param.h"
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-02-02 00:35:14 +02:00
Lee Lup Yuen
757fc307c3
examples/lvgldemo: Select default demo
...
The LVGL Example App `lvgldemo` currently requires 1 argument: the name of the demo to show.
```bash
lvgldemo widgets
```
In this PR, we propose to make the argument optional if there is only one demo configured. This will enable PINE64 PinePhone to boot straight into `lvgldemo` and auto-start the LVGL App, without entering any `nsh` commands.
### Modified Files
`examples/lvgldemo/lvgldemo.c`: If no arguments are specified and only 1 demo exists, select the demo
2023-01-16 19:41:19 +08:00
chao an
8b368b7680
examples/netlink_route: fix compiler warning
...
netlink_route_main.c: In function ‘dump_neighbor’:
netlink_route_main.c:151:26: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘uint8_t *’ {aka ‘unsigned char *’} [-Wformat=]
151 | printf("%02x", nb->ne_addr.u.na_addr);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int uint8_t * {aka unsigned char *}
| %02hhn
netlink_route_main.c:155:26: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘uint8_t *’ {aka ‘unsigned char *’} [-Wformat=]
155 | printf("%02x.", nb->ne_addr.u.na_addr);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int uint8_t * {aka unsigned char *}
| %02hhn
Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-11 15:14:51 +08:00
raiden00pl
efdc1ebf3f
move embedlog from system to logging
2023-01-05 21:42:15 +08:00
Xiang Xiao
6e6df7dca8
Remove the unnecessary NULL fields in global instance definition of file_operations
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-01-04 09:30:25 +02:00
pengyiqiang
a610b633d2
graphics/lvgl: Upgrade to lvgl v8 version
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-01-01 10:14:55 -03:00
TimJTi
9d1a70af86
Add example app for LP503x LED driver
...
Update examples/lp503x/lp503x_main.c
Move struct lp503x_cmd_s to private types section
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Update examples/lp503x/lp503x_main.c
Co-Authored-By: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-12-30 21:19:33 +08:00
raiden00pl
eb8ad7af2f
add NxScope example
2022-12-28 01:40:24 +08:00
Xiang Xiao
d1e46c2d3e
compiler.h: Add _ between format|printf|syslog|scanf|strftime and like
...
align with other macro naming style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-21 01:05:12 +02:00
ligd
9fcb58fb8a
pipe: fix pipe test case failed
...
pipe shouldn't use /tmp folder, /tmp maybe mounted to tmpfs
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-12-20 23:39:12 +08:00
Xiang Xiao
cfc005a460
arp: Remove the unnecessary inclusion of nuttx/net/arp
...
and change the remain inclusion to netinet/arp.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-16 22:11:10 +02:00
yinshengkai
595adbcca6
drivers/note: rename /dev/note to /dev/note/ram
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-12-15 12:15:53 +08:00
zhanghongyu
c7e8ade590
arp: change arptable get struct from arp_entry_s to arpreq
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-12-14 21:19:37 +08:00
Xiang Xiao
3e2c8fdb41
examples/camera: Cast the last argument of ioctl to uintptr_t
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-08 12:38:55 +01:00
Xiang Xiao
519c4ccb1b
examples/camera: Add FAR for all pointer
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-08 12:38:55 +01:00
Xiang Xiao
02f608b64d
examples/camera: Call VIDIOC_S_FMT before VIDIOC_REQBUFS
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-08 12:38:55 +01:00
Xiang Xiao
ca855f3f23
examples/camera: Fix the style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-08 12:38:55 +01:00
Xiang Xiao
00dd4affea
examples/hidkbd: Reuse lib_meminstream_s and remove hidbkd_instream_s
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-05 13:55:31 +01:00
Xiang Xiao
2c56945fee
libc/stream: Rename (put|get) to (putc|getc)
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-05 13:55:31 +01:00
Xiang Xiao
8fff07b435
Remove the unnecessary "return;" at the end of function
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-27 22:36:40 +01:00
Robert-Ionut Alexa
e517dfd672
apps/ltr308: add simple application to test ltr308 sensor
...
Signed-off-by: Robert-Ionut Alexa <robertalexa2000@gmail.com>
2022-11-26 21:16:30 +08:00
Xiang Xiao
92d38a3bb1
Fix Error: nxtext_popup.c:250:20: error: unused function 'nxpu_puts'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-22 11:32:35 +08:00
Xiang Xiao
bce24201c7
Fix ft80x_coprocessor.c:3911:14: error: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int')
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-20 19:03:20 +08:00
Xiang Xiao
0c200b8966
Fix dac_main.c: error: format string is not a string literal (potentially insecure)
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-19 18:47:41 +01:00
Xiang Xiao
81de5d4c59
Fix foc_fixed16_thr.c:188:27: error: variable 'time' set but not used
...
and foc_float_thr.c:189:27: error: variable 'time' set but not used
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-19 18:47:41 +01:00
Junbo Zheng
3a6775c8ac
examples/tcp_ipc_server: fix wrong file path typo
...
The lorawan folder is under the path of examples/tcp_ipc_server, the server_tcp folder is not exist here, fix it.
Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2022-11-18 16:44:04 +08:00
Xiang Xiao
da30a87b81
Fix Error: version_main.c:124:42: error: format specifies type 'long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 14:55:30 +01:00
Xiang Xiao
25f200e9b0
Fix Error: sx127x_demo.c:464:7: error: variable 'fd' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-13 14:55:30 +01:00
Alan Carvalho de Assis
46fac8c851
Fix CI crash because switch() as missing NMEA sentences
2022-11-13 00:31:02 +01:00
Alan Carvalho de Assis
d03b87b1bc
gps: Fix GPS example application
2022-11-13 01:45:43 +08:00
yinshengkai
bd2efd9f51
tools: replace DEFINE to DEFINE_PREFIX
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-11-11 01:18:32 +08:00
yinshengkai
ee4d8b738f
Makefile: replace INCDIR to INCDIR_PREFIX
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-11-10 02:38:58 +08:00
Xiang Xiao
36a0c924f7
netutils: Support telnetd in the kernel mode
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: chao an <anchao@xiaomi.com>
2022-11-07 15:24:08 +09:00
Xiang Xiao
12863fbd52
system/telnet: Fix the style warning
...
and remove the unused code
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-11-07 15:24:08 +09:00
pedrobertoleti
1d9e1deb77
Improve tcp_ipc_server LoraWAN module communication
2022-11-05 12:55:40 +08:00
raiden00pl
13bfad1053
examples/foc: control motor identification parameters from cmd line
2022-11-04 02:07:15 +08:00
raiden00pl
682cac07d9
examples/foc/Kconfig: update EXAMPLES_FOC_MMODE range
2022-11-04 02:07:15 +08:00
raiden00pl
2bbfb1b396
examples/foc: move validate_args to parseargs file
2022-11-04 02:07:15 +08:00
raiden00pl
2c5dc1e4a2
examples/foc: simplify control thread configuration
2022-11-04 02:07:15 +08:00
raiden00pl
b1f91528ec
examples/foc: separate control thread configuration from general args
2022-11-04 02:07:15 +08:00
raiden00pl
c2efa80969
examples/foc: refactor args
2022-11-04 02:07:15 +08:00
dongjiuzhu1
6e3c4aab7d
alarm: using timegm instead of mktime beacuse rtc is gmt time
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2022-11-01 21:58:43 +08:00