SPRUJH1 August 2025 F29H850TU
Once imported into Code Composer Studio, the Servo Drive with QEP project has the folder structure described in Table 2-4.
| Folder | Includes |
|---|---|
| README.html | Overview of the project. Links to the SDK documentation. |
| sys_main.c | main() function and background loop |
| sys_main.h | #include of other header files, definition of SYSTEM_Vars_t |
| sys_settings.h | #define DMC_BUILDLEVEL DMC_LEVEL_x. This define
determines what control functionality is used: open loop, closed
current loop, closed current + speed loop. |
| libraries/ | Typical FOC modules including Park, Clark, and inverse Park and Clark transforms. Support for incremental encoder, datalog and the DAC EVM. |
| src_board/ | Device specific drivers to run the servo drive. To migrate the project to another board, changes can be made primarily to: <board>.syscfg, hal.c, hal.h, and user_mtr1.h. |
| src_control/ | Motor drive control files that call the motor control core algorithm functions within the interrupt service routines and background tasks. motor1_drive.c includes the motor1CtrlISR(). |
| src_device/ | Device specific startup file, driver library, linker command file. |