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

Dependents:   Nucleo_pmsmfoc

html/html/MW_target_hardware_resources_h.html

Committer:
paulcox
Date:
2014-11-25
Revision:
2:bbc155b0b886

File content as of revision 2:bbc155b0b886:

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="./js/coder_app.js"></script>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="./rtwreport_utils.js"></script>
<script type="text/javascript" src="./rtwannotate.js"></script>
<link rel="stylesheet" type="text/css" href="./css/coder_app.css"/>
</head>
<body onload="srcFileOnload();">
<pre id="code">
<table class="code" id="codeTbl">
<tr name="1" id="1">
<td>1</td><td><span class="pp">#ifdef</span> <a id="1c8" class="tk">__MW_TARGET_USE_HARDWARE_RESOURCES_H__</a></td></tr>
<tr name="2" id="2">
<td>2</td><td><span class="pp">#ifndef</span> <a id="2c9" class="tk">__MW_TARGET_HARDWARE_RESOURCES_H__</a></td></tr>
<tr name="3" id="3">
<td>3</td><td><span class="pp">#define</span> <a id="3c9" class="tk">__MW_TARGET_HARDWARE_RESOURCES_H__</a></td></tr>
<tr name="4" id="4">
<td>4</td><td></td></tr>
<tr name="5" id="5">
<td>5</td><td><span class="pp">#include "SysTickScheduler.h"</span></td></tr>
<tr name="6" id="6">
<td>6</td><td><span class="pp">#include "arm_cortex_m_multitasking.h"</span></td></tr>
<tr name="7" id="7">
<td>7</td><td><span class="pp">#include "stm32f4xx.h"</span></td></tr>
<tr name="8" id="8">
<td>8</td><td></td></tr>
<tr name="9" id="9">
<td>9</td><td><span class="pp">#define</span> <a id="9c9" class="tk">MW_USECODERTARGET</a> 1.000000</td></tr>
<tr name="10" id="10">
<td>10</td><td><span class="pp">#define</span> <a id="10c9" class="tk">MW_TARGETHARDWARE</a> <a id="10c27" class="tk">STM32_Nucleo</a></td></tr>
<tr name="11" id="11">
<td>11</td><td><span class="pp">#define</span> <a id="11c9" class="tk">MW_SCHEDULER_INTERRUPT_SOURCE</a> 0</td></tr>
<tr name="12" id="12">
<td>12</td><td><span class="pp">#define</span> <a id="12c9" class="tk">MW_RUNTIME_BUILDACTION</a> 0</td></tr>
<tr name="13" id="13">
<td>13</td><td><span class="pp">#define</span> <a id="13c9" class="tk">MW_CLOCKING_CPUCLOCKRATEMHZ</a> 48</td></tr>
<tr name="14" id="14">
<td>14</td><td><span class="pp">#define</span> <a id="14c9" class="tk">MW_MULTI_TASKING_MODE</a> 0</td></tr>
<tr name="15" id="15">
<td>15</td><td></td></tr>
<tr name="16" id="16">
<td>16</td><td><span class="pp">#endif</span> <span class="ct">/* __MW_TARGET_HARDWARE_RESOURCES_H__ */</span></td></tr>
<tr name="17" id="17">
<td>17</td><td></td></tr>
<tr name="18" id="18">
<td>18</td><td><span class="pp">#endif</span></td></tr>
<tr name="19" id="19">
<td>19</td><td></td></tr>
</table>
</pre>
</body>
</html>