nuttx-apps/examples/foc
hujun5 8aa48c4fb6 examples: foc: Add critical section protection to FOC control loop
Introduce CONFIG_EXAMPLES_FOC_CONTROL_CRITSEC configuration option to enable
critical section protection in the FOC (Field-Oriented Control) motor control
examples. This adds irq-safe critical sections around the main control loop
processing to prevent race conditions and ensure atomic updates of motor
control state and parameters during interrupt handling.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-01-27 20:48:04 +08:00
..
CMakeLists.txt examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_adc.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_cfg.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_debug.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_device.c examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_device.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_fixed16_thr.c examples: foc: Add critical section protection to FOC control loop 2026-01-27 20:48:04 +08:00
foc_float_thr.c examples: foc: Add critical section protection to FOC control loop 2026-01-27 20:48:04 +08:00
foc_intf.c examples: unify Private Types banners 2025-05-28 10:16:50 +08:00
foc_intf.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_main.c examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_motor_b16.c examples: unify Private Types banners 2025-05-28 10:16:50 +08:00
foc_motor_b16.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_motor_f32.c examples: unify Private Types banners 2025-05-28 10:16:50 +08:00
foc_motor_f32.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_mq.c examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_mq.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_nxscope.c examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_nxscope.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_parseargs.c examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_parseargs.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_perf.c examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_perf.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_thr.c examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
foc_thr.h examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Kconfig examples/foc: protect control loop with critical section 2024-10-18 10:43:46 +08:00
Make.defs examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile examples: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00