An example of importing Embedded Coder code into the mbed IDE. Currently doesn't connect IO to PWM, ADC, and Encoder, instead provides random inputs and measures execution time.
Dependencies: mbed-dsp mbed Nucleo_pmsmfoc
html/html/define.js@2:bbc155b0b886, 2014-11-25 (annotated)
- Committer:
- paulcox
- Date:
- Tue Nov 25 07:52:02 2014 +0000
- Revision:
- 2:bbc155b0b886
adding doc?
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
paulcox | 2:bbc155b0b886 | 1 | function CodeDefine() { |
paulcox | 2:bbc155b0b886 | 2 | this.def = new Array(); |
paulcox | 2:bbc155b0b886 | 3 | this.def["IsrOverrun"] = {file: "ert_main_c.html",line:19,type:"var"}; |
paulcox | 2:bbc155b0b886 | 4 | this.def["OverrunFlag"] = {file: "ert_main_c.html",line:20,type:"var"}; |
paulcox | 2:bbc155b0b886 | 5 | this.def["rt_OneStep"] = {file: "ert_main_c.html",line:21,type:"fcn"}; |
paulcox | 2:bbc155b0b886 | 6 | this.def["main"] = {file: "ert_main_c.html",line:63,type:"fcn"}; |
paulcox | 2:bbc155b0b886 | 7 | this.def["phase_currents"] = {file: "rtwdemo_pmsmfoc_c.html",line:36,type:"var"}; |
paulcox | 2:bbc155b0b886 | 8 | this.def["rotor_position"] = {file: "rtwdemo_pmsmfoc_c.html",line:37,type:"var"}; |
paulcox | 2:bbc155b0b886 | 9 | this.def["velocity_measured"] = {file: "rtwdemo_pmsmfoc_c.html",line:38,type:"var"}; |
paulcox | 2:bbc155b0b886 | 10 | this.def["d_current_error"] = {file: "rtwdemo_pmsmfoc_c.html",line:39,type:"var"}; |
paulcox | 2:bbc155b0b886 | 11 | this.def["q_current_command"] = {file: "rtwdemo_pmsmfoc_c.html",line:40,type:"var"}; |
paulcox | 2:bbc155b0b886 | 12 | this.def["q_current_measured"] = {file: "rtwdemo_pmsmfoc_c.html",line:41,type:"var"}; |
paulcox | 2:bbc155b0b886 | 13 | this.def["q_current_error"] = {file: "rtwdemo_pmsmfoc_c.html",line:42,type:"var"}; |
paulcox | 2:bbc155b0b886 | 14 | this.def["phase_voltages"] = {file: "rtwdemo_pmsmfoc_c.html",line:43,type:"var"}; |
paulcox | 2:bbc155b0b886 | 15 | this.def["velocity_error"] = {file: "rtwdemo_pmsmfoc_c.html",line:44,type:"var"}; |
paulcox | 2:bbc155b0b886 | 16 | this.def["controller_mode"] = {file: "rtwdemo_pmsmfoc_c.html",line:45,type:"var"}; |
paulcox | 2:bbc155b0b886 | 17 | this.def["ctrlParams"] = {file: "rtwdemo_pmsmfoc_c.html",line:48,type:"var"}; |
paulcox | 2:bbc155b0b886 | 18 | this.def["ConstP"] = {file: "rtwdemo_pmsmfoc_c.html",line:81,type:"var"}; |
paulcox | 2:bbc155b0b886 | 19 | this.def["DWork"] = {file: "rtwdemo_pmsmfoc_c.html",line:89,type:"var"}; |
paulcox | 2:bbc155b0b886 | 20 | this.def["M_"] = {file: "rtwdemo_pmsmfoc_c.html",line:92,type:"var"}; |
paulcox | 2:bbc155b0b886 | 21 | this.def["M"] = {file: "rtwdemo_pmsmfoc_c.html",line:93,type:"var"}; |
paulcox | 2:bbc155b0b886 | 22 | this.def["rate_scheduler"] = {file: "rtwdemo_pmsmfoc_c.html",line:103,type:"fcn"}; |
paulcox | 2:bbc155b0b886 | 23 | this.def["rt_roundf"] = {file: "rtwdemo_pmsmfoc_c.html",line:115,type:"fcn"}; |
paulcox | 2:bbc155b0b886 | 24 | this.def["rt_modf"] = {file: "rtwdemo_pmsmfoc_c.html",line:133,type:"fcn"}; |
paulcox | 2:bbc155b0b886 | 25 | this.def["Controller"] = {file: "rtwdemo_pmsmfoc_c.html",line:155,type:"fcn"}; |
paulcox | 2:bbc155b0b886 | 26 | this.def["Controller_Init"] = {file: "rtwdemo_pmsmfoc_c.html",line:1250,type:"fcn"}; |
paulcox | 2:bbc155b0b886 | 27 | this.def["RT_MODEL"] = {file: "rtwdemo_pmsmfoc_h.html",line:34,type:"type"}; |
paulcox | 2:bbc155b0b886 | 28 | this.def["EnumErrorType"] = {file: "rtwdemo_pmsmfoc_h.html",line:42,type:"type"}; |
paulcox | 2:bbc155b0b886 | 29 | this.def["EnumCommandType"] = {file: "rtwdemo_pmsmfoc_h.html",line:53,type:"type"}; |
paulcox | 2:bbc155b0b886 | 30 | this.def["EnumControllerMode"] = {file: "rtwdemo_pmsmfoc_h.html",line:66,type:"type"}; |
paulcox | 2:bbc155b0b886 | 31 | this.def["SENSORS_STRUCT"] = {file: "rtwdemo_pmsmfoc_h.html",line:77,type:"type"}; |
paulcox | 2:bbc155b0b886 | 32 | this.def["CTRLPARAMS_STRUCT"] = {file: "rtwdemo_pmsmfoc_h.html",line:98,type:"type"}; |
paulcox | 2:bbc155b0b886 | 33 | this.def["D_Work"] = {file: "rtwdemo_pmsmfoc_h.html",line:132,type:"type"}; |
paulcox | 2:bbc155b0b886 | 34 | this.def["ConstParam"] = {file: "rtwdemo_pmsmfoc_h.html",line:140,type:"type"}; |
paulcox | 2:bbc155b0b886 | 35 | this.def["int8_T"] = {file: "rtwtypes_h.html",line:58,type:"type"}; |
paulcox | 2:bbc155b0b886 | 36 | this.def["uint8_T"] = {file: "rtwtypes_h.html",line:59,type:"type"}; |
paulcox | 2:bbc155b0b886 | 37 | this.def["int16_T"] = {file: "rtwtypes_h.html",line:60,type:"type"}; |
paulcox | 2:bbc155b0b886 | 38 | this.def["uint16_T"] = {file: "rtwtypes_h.html",line:61,type:"type"}; |
paulcox | 2:bbc155b0b886 | 39 | this.def["int32_T"] = {file: "rtwtypes_h.html",line:62,type:"type"}; |
paulcox | 2:bbc155b0b886 | 40 | this.def["uint32_T"] = {file: "rtwtypes_h.html",line:63,type:"type"}; |
paulcox | 2:bbc155b0b886 | 41 | this.def["real32_T"] = {file: "rtwtypes_h.html",line:64,type:"type"}; |
paulcox | 2:bbc155b0b886 | 42 | this.def["real64_T"] = {file: "rtwtypes_h.html",line:65,type:"type"}; |
paulcox | 2:bbc155b0b886 | 43 | this.def["real_T"] = {file: "rtwtypes_h.html",line:71,type:"type"}; |
paulcox | 2:bbc155b0b886 | 44 | this.def["time_T"] = {file: "rtwtypes_h.html",line:72,type:"type"}; |
paulcox | 2:bbc155b0b886 | 45 | this.def["boolean_T"] = {file: "rtwtypes_h.html",line:73,type:"type"}; |
paulcox | 2:bbc155b0b886 | 46 | this.def["int_T"] = {file: "rtwtypes_h.html",line:74,type:"type"}; |
paulcox | 2:bbc155b0b886 | 47 | this.def["uint_T"] = {file: "rtwtypes_h.html",line:75,type:"type"}; |
paulcox | 2:bbc155b0b886 | 48 | this.def["ulong_T"] = {file: "rtwtypes_h.html",line:76,type:"type"}; |
paulcox | 2:bbc155b0b886 | 49 | this.def["char_T"] = {file: "rtwtypes_h.html",line:77,type:"type"}; |
paulcox | 2:bbc155b0b886 | 50 | this.def["uchar_T"] = {file: "rtwtypes_h.html",line:78,type:"type"}; |
paulcox | 2:bbc155b0b886 | 51 | this.def["byte_T"] = {file: "rtwtypes_h.html",line:79,type:"type"}; |
paulcox | 2:bbc155b0b886 | 52 | this.def["int8_T"] = {file: "rtwtypes_h.html",line:89,type:"type"}; |
paulcox | 2:bbc155b0b886 | 53 | this.def["uint8_T"] = {file: "rtwtypes_h.html",line:90,type:"type"}; |
paulcox | 2:bbc155b0b886 | 54 | this.def["int16_T"] = {file: "rtwtypes_h.html",line:91,type:"type"}; |
paulcox | 2:bbc155b0b886 | 55 | this.def["uint16_T"] = {file: "rtwtypes_h.html",line:92,type:"type"}; |
paulcox | 2:bbc155b0b886 | 56 | this.def["int32_T"] = {file: "rtwtypes_h.html",line:93,type:"type"}; |
paulcox | 2:bbc155b0b886 | 57 | this.def["uint32_T"] = {file: "rtwtypes_h.html",line:94,type:"type"}; |
paulcox | 2:bbc155b0b886 | 58 | this.def["real32_T"] = {file: "rtwtypes_h.html",line:95,type:"type"}; |
paulcox | 2:bbc155b0b886 | 59 | this.def["real64_T"] = {file: "rtwtypes_h.html",line:96,type:"type"}; |
paulcox | 2:bbc155b0b886 | 60 | this.def["real_T"] = {file: "rtwtypes_h.html",line:102,type:"type"}; |
paulcox | 2:bbc155b0b886 | 61 | this.def["time_T"] = {file: "rtwtypes_h.html",line:103,type:"type"}; |
paulcox | 2:bbc155b0b886 | 62 | this.def["boolean_T"] = {file: "rtwtypes_h.html",line:104,type:"type"}; |
paulcox | 2:bbc155b0b886 | 63 | this.def["int_T"] = {file: "rtwtypes_h.html",line:105,type:"type"}; |
paulcox | 2:bbc155b0b886 | 64 | this.def["uint_T"] = {file: "rtwtypes_h.html",line:106,type:"type"}; |
paulcox | 2:bbc155b0b886 | 65 | this.def["ulong_T"] = {file: "rtwtypes_h.html",line:107,type:"type"}; |
paulcox | 2:bbc155b0b886 | 66 | this.def["char_T"] = {file: "rtwtypes_h.html",line:108,type:"type"}; |
paulcox | 2:bbc155b0b886 | 67 | this.def["uchar_T"] = {file: "rtwtypes_h.html",line:109,type:"type"}; |
paulcox | 2:bbc155b0b886 | 68 | this.def["byte_T"] = {file: "rtwtypes_h.html",line:110,type:"type"}; |
paulcox | 2:bbc155b0b886 | 69 | this.def["creal32_T"] = {file: "rtwtypes_h.html",line:122,type:"type"}; |
paulcox | 2:bbc155b0b886 | 70 | this.def["creal64_T"] = {file: "rtwtypes_h.html",line:127,type:"type"}; |
paulcox | 2:bbc155b0b886 | 71 | this.def["creal_T"] = {file: "rtwtypes_h.html",line:132,type:"type"}; |
paulcox | 2:bbc155b0b886 | 72 | this.def["cint8_T"] = {file: "rtwtypes_h.html",line:139,type:"type"}; |
paulcox | 2:bbc155b0b886 | 73 | this.def["cuint8_T"] = {file: "rtwtypes_h.html",line:146,type:"type"}; |
paulcox | 2:bbc155b0b886 | 74 | this.def["cint16_T"] = {file: "rtwtypes_h.html",line:153,type:"type"}; |
paulcox | 2:bbc155b0b886 | 75 | this.def["cuint16_T"] = {file: "rtwtypes_h.html",line:160,type:"type"}; |
paulcox | 2:bbc155b0b886 | 76 | this.def["cint32_T"] = {file: "rtwtypes_h.html",line:167,type:"type"}; |
paulcox | 2:bbc155b0b886 | 77 | this.def["cuint32_T"] = {file: "rtwtypes_h.html",line:174,type:"type"}; |
paulcox | 2:bbc155b0b886 | 78 | this.def["pointer_T"] = {file: "rtwtypes_h.html",line:195,type:"type"}; |
paulcox | 2:bbc155b0b886 | 79 | this.def["ZCDirection"] = {file: "rtwtypes_h.html",line:206,type:"type"}; |
paulcox | 2:bbc155b0b886 | 80 | this.def["ZCSigState"] = {file: "rtwtypes_h.html",line:209,type:"type"}; |
paulcox | 2:bbc155b0b886 | 81 | this.def["ZCEventType"] = {file: "rtwtypes_h.html",line:222,type:"type"}; |
paulcox | 2:bbc155b0b886 | 82 | } |
paulcox | 2:bbc155b0b886 | 83 | CodeDefine.instance = new CodeDefine(); |
paulcox | 2:bbc155b0b886 | 84 | function Html2SrcLink() { |
paulcox | 2:bbc155b0b886 | 85 | this.html2SrcPath = new Array; |
paulcox | 2:bbc155b0b886 | 86 | this.html2Root = new Array; |
paulcox | 2:bbc155b0b886 | 87 | this.html2SrcPath["ert_main_c.html"] = "../ert_main.c"; |
paulcox | 2:bbc155b0b886 | 88 | this.html2Root["ert_main_c.html"] = "ert_main_c.html"; |
paulcox | 2:bbc155b0b886 | 89 | this.html2SrcPath["rtwdemo_pmsmfoc_c.html"] = "../rtwdemo_pmsmfoc.c"; |
paulcox | 2:bbc155b0b886 | 90 | this.html2Root["rtwdemo_pmsmfoc_c.html"] = "rtwdemo_pmsmfoc_c.html"; |
paulcox | 2:bbc155b0b886 | 91 | this.html2SrcPath["rtwdemo_pmsmfoc_h.html"] = "../rtwdemo_pmsmfoc.h"; |
paulcox | 2:bbc155b0b886 | 92 | this.html2Root["rtwdemo_pmsmfoc_h.html"] = "rtwdemo_pmsmfoc_h.html"; |
paulcox | 2:bbc155b0b886 | 93 | this.html2SrcPath["rtwtypes_h.html"] = "../rtwtypes.h"; |
paulcox | 2:bbc155b0b886 | 94 | this.html2Root["rtwtypes_h.html"] = "rtwtypes_h.html"; |
paulcox | 2:bbc155b0b886 | 95 | this.html2SrcPath["MW_target_hardware_resources_h.html"] = "../MW_target_hardware_resources.h"; |
paulcox | 2:bbc155b0b886 | 96 | this.html2Root["MW_target_hardware_resources_h.html"] = "MW_target_hardware_resources_h.html"; |
paulcox | 2:bbc155b0b886 | 97 | this.html2SrcPath["mw_cmsis_h.html"] = "../mw_cmsis.h"; |
paulcox | 2:bbc155b0b886 | 98 | this.html2Root["mw_cmsis_h.html"] = "mw_cmsis_h.html"; |
paulcox | 2:bbc155b0b886 | 99 | this.getLink2Src = function (htmlFileName) { |
paulcox | 2:bbc155b0b886 | 100 | if (this.html2SrcPath[htmlFileName]) |
paulcox | 2:bbc155b0b886 | 101 | return this.html2SrcPath[htmlFileName]; |
paulcox | 2:bbc155b0b886 | 102 | else |
paulcox | 2:bbc155b0b886 | 103 | return null; |
paulcox | 2:bbc155b0b886 | 104 | } |
paulcox | 2:bbc155b0b886 | 105 | this.getLinkFromRoot = function (htmlFileName) { |
paulcox | 2:bbc155b0b886 | 106 | if (this.html2Root[htmlFileName]) |
paulcox | 2:bbc155b0b886 | 107 | return this.html2Root[htmlFileName]; |
paulcox | 2:bbc155b0b886 | 108 | else |
paulcox | 2:bbc155b0b886 | 109 | return null; |
paulcox | 2:bbc155b0b886 | 110 | } |
paulcox | 2:bbc155b0b886 | 111 | } |
paulcox | 2:bbc155b0b886 | 112 | Html2SrcLink.instance = new Html2SrcLink(); |
paulcox | 2:bbc155b0b886 | 113 | var fileList = [ |
paulcox | 2:bbc155b0b886 | 114 | "ert_main_c.html","rtwdemo_pmsmfoc_c.html","rtwdemo_pmsmfoc_h.html","rtwtypes_h.html","MW_target_hardware_resources_h.html","mw_cmsis_h.html"]; |