jinxiuxu
518b1aea61
system/nxrecorder: add amr offload record support
...
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2023-10-27 21:00:59 +08:00
xuxin19
4439b242d8
Application.mk:ensure that the order when AROBJS is compiled multiple times
...
sort the target files to ensure that the files in each batch are the same every time
and clean AROBJS.
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-10-27 11:52:29 +08:00
xuxin19
efa1f51915
archive:create a copy rule for the ojbs with the same name
...
when there are too many target files in archive and need to be processed in batches,
in order to avoid file replacement due to duplicate names,
we dynamically rename the target files here.
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-10-27 11:52:29 +08:00
chenrun1
09bb3b5853
apps:move test tools to testing.
...
1.memstress
2.ramtest
3.ramspeed
4.cachespeed
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-10-26 13:17:28 +02:00
Ville Juven
3ff49e86f5
nshlib/nsh_fileapps.c: Remove sched_lock() from nsh_fileapp()
...
Locking the scheduler prior to calling posix_spawn() might lock the
scheduler for a relatively long time, if the file to be loaded is large.
posix_spawn() loads the process into memory, possibly linking it as well
if the binary format is linkable (elf). This can take tens / hundreds of
milliseconds, which basically destroys the OS's real time performance.
Missing the death-of-child signal is a very trivial penalty considering
the alternative.
2023-10-26 00:24:58 +08:00
Junbo Zheng
c0da2b2a0e
nshlib: correct ls -l
command output format
...
Since the output format will be messed up with a size of GB.
before
```
ap> ls -l
/dev:
brw-rw-rw- 0 0314572800 app
dr--r--r-- 0 0 0 audio/
crw-rw-rw- 0 0 0 buttons
crw-rw-rw- 0 0 0 console
brw-rw-rw- 0 0104857600 coredump
crw-rw-rw- 0 0 0 crypto
brw-rw-rw- 0 02214592512 data
```
after
```
ap> ls -l
/dev:
brw-rw-rw- 0 0 314572800 app
dr--r--r-- 0 0 0 audio/
crw-rw-rw- 0 0 0 buttons
crw-rw-rw- 0 0 0 console
brw-rw-rw- 0 0 104857600 coredump
crw-rw-rw- 0 0 0 crypto
brw-rw-rw- 0 0 2214592512 data
```
Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2023-10-26 00:24:40 +08:00
dongjiuzhu1
e61ff51e67
system/popen: remove O_CLOEXEC if mode exinclude 'e'
...
refs: https://man7.org/linux/man-pages/man3/popen.3.html
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-10-26 00:24:28 +08:00
dongjiuzhu1
cc66e34fbf
rexecd: avoid socket/pipe/socketpair dup to new task
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-10-26 00:24:28 +08:00
Ville Juven
57011d2313
import/Make.defs: Fix erroneous formatting of make condition
...
Fixes:
/apps/import/Make.defs:79: extraneous text after 'else' directive
2023-10-25 17:23:03 +03:00
liqinhui
5ae44f9bc4
wapi: Fix disconnect crash.
...
The ssid string has no terminator, which causes a out of bounds.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2023-10-25 14:58:41 +03:00
Stuart Ianna
4576b3923c
testing/sd_stress: Port sdstress testing utility from PX4-Autopilot.
...
Add port of the sdstress utility from PX4-Autopilot: https://github.com/PX4/PX4-Autopilot
This tool is useful for verifying correct operation of SD, EMMC, or other mountpoints.
2023-10-25 15:41:27 +08:00
Stuart Ianna
877509762c
import/mk: Use libm from the export package when defined.
...
Nuttx exports libm.a when `CONFIG_LIBM` is enabled. Adjust the application import makefile to pick this up when linking.
2023-10-25 15:40:19 +08:00
Stuart Ianna
a21476beab
netutils/netinit: Reduce net monitor delay on platforms without 64 bit time type.
...
Waiting for an hour can cause the calculated tick count in nxsem_clockwait to overflow due to the default width of sclock_t.
Reduce the long wait period on platforms not using 64-bit time.
2023-10-25 15:39:25 +08:00
Michal Lenc
d3508b6acd
testing: add fmemopen function test tool
...
Test tool application for fmemopen for CI testing. Performs basic
read/write/seek/append operations.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-10-25 00:27:14 +08:00
Alan Carvalho de Assis
dfea0aad48
apps/games: Rename Shift game to Brickmatch
2023-10-24 13:53:51 +08:00
Stuart Ianna
e55f28594c
examples/calib_udelay: Allow the number of delay loop iterations to be specified by kconfig.
...
The calibration test can take a long time on platforms with less
processing power. Allow the default value to be changed with kconfig.
2023-10-24 12:38:45 +08:00
Stuart Ianna
7605197f9d
netutils/netinit: Perform icmpv6 autoconfiguration when link transitions from down to up.
...
Without this addition, icmpv6 is never configured in the case that the
device is powered on without an ethernet cable connected.
2023-10-24 12:38:24 +08:00
chenrun1
15ad46fff9
ramspeed:Fix the problem that the "-i" option doesn't work.
...
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-10-24 09:36:36 +08:00
chenrun1
2d7bfa2390
memorystress:Enhanced debugging capabilities
...
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-10-24 09:35:59 +08:00
chenrun1
daae92ea92
memtester:Modify the misnaming in Kconfig
...
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2023-10-23 19:25:29 -03:00
Xiang Xiao
f2fcbe7ccf
testing: Swith up_perf_xxx to perf_xxx
...
follow up the the kernel change:
https://github.com/apache/nuttx/pull/10834
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>
2023-10-23 11:52:07 -03:00
raiden00pl
e65a4500e8
wolfssl depends on ALLOW_GPL_COMPONENTS
2023-10-23 22:26:23 +08:00
raiden00pl
6a3a180e1e
examples/bmp180: remove references to bmp280 which already has its own example
2023-10-23 22:26:13 +08:00
raiden00pl
fdabc7eccc
netutils/netinit/Kconfig: cosmetics
2023-10-23 22:26:13 +08:00
raiden00pl
2ac77e3e98
system/ntpc/Kconfig: cosmetcis
2023-10-23 22:26:13 +08:00
raiden00pl
67c58a3263
system/ptpd/Kconfig: cosmetics
2023-10-23 22:26:13 +08:00
raiden00pl
11907f7056
remove empty examples/canard
2023-10-23 22:26:13 +08:00
raiden00pl
dbdd59e52f
remove empty netutils/usrsock_rpmsg
2023-10-23 22:26:13 +08:00
Philippe Leduc
3d80541769
Add stepper example
2023-10-21 11:04:41 +08:00
raiden00pl
aad2bcb621
examples/foc: use the current configuration values when printing the help message
...
This is useful when tuning the controller and running application many times with different parameters from the NSH
2023-10-19 19:18:48 -04:00
Filipe Cavalcanti
36a9ccc3a8
Makefile - library download and compilation ok
...
Working read from mpu6050 - fixed makefile issues
Succesfull yaw pitch roll reads
Linter fixes - still erroring on mixed case
Added inertial lib
Fixed makefile to use inertial lib
Kconfig fix
2023-10-19 19:18:28 -04:00
raiden00pl
ce2ee9bb3f
industry/foc: use b16sign() instead of custom ABS() macro
...
fixedmath now supports sign functions so we no longer need to use a dedicated macro
2023-10-19 19:34:04 +08:00
raiden00pl
1c922f2d2d
examples/foc: add phase angle observer support (sensorless mode)
...
This app can work now as sensorless ESC.
Also introduce a cmd line option that force open-loop control
which is useful when tuning angle/velocity observers
2023-10-19 19:33:43 +08:00
Michal Lenc
a4ceb82d67
testing/fstest: add number of correct/incorrect tests
...
Verbose output for CI testing with OK and FAILED number of tests.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-10-18 16:52:24 -04:00
Michal Lenc
cd1d855a71
testing/scanftest: add number of correct/incorrect tests
...
Verbose output for CI testing with OK and FAILED number of tests. File
name is also now configurable with TESTING_SCANFTEST_FNAME.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2023-10-18 16:52:24 -04:00
raiden00pl
8398297518
examples/foc: add an option to call nxscope work from control thread
...
This alows nxscope data to be sent with every cycle of the control loop,
which increases the execution time of the control loop, but allows data
to be sent at a highier frequency using the small nxscope buffer.
Useful when tuning and debuging using RTT transfer.
2023-10-19 01:24:07 +08:00
zhangyuan21
ef86a99093
ostest: Add smp function call test case
...
This is test case for PR#10934.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-10-18 22:20:48 +08:00
makejian
8c95ab94d3
crypto/mbedtls: Unified configuration with mbedtls default configuration
...
The configuration of Kconfig used by the nuttx before is not consistent with the mbedtls default configuration. This patch update configuration is consistent with the default configuration.
Signed-off-by: makejian <makejian@xiaomi.com>
2023-10-18 21:18:35 +08:00
makejian
9fa9c5b0a2
netutils/dhcpc: Add configuration check for getrandom
...
Calling getrandom depends on 'CONFIG_DEV_URANDOM' or 'CONFIG_DEV_RANDOM'
depends on patch https://github.com/apache/nuttx/pull/10925
Signed-off-by: makejian <makejian@xiaomi.com>
2023-10-18 19:47:48 +08:00
raiden00pl
f117860a16
industry/foc/ramp: fix acceleration in CCW direction and simplify code
2023-10-18 14:16:53 +08:00
raiden00pl
4652c5516d
examples/foc: rename SETPOINT_ADC_SCALE to SETPOINT_INTF_SCALE
...
SETPOINT_INTF_SCALE is more appropriate name because this definition is not only used for ADC scale
2023-10-18 14:15:47 +08:00
raiden00pl
de6a384668
examples/foc: add velocity PI controller
2023-10-18 14:15:12 +08:00
raiden00pl
9dde6983e6
examples/foc: add support for feedforward compensation
2023-10-17 22:45:26 +08:00
raiden00pl
c8a4abfcb2
examples/foc: remove align configuration checks
...
these are already done when you configure the align routine
2023-10-17 22:42:42 +08:00
raiden00pl
fd0da7d4df
examples/foc: open-loop needs initial phase alignment
2023-10-17 22:42:42 +08:00
raiden00pl
8e0819df04
examples/foc: add velocity observers
2023-10-17 22:42:42 +08:00
raiden00pl
9bcca69967
examples/foc: initialize motor phy
2023-10-17 22:42:42 +08:00
raiden00pl
9ee4daea43
examples/foc: configure active breake current
2023-10-17 14:24:58 +08:00
raiden00pl
6cf6a73fc0
industry/foc: add support for PMSM feedforward compensation
...
reference: https://electronics.stackexchange.com/questions/386246/field-oriented-control-feed-forward-term
2023-10-17 14:24:23 +08:00
raiden00pl
e8ff9ad005
foc/example/Kconfig: cosmetics
2023-10-17 14:23:42 +08:00