<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161715</link>
    <title>MATLAB Central Newsreader - Using custom code in the C2000 target</title>
    <description>Feed for thread: Using custom code in the C2000 target</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 08 Jan 2008 10:25:05 -0500</pubDate>
      <title>Using custom code in the C2000 target</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161715#408500</link>
      <author>Kevin </author>
      <description>Hello,&lt;br&gt;
&lt;br&gt;
I have to use the C2000 target for a project. I *think* I am&lt;br&gt;
getting used to the simpler blocks, but now I would like to&lt;br&gt;
re-use some code I wrote on CCS before. This code should be&lt;br&gt;
called on a timer interrupt.&lt;br&gt;
How exactly can I do it? I've read that you can do it in&lt;br&gt;
Real Time Workshop, but I am still new to all this I don't&lt;br&gt;
know if I can use both RTW and the C2000 target together. Is&lt;br&gt;
it possible? </description>
    </item>
    <item>
      <pubDate>Tue, 08 Jan 2008 14:11:00 -0500</pubDate>
      <title>Re: Using custom code in the C2000 target</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161715#408539</link>
      <author>Matt Jardin</author>
      <description>Are you asking if you can integrate previously-written C-code with your new &lt;br&gt;
project? If so, you can do this using a variety of legacy code mechanisms. &lt;br&gt;
Start with Legacy Code Tool, which you can read about in the help doc:&lt;br&gt;
&amp;gt;&amp;gt; doc legacy_code&lt;br&gt;
&lt;br&gt;
&quot;Kevin &quot; &amp;lt;kedecuyp@mathworks.com&amp;gt; wrote in message &lt;br&gt;
news:flvj21$41c$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hello,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have to use the C2000 target for a project. I *think* I am&lt;br&gt;
&amp;gt; getting used to the simpler blocks, but now I would like to&lt;br&gt;
&amp;gt; re-use some code I wrote on CCS before. This code should be&lt;br&gt;
&amp;gt; called on a timer interrupt.&lt;br&gt;
&amp;gt; How exactly can I do it? I've read that you can do it in&lt;br&gt;
&amp;gt; Real Time Workshop, but I am still new to all this I don't&lt;br&gt;
&amp;gt; know if I can use both RTW and the C2000 target together. Is&lt;br&gt;
&amp;gt; it possible? </description>
    </item>
    <item>
      <pubDate>Tue, 08 Jan 2008 15:34:02 -0500</pubDate>
      <title>Re: Using custom code in the C2000 target</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161715#408558</link>
      <author>Kevin </author>
      <description>Thank you for your answer&lt;br&gt;
&lt;br&gt;
So, if I have a piece of code written in C for the C2000&lt;br&gt;
that I want to call on an interrupt:&lt;br&gt;
- I convert the code to a s-function using legacy_code&lt;br&gt;
- I make a mdl file with the &quot;hardware interrupt&quot; component&lt;br&gt;
and the &quot;RTW s-function&quot; component&lt;br&gt;
&lt;br&gt;
Am I right? &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Matt Jardin&quot; &amp;lt;mjardin@mathworks.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fm009m$fgr$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Are you asking if you can integrate previously-written&lt;br&gt;
C-code with your new &lt;br&gt;
&amp;gt; project? If so, you can do this using a variety of legacy&lt;br&gt;
code mechanisms. &lt;br&gt;
&amp;gt; Start with Legacy Code Tool, which you can read about in&lt;br&gt;
the help doc:&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; doc legacy_code</description>
    </item>
    <item>
      <pubDate>Tue, 08 Jan 2008 16:37:16 -0500</pubDate>
      <title>Re: Using custom code in the C2000 target</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161715#408575</link>
      <author>Praetorian</author>
      <description>On Jan 8, 8:34 am, &quot;Kevin &quot; &amp;lt;kedec...@mathworks.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Thank you for your answer&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; So, if I have a piece of code written in C for the C2000&lt;br&gt;
&amp;gt; that I want to call on an interrupt:&lt;br&gt;
&amp;gt; - I convert the code to a s-function using legacy_code&lt;br&gt;
&amp;gt; - I make a mdl file with the &quot;hardware interrupt&quot; component&lt;br&gt;
&amp;gt; and the &quot;RTW s-function&quot; component&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Am I right?&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
Absolutely, that is the right way to go about it.</description>
    </item>
  </channel>
</rss>

