| 1 | /* |
| 2 | * PMSM_Motor_TL3_sf_private.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 | |
| 21 | #ifndef RTW_HEADER_PMSM_Motor_TL3_sf_private_h_ |
| 22 | #define RTW_HEADER_PMSM_Motor_TL3_sf_private_h_ |
| 23 | #include "rtwtypes.h" |
| 24 | #include "multiword_types.h" |
| 25 | #include <math.h> |
| 26 | #include <stdlib.h> |
| 27 | #if !defined(ss_VALIDATE_MEMORY) |
| 28 | #define ss_VALIDATE_MEMORY(S, ptr) if(!(ptr)) {\ |
| 29 | ssSetErrorStatus(S, RT_MEMORY_ALLOCATION_ERROR);\ |
| 30 | } |
| 31 | #endif |
| 32 | |
| 33 | #if !defined(rt_FREE) |
| 34 | #if !defined(_WIN32) |
| 35 | #define rt_FREE(ptr) if((ptr) != (NULL)) {\ |
| 36 | free((ptr));\ |
| 37 | (ptr) = (NULL);\ |
| 38 | } |
| 39 | #else |
| 40 | |
| 41 | /* Visual and other windows compilers declare free without const */ |
| 42 | #define rt_FREE(ptr) if((ptr) != (NULL)) {\ |
| 43 | free((void *)(ptr));\ |
| 44 | (ptr) = (NULL);\ |
| 45 | } |
| 46 | #endif |
| 47 | #endif |
| 48 | |
| 49 | #ifndef CodeFormat |
| 50 | #define CodeFormat S-Function |
| 51 | #else |
| 52 | #undef CodeFormat |
| 53 | #define CodeFormat S-Function |
| 54 | #endif |
| 55 | |
| 56 | #ifndef S_FUNCTION_NAME |
| 57 | #define S_FUNCTION_NAME simulink_only_sfcn |
| 58 | #else |
| 59 | #undef S_FUNCTION_NAME |
| 60 | #define S_FUNCTION_NAME simulink_only_sfcn |
| 61 | #endif |
| 62 | |
| 63 | #ifndef S_FUNCTION_LEVEL |
| 64 | #define S_FUNCTION_LEVEL 2 |
| 65 | #else |
| 66 | #undef S_FUNCTION_LEVEL |
| 67 | #define S_FUNCTION_LEVEL 2 |
| 68 | #endif |
| 69 | |
| 70 | #ifndef RTW_GENERATED_S_FUNCTION |
| 71 | #define RTW_GENERATED_S_FUNCTION |
| 72 | #endif |
| 73 | |
| 74 | #ifndef rtmGetDataMapInfo |
| 75 | # define rtmGetDataMapInfo(rtm) NULL |
| 76 | #endif |
| 77 | |
| 78 | #ifndef rtmSetDataMapInfo |
| 79 | # define rtmSetDataMapInfo(rtm, val) |
| 80 | #endif |
| 81 | |
| 82 | #if !defined(RTW_SFUNCTION_DEFINES) |
| 83 | #define RTW_SFUNCTION_DEFINES |
| 84 | #ifndef _RTW_COMMON_DEFINES_ |
| 85 | #define _RTW_COMMON_DEFINES_ |
| 86 | #endif |
| 87 | #endif |
| 88 | #endif /* RTW_HEADER_PMSM_Motor_TL3_sf_private_h_ */ |
| 89 |