2021-03-29 18:18:07 +08:00
|
|
|
menuconfig MOTOR_FOC
|
2021-12-14 15:52:49 +08:00
|
|
|
bool "FOC (Field Oriented Controller) driver support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enables building of the "upper-half" FOC driver.
|
2021-03-29 18:18:07 +08:00
|
|
|
|
|
|
|
if MOTOR_FOC
|
|
|
|
|
|
|
|
config MOTOR_FOC_INST
|
2021-12-14 15:52:49 +08:00
|
|
|
int "FOC instances"
|
|
|
|
default 1
|
2021-03-29 18:18:07 +08:00
|
|
|
|
|
|
|
config MOTOR_FOC_PHASES
|
2021-12-14 15:52:49 +08:00
|
|
|
int "FOC phases number"
|
|
|
|
default 3
|
2021-03-29 18:18:07 +08:00
|
|
|
|
|
|
|
config MOTOR_FOC_SHUNTS
|
2021-12-14 15:52:49 +08:00
|
|
|
int "FOC number of shunts"
|
|
|
|
range 1 3
|
|
|
|
default 3
|
|
|
|
---help---
|
|
|
|
Number of shunts supported (or other types of current sensors).
|
|
|
|
Any current reconstruction must be done on the lower-half side.
|
2021-03-29 18:18:07 +08:00
|
|
|
|
2023-01-15 21:41:02 +08:00
|
|
|
config MOTOR_FOC_BEMF_SENSE
|
|
|
|
bool "FOC support for Back-EMF sensing"
|
|
|
|
default n
|
|
|
|
|
2021-03-29 18:18:07 +08:00
|
|
|
config MOTOR_FOC_TRACE
|
2021-12-14 15:52:49 +08:00
|
|
|
bool "FOC trace support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enables FOC driver trace interface.
|
2021-03-29 18:18:07 +08:00
|
|
|
|
2022-01-06 16:19:25 +08:00
|
|
|
config MOTOR_FOC_DUMMY
|
|
|
|
bool "Simulated FOC device"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Build a simulated lower-half FOC device
|
|
|
|
|
2023-11-07 20:41:55 +08:00
|
|
|
config MOTOR_FOC_FOCPWR
|
|
|
|
bool
|
|
|
|
|
2023-11-07 20:38:50 +08:00
|
|
|
config MOTOR_FOC_DRV8301
|
|
|
|
bool "DRV8301 Three-Phase Gate Driver"
|
|
|
|
default n
|
|
|
|
select MOTOR_FOC_FOCPWR
|
|
|
|
---help---
|
|
|
|
Enables FOC power-stage DRV8301 driver.
|
|
|
|
|
2021-03-29 18:18:07 +08:00
|
|
|
endif #MOTOR_FOC
|