Commit Graph

1962 Commits

Author SHA1 Message Date
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
Xiang Xiao
1c23a095ea Fix Error: keyboard_main.c:420:15: error: result of comparison of constant -1 with expression of type 'char' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
if (key != EOF)
          ~~~ ^  ~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-31 06:28:17 +01:00
SPRESENSE
c3f91b3a0a examples/camera: Dynamically get the connected device
This example can support for both ISX012 and ISX019 image sensors.
2022-10-25 22:46:45 +08:00
liangchaozhong
ffab06c6c5 usrsock:fix stack-buffer-overflow issue when running basic_send test case
The following error was reported when runing usrsocktest with KASAN check enabled.
    ==1348590==ERROR: AddressSanitizer: stack-buffer-overflow on address 0xf20ec610 at pc 0x56ac61ba bp 0xf20ec278 sp 0xf20ec268

rootcause:
hdrbuf's size is not large enough to store the data in usrsock's request.

solution:
double herbuf's size to make sure the space, used to store usrsock's request, is enough.

Signed-off-by: liangchaozhong <liangchaozhong@xiaomi.com>
2022-10-24 17:02:15 +08:00
raiden00pl
8d61a10a74 industry/foc/foc_ident: make the Ki resistance measurement parameter configurable
The hardcoded parameter may not be suitable for various types of motors
2022-10-24 01:14:52 +08:00
Petro Karashchenko
5862b9d15c netutils/thttpd: remove MIN and MAX definitions from libhttpd.c
This reverts commit e12d48f0d2.
2022-10-24 01:13:27 +08:00
Petro Karashchenko
0fe45a4c73 Revert "Revert "examples/foc: fix description in Kconfig""
This reverts commit 1a18703a42.
2022-10-24 01:13:27 +08:00
Petro Karashchenko
9368b659a7 Revert "Revert "examples/timer_gpio: fix initialization of timer notification""
This reverts commit 539b7363d0.
2022-10-24 01:13:27 +08:00
Petro Karashchenko
e12d48f0d2 Revert "netutils/thttpd: remove MIN and MAX definitions from libhttpd.h"
This reverts commit c52f40770e.
2022-10-23 08:29:01 +02:00
Petro Karashchenko
1a18703a42 Revert "examples/foc: fix description in Kconfig"
This reverts commit eca51e267f.
2022-10-23 08:29:01 +02:00
Petro Karashchenko
539b7363d0 Revert "examples/timer_gpio: fix initialization of timer notification"
This reverts commit e431abe2ed.
2022-10-23 08:29:01 +02:00
Petro Karashchenko
e431abe2ed examples/timer_gpio: fix initialization of timer notification
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-23 11:45:52 +08:00
Petro Karashchenko
eca51e267f examples/foc: fix description in Kconfig
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-23 11:45:52 +08:00
Petro Karashchenko
c52f40770e netutils/thttpd: remove MIN and MAX definitions from libhttpd.h
add newlines between MIN and MAX definitions for style consistency

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-10-23 11:45:52 +08:00
pedrobertoleti
00bd5a2edf Fixed unused variable and improved Kconfig for TCP IPC Client & Server 2022-10-19 15:51:04 +08:00
Xiang Xiao
b659f0fbdf Remove the unnecessary cast for main_t, NULL and argv
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 18:40:23 +02:00
Pedro Bertoleti
c908661414 Client & Server examples to use TCP/IP socket as an IPC Channel for LoRaWAN 2022-10-17 18:54:55 -03:00
Xiang Xiao
964747dd36 nshlib: Call nsh_telnetstart in nsh_initialize to avoid the dupliation
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 15:39:10 -04:00
Xiang Xiao
893387b2c5 Fix the minor style issue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 19:07:16 +02:00
Xiang Xiao
4941182cc6 Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),)
to support the tristate option correctly and unify the usage

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 14:59:08 +02:00