rt_defines.h 1.6 KB

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