rt_defines.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. * rt_defines.h
  3. *
  4. * Code generation for model "PMSM_Motor_TL3_sf".
  5. *
  6. * Model version : 1.825
  7. * Simulink Coder version : 9.4 (R2020b) 29-Jul-2020
  8. * C source code generated on : Fri Apr 14 12:51:02 2023
  9. *
  10. * Target selection: rtwsfcn.tlc
  11. * Note: GRT includes extra infrastructure and instrumentation for prototyping
  12. * Embedded hardware selection: ARM Compatible->ARM Cortex-M
  13. * Emulation hardware selection:
  14. * Differs from embedded hardware (MATLAB Host)
  15. * Code generation objectives:
  16. * 1. Execution efficiency
  17. * 2. RAM efficiency
  18. * Validation result: Not run
  19. */
  20. #ifndef RTW_HEADER_rt_defines_h_
  21. #define RTW_HEADER_rt_defines_h_
  22. /*===========*
  23. * Constants *
  24. *===========*/
  25. #define RT_PI 3.14159265358979323846
  26. #define RT_PIF 3.1415927F
  27. #define RT_LN_10 2.30258509299404568402
  28. #define RT_LN_10F 2.3025851F
  29. #define RT_LOG10E 0.43429448190325182765
  30. #define RT_LOG10EF 0.43429449F
  31. #define RT_E 2.7182818284590452354
  32. #define RT_EF 2.7182817F
  33. /*
  34. * UNUSED_PARAMETER(x)
  35. * Used to specify that a function parameter (argument) is required but not
  36. * accessed by the function body.
  37. */
  38. #ifndef UNUSED_PARAMETER
  39. #if defined(__LCC__)
  40. #define UNUSED_PARAMETER(x) /* do nothing */
  41. #else
  42. /*
  43. * This is the semi-ANSI standard way of indicating that an
  44. * unused function parameter is required.
  45. */
  46. #define UNUSED_PARAMETER(x) (void) (x)
  47. #endif
  48. #endif
  49. #endif /* RTW_HEADER_rt_defines_h_ */