| 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 | |
| 18 | #ifndef RTW_HEADER_rt_defines_h_ |
| 19 | #define RTW_HEADER_rt_defines_h_ |
| 20 | |
| 21 | /*===========* |
| 22 | * Constants * |
| 23 | *===========*/ |
| 24 | #define RT_PI 3.14159265358979323846 |
| 25 | #define RT_PIF 3.1415927F |
| 26 | #define RT_LN_10 2.30258509299404568402 |
| 27 | #define RT_LN_10F 2.3025851F |
| 28 | #define RT_LOG10E 0.43429448190325182765 |
| 29 | #define RT_LOG10EF 0.43429449F |
| 30 | #define RT_E 2.7182818284590452354 |
| 31 | #define RT_EF 2.7182817F |
| 32 | |
| 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 | /* |
| 44 | * This is the semi-ANSI standard way of indicating that an |
| 45 | * unused function parameter is required. |
| 46 | */ |
| 47 | #define UNUSED_PARAMETER(x) (void) (x) |
| 48 | #endif |
| 49 | #endif |
| 50 | #endif /* RTW_HEADER_rt_defines_h_ */ |
| 51 | |
| 52 | /* |
| 53 | * File trailer for generated code. |
| 54 | * |
| 55 | * [EOF] |
| 56 | */ |
| 57 | |