mc_config.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**
  2. ******************************************************************************
  3. * @file mc_config.h
  4. * @author Motor Control SDK Team, ST Microelectronics
  5. * @brief Motor Control Subsystem components configuration and handler
  6. * structures declarations.
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software component is licensed by ST under Ultimate Liberty license
  14. * SLA0044, the "License"; You may not use this file except in compliance with
  15. * the License. You may obtain a copy of the License at:
  16. * www.st.com/SLA0044
  17. *
  18. ******************************************************************************
  19. */
  20. #ifndef __MC_CONFIG_H
  21. #define __MC_CONFIG_H
  22. #include "pid_regulator.h"
  23. #include "revup_ctrl.h"
  24. #include "speed_torq_ctrl.h"
  25. #include "virtual_speed_sensor.h"
  26. #include "ntc_temperature_sensor.h"
  27. #include "pwm_curr_fdbk.h"
  28. #include "r_divider_bus_voltage_sensor.h"
  29. #include "virtual_bus_voltage_sensor.h"
  30. #include "pqd_motor_power_measurement.h"
  31. #include "user_interface.h"
  32. #include "motor_control_protocol.h"
  33. #include "usart_frame_communication_protocol.h"
  34. #include "r3_2_f1xx_pwm_curr_fdbk.h"
  35. #include "hall_speed_pos_fdbk.h"
  36. #include "ramp_ext_mngr.h"
  37. #include "circle_limitation.h"
  38. /* USER CODE BEGIN Additional include */
  39. /* USER CODE END Additional include */
  40. extern PID_Handle_t PIDSpeedHandle_M1;
  41. extern PID_Handle_t PIDIqHandle_M1;
  42. extern PID_Handle_t PIDIdHandle_M1;
  43. extern NTC_Handle_t TempSensorParamsM1;
  44. extern PWMC_R3_2_Handle_t PWM_Handle_M1;
  45. extern SpeednTorqCtrl_Handle_t SpeednTorqCtrlM1;
  46. extern PQD_MotorPowMeas_Handle_t PQD_MotorPowMeasM1;
  47. extern PQD_MotorPowMeas_Handle_t *pPQD_MotorPowMeasM1;
  48. extern HALL_Handle_t HALL_M1;
  49. extern RDivider_Handle_t RealBusVoltageSensorParamsM1;
  50. extern CircleLimitation_Handle_t CircleLimitationM1;
  51. extern RampExtMngr_Handle_t RampExtMngrHFParamsM1;
  52. extern UI_Handle_t UI_Params;
  53. extern UFCP_Handle_t pUSART;
  54. /* USER CODE BEGIN Additional extern */
  55. /* USER CODE END Additional extern */
  56. #define NBR_OF_MOTORS 1
  57. #endif /* __MC_CONFIG_H */
  58. /******************* (C) COPYRIGHT 2019 STMicroelectronics *****END OF FILE****/