nuttx-apps/examples
raiden00pl a7024aea89 examples/foc: protect control loop with critical section
If the controller frequency is high, system timer interrupts will
eventually interrupt the controller function, thereby increasing the
execution time. This may lead to skipping the control cycle, which
negatively affects the control algorithm.

With this option enabled, interrupts are disabled for the duration
of the controller function execution.

Here example results from CONFIG_EXAMPLES_FOC_PERF output
for b-g431b-esc1 board with CONFIG_EXAMPLES_FOC_NOTIFIER_FREQ=10000:

1. CONFIG_EXAMPLES_FOC_CONTROL_CRITSEC=n

  exec ticks=5258
    nsec=30929
  per ticks=21268
    nsec=125105

2. CONFIG_EXAMPLES_FOC_CONTROL_CRITSEC=y

  exec ticks=3428
    nsec=20164
  per ticks=19203
    nsec=112958

The difference is ~12us!
2024-10-18 10:43:46 +08:00
..
abntcodi fix nxstyle 2024-05-11 01:20:08 +08:00
adc cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
adjtime fix nxstyle 2024-04-30 00:02:31 +08:00
adxl372_test Change all sizeof(arr)/sizeof(arr[0]) to nitems 2023-08-17 22:51:51 +03:00
ajoystick cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
alarm cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
amg88xx examples/amg88xx: add example for amg88xx driver 2024-09-09 19:45:44 +08:00
apa102 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
apds9960 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
audio_rttl examples: Remove unnecessary descriptions from Makefile 2024-06-28 20:17:13 +08:00
bastest remove examples/xxx/README.md. Migrated to Documentation/applications/examples 2023-10-30 10:00:01 +08:00
battery cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
bme680 examples/bme680: Added test program for the BME680 sensor 2023-08-18 23:00:32 +08:00
bmi160 examples/bmi160:bmi160 add urob mode example. 2024-10-12 10:34:22 +08:00
bmp180 examples/bmp180: remove references to bmp280 which already has its own example 2023-10-23 22:26:13 +08:00
bmp280 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
bridge net/ip: print ip addresses using ip4_addrN macro 2023-08-22 01:36:42 +08:00
buttons cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
calib_udelay examples/calib_udelay: Allow the number of delay loop iterations to be specified by kconfig. 2023-10-24 12:38:45 +08:00
camera examples/camera: Fix wrong device file path 2024-07-28 15:52:26 +08:00
can example/can: replace field ch_unused with ch_tcf 2024-10-02 21:22:14 +08:00
capture apps/examples: Add test of edges counting at capture 2024-08-26 01:29:08 +08:00
cbortest cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
cctype cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
charger examples: Remove unnecessary descriptions from Makefile 2024-06-28 20:17:13 +08:00
chat cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
chrono cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
configdata Fix Error: configdata_main.c:402:14: error: variable 'iteration' set but not used [-Werror,-Wunused-but-set-variable] 2023-09-12 10:10:16 +08:00
cordic cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
cpuhog cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
cromfs cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
dac examples/dac: Add test mode 2024-02-26 17:38:51 -03:00
dhcpd apps/dhcpd: fix dhcpd set dip error 2024-09-12 01:11:30 +08:00
dhtxx cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
discover cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
djoystick cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
dronecan cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
elf style: fix indentation issues 2024-10-04 08:17:51 +08:00
embedlog examples/embedlog: update example for embedlog-v0.7.0 2024-03-03 12:03:54 +08:00
esp32_himem cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
etl cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
fb fb_main: fix draw_rect24 2024-09-28 10:51:34 +08:00
fboverlay cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
flash_test remove examples/xxx/README.md. Migrated to Documentation/applications/examples 2023-10-30 10:00:01 +08:00
flowc Minor code style fixes 2024-09-15 02:27:41 +08:00
fmsynth examples/fmsynth: Fix freaze when execute it in 2nd time 2024-02-28 15:30:26 +08:00
foc examples/foc: protect control loop with critical section 2024-10-18 10:43:46 +08:00
ft80x Fix some coding style issue 2023-08-17 22:51:51 +03:00
ftpc system/readline: correct the readline(3) prototype 2023-10-16 22:04:18 +08:00
ftpd Revert "fix progname do not match issue" 2023-10-10 01:02:50 +08:00
fxos8700cq_test examples: Remove unnecessary descriptions from Makefile 2024-06-28 20:17:13 +08:00
gpio gpio:add example for wakeup gpio type 2024-09-30 18:31:03 +08:00
gps examples/gps: Add default case for switch-warning of vendor extended sentence 2024-09-19 22:11:39 +08:00
hall cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
hdc1008_demo fix nxstyle 2024-05-11 01:20:08 +08:00
hello examples: Split hello example into hello and hello_wasm 2023-10-08 14:53:08 +08:00
hello_d Zig & D examples clean & refactor 2024-08-26 10:22:16 +08:00
hello_nim examples/hello_nim: Fix nimcache location 2024-01-02 09:52:54 -08:00
hello_rust apps/examples/hello_rust/Makefile: Add -O flag 2024-03-21 22:45:33 +08:00
hello_swift hello_swift added 2024-08-23 09:04:31 +08:00
hello_wasm tools: New CMake based Wasm build system 2024-03-15 11:15:25 -03:00
hello_zig Zig & D examples clean & refactor 2024-08-26 10:22:16 +08:00
helloxx cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
hidkbd cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
hts221_reader cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
hx711 examples/hx711: add new program to test hx711 chip 2024-03-02 12:34:39 +08:00
i2schar cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
i2sloop cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
igmp cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
ina219 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
ina226 Fixes compiler warnings while printing uint32_t and int32_t values. 2023-09-22 09:14:20 +08:00
ini_dumper cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
ipcfg cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
ipforward apps/ipforward: fix ci check failure 2024-09-12 13:38:38 +08:00
isl29023 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
json remove examples/xxx/README.md. Migrated to Documentation/applications/examples 2023-10-30 10:00:01 +08:00
keyboard apps/examples:Add keyboard example 2023-08-26 17:02:48 +08:00
leds cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
leds_rust examples/leds_rust: Add Rust App for blinking the LED 2024-08-06 00:26:44 +08:00
leds_zig Zig & D examples clean & refactor 2024-08-26 10:22:16 +08:00
libtest libtest: add PRIVATE to CMakeLists.txt 2023-11-21 08:05:02 -08:00
lis3dsh_reader cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
lp503x /examples/lp503x: Removed the execute permissions. 2024-05-09 23:47:14 +08:00
lsm6dsl_reader cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
lsm303_reader cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
lsm330spi_test Change all sizeof(arr)/sizeof(arr[0]) to nitems 2023-08-17 22:51:51 +03:00
ltr308 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
lua_module cmake:implement CMake build for NuttX Lua interpreter 2024-09-13 12:31:10 +08:00
lvgldemo lvgldemo: fix uninit_use_in_call 2024-08-20 02:49:34 +08:00
lvglterm examples/lvglterm: upgrade to lvgl v9 2024-04-29 10:04:34 +08:00
max31855 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
mcuboot remove examples/xxx/README.md. Migrated to Documentation/applications/examples 2023-10-30 10:00:01 +08:00
media cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
mld netlib/setroute: fix dhcpd stack-overflow when calls netlib_set_dripv4addr with debug info-level 2024-08-26 01:54:46 +08:00
mlx90614 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
mml_parser cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
modbus examples/modbus: Fix modbus example to keep running 2023-12-04 06:52:14 -08:00
modbusmaster modbus_master: fix modbus master example 2024-02-17 05:01:18 -08:00
module sotest & chardev:change elf loading method 2024-10-16 07:38:06 +08:00
mount add initial cmake build system 2023-07-08 13:52:02 +08:00
mqttc examples/mqttc: Add QOS argument option 2024-04-20 22:10:50 -03:00
mtdpart cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
mtdrwb cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
netlink_route [app][netlink_route] fix get route netlink bugs 2024-05-14 22:06:47 +08:00
netloop enable SOCK_CLOEXEC explicit 2024-09-26 16:13:29 +08:00
netpkt cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
nettest fix build error: 2024-10-05 09:06:43 +08:00
nimble examples/nimble: fix example after update to latest master 2024-08-30 21:29:25 +08:00
nng_test cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
noteprintf noteprintf: fix compile warnings 2024-10-11 18:30:33 +08:00
nrf24l01_btle Remove @ tag from all comments 2024-01-04 10:26:49 +01:00
nrf24l01_term system/readline: correct the readline(3) prototype 2023-10-16 22:04:18 +08:00
null cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
nunchuck cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
nx cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
nxdemo Fix nuttx coding style 2024-04-18 09:56:48 +08:00
nxflat style: fix indentation issues 2024-10-04 08:17:51 +08:00
nxhello Minor code style fixes 2024-09-15 02:27:41 +08:00
nximage Fix nuttx coding style 2024-04-18 09:56:48 +08:00
nxlines Fix nuttx coding style 2024-04-18 09:56:48 +08:00
nxscope examples/nxscope: add static to private functions 2024-05-23 11:50:08 +08:00
nxterm cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
nxtext cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
obd2 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
oneshot apps: Fix compilation error after nuttx/arch.h excluded. 2024-10-16 07:12:40 +08:00
opencyphal can: Merge netpacket/can.h into nuttx/can.h 2024-08-26 05:05:41 -04:00
pca9635 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
pdcurses Fix nuttx coding style 2024-04-18 09:56:48 +08:00
pf_ieee802154 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
pipe examples/pipe: Enhance test by different r/w thread priority 2024-10-11 18:20:29 +08:00
poll enable SOCK_CLOEXEC explicit 2024-09-26 16:13:29 +08:00
popen cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
posix_spawn Remove the const cast from the initialization of boardioc_symtab_s::symtab 2023-07-08 16:01:52 +03:00
powerled cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
powermonitor cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
pppd cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
pty_test cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
pwfb cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
pwlines cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
pwm cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
qencoder examples/qencoder: obtain samples using the QEIOC_GETINDEX ioctl call 2024-07-29 22:28:56 +08:00
random cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
relays cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
rfid_readuid cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
rgbled cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
rmtchar examples/rmtchar: Increase initial duration time 2024-02-14 10:53:40 -05:00
romfs cmake:add romfs/unionfs/tcpblaster/udpblaster exmaple app CMake build 2024-10-09 20:15:49 +08:00
rpmsgsocket examples/rpsock: fix redefined warning 2024-10-16 07:16:07 +08:00
scd41 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
sendmail cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
sensor_fusion Makefile - library download and compilation ok 2023-10-19 19:18:28 -04:00
serialblaster cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
serialrx Update serialrx_main.c 2023-11-06 09:02:42 +08:00
serloop cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
settings Add Settings Utility and example app 2024-03-03 02:36:56 +08:00
shm_test add shm example using fs shm 2023-10-06 17:24:44 +08:00
sht3x cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
slcd cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
smps cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
sotest examples/sotest: Correct the path in the log 2024-10-17 08:53:49 +08:00
stat cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
stepper examples/stepper: Fix typo inside for() loop 2024-06-30 13:29:01 +08:00
sx127x_demo cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
system Minor code style fixes 2024-09-15 02:27:41 +08:00
tcp_ipc_client remove examples/xxx/README.md. Migrated to Documentation/applications/examples 2023-10-30 10:00:01 +08:00
tcp_ipc_server enable SOCK_CLOEXEC explicit 2024-09-26 16:13:29 +08:00
tcpblaster cmake:add romfs/unionfs/tcpblaster/udpblaster exmaple app CMake build 2024-10-09 20:15:49 +08:00
tcpecho enable SOCK_CLOEXEC explicit 2024-09-26 16:13:29 +08:00
telnetd examples/telnetd: fix compile telnetd multi definition error 2024-08-21 17:08:07 +08:00
termios cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
thttpd examples/thttpd: Remove TCB_FLAG_CANCEL stuff 2023-11-11 11:22:24 +08:00
tiff Fix nuttx coding style 2024-04-18 09:56:48 +08:00
timer cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
timer_gpio cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
touchscreen cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
udgram Replace strlen with sizeof for kconfig string 2023-09-02 16:26:51 +03:00
udp net/ip: print ip addresses using ip4_addrN macro 2023-08-22 01:36:42 +08:00
udpblaster cmake:add romfs/unionfs/tcpblaster/udpblaster exmaple app CMake build 2024-10-09 20:15:49 +08:00
uid cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
unionfs cmake:add romfs/unionfs/tcpblaster/udpblaster exmaple app CMake build 2024-10-09 20:15:49 +08:00
usbserial usbserial: Add config for customize direction, message and wait time 2024-10-01 11:37:45 +08:00
userfs cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
usrsocktest examples: fix usrsocktest compiler warning 2024-10-13 10:35:20 +08:00
ustream enable SOCK_CLOEXEC explicit 2024-09-26 16:13:29 +08:00
veml6070 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
wamr_module examples: Add wamr_module 2024-09-28 15:47:40 +08:00
watchdog Fix nuttx coding style 2024-04-18 09:56:48 +08:00
watched cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
watcher cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
webserver add initial cmake build system 2023-07-08 13:52:02 +08:00
wget cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
wgetjson cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
wiegand fix nxstyle 2024-04-30 00:02:31 +08:00
ws2812 cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
ws2812esp32rmt apps: use sizeof array in snprintf 2024-10-02 10:40:05 +02:00
xbc_test cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
xmlrpc enable SOCK_CLOEXEC explicit 2024-09-26 16:13:29 +08:00
zerocross cmake:refine cmake build for apps/examples 2023-08-17 01:15:17 +08:00
.gitignore Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
CMakeLists.txt add initial cmake build system 2023-07-08 13:52:02 +08:00
Make.defs Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
Makefile Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00