1 | /* |
2 | * File: Blinky.h |
3 | * |
4 | * Code generated for Simulink model 'Blinky'. |
5 | * |
6 | * Model version : 1.145 |
7 | * Simulink Coder version : 9.3 (R2020a) 18-Nov-2019 |
8 | * MBDT for IMXRT Series Version : Version 1.3.0 (R2019a-R2021b) 18-Apr-2022 |
9 | * C/C++ source code generated on : Sat Nov 26 13:09:17 2022 |
10 | * |
11 | * Target selection: ert.tlc |
12 | * Embedded hardware selection: ARM Compatible->ARM Cortex |
13 | * Code generation objective: Execution efficiency |
14 | * Validation result: All passed |
15 | */ |
16 | |
17 | #ifndef RTW_HEADER_Blinky_h_ |
18 | #define RTW_HEADER_Blinky_h_ |
19 | #ifndef Blinky_COMMON_INCLUDES_ |
20 | # define Blinky_COMMON_INCLUDES_ |
21 | #include "rtwtypes.h" |
22 | #include "zero_crossing_types.h" |
23 | #include "fsl_lpuart.h" |
24 | #include "fsl_lpuart_edma.h" |
25 | #include "fsl_gpio.h" |
26 | #include "freemaster.h" |
27 | #include "freemaster_serial_lpuart.h" |
28 | #include "board.h" |
29 | #endif /* Blinky_COMMON_INCLUDES_ */ |
30 | |
31 | #include "Blinky_types.h" |
32 | #include "MW_target_hardware_resources.h" |
33 | |
34 | /* Macros for accessing real-time model data structure */ |
35 | |
36 | /* Block signals and states (default storage) for system '<Root>' */ |
37 | typedef struct { |
38 | uint8_T is_active_c3_Blinky; /* '<Root>/Chart' */ |
39 | uint8_T is_c3_Blinky; /* '<Root>/Chart' */ |
40 | boolean_T DataTypeConversion; /* '<Root>/Data Type Conversion' */ |
41 | } DW_Blinky_T; |
42 | |
43 | /* Zero-crossing (trigger) state */ |
44 | typedef struct { |
45 | ZCSigState FunctionCallSubsystem_Trig_ZCE;/* '<Root>/Function-Call Subsystem' */ |
46 | } PrevZCX_Blinky_T; |
47 | |
48 | /* Constant parameters (default storage) */ |
49 | typedef struct { |
50 | /* Expression: [uint8('Hello World, button pressed!'), 13, 10] |
51 | * Referenced by: '<S2>/Constant1' |
52 | */ |
53 | uint8_T Constant1_Value[30]; |
54 | } ConstP_Blinky_T; |
55 | |
56 | /* External outputs (root outports fed by signals with default storage) */ |
57 | typedef struct { |
58 | boolean_T Button; /* '<Root>/Button' */ |
59 | uint8_T LED; /* '<Root>/LED' */ |
60 | } ExtY_Blinky_T; |
61 | |
62 | /* Block signals and states (default storage) */ |
63 | extern DW_Blinky_T Blinky_DW; |
64 | |
65 | /* Zero-crossing (trigger) state */ |
66 | extern PrevZCX_Blinky_T Blinky_PrevZCX; |
67 | |
68 | /* External outputs (root outports fed by signals with default storage) */ |
69 | extern ExtY_Blinky_T Blinky_Y; |
70 | |
71 | /* Constant parameters (default storage) */ |
72 | extern const ConstP_Blinky_T Blinky_ConstP; |
73 | |
74 | /* Model entry point functions */ |
75 | extern void Blinky_initialize(void); |
76 | extern void Blinky_step(void); |
77 | extern void Blinky_terminate(void); |
78 | |
79 | /*- |
80 | * The generated code includes comments that allow you to trace directly |
81 | * back to the appropriate location in the model. The basic format |
82 | * is <system>/block_name, where system is the system number (uniquely |
83 | * assigned by Simulink) and block_name is the name of the block. |
84 | * |
85 | * Use the MATLAB hilite_system command to trace the generated code back |
86 | * to the model. For example, |
87 | * |
88 | * hilite_system('<S3>') - opens system 3 |
89 | * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3 |
90 | * |
91 | * Here is the system hierarchy for this model |
92 | * |
93 | * '<Root>' : 'Blinky' |
94 | * '<S1>' : 'Blinky/Chart' |
95 | * '<S2>' : 'Blinky/Function-Call Subsystem' |
96 | */ |
97 | #endif /* RTW_HEADER_Blinky_h_ */ |
98 | |
99 | /* |
100 | * File trailer for generated code. |
101 | * |
102 | * [EOF] |
103 | */ |
104 |