Path: news.mathworks.com!not-for-mail
From: "Kevin " <kedecuyp@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Using custom code in the C2000 target
Date: Tue, 8 Jan 2008 15:34:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 22
Message-ID: <fm055a$jpq$1@fred.mathworks.com>
References: <flvj21$41c$1@fred.mathworks.com> <fm009m$fgr$1@fred.mathworks.com>
Reply-To: "Kevin " <kedecuyp@mathworks.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1199806442 20282 172.30.248.35 (8 Jan 2008 15:34:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 8 Jan 2008 15:34:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1210415
Xref: news.mathworks.com comp.soft-sys.matlab:444886



Thank you for your answer

So, if I have a piece of code written in C for the C2000
that I want to call on an interrupt:
- I convert the code to a s-function using legacy_code
- I make a mdl file with the "hardware interrupt" component
and the "RTW s-function" component

Am I right? 



"Matt Jardin" <mjardin@mathworks.com> wrote in message
<fm009m$fgr$1@fred.mathworks.com>...
> Are you asking if you can integrate previously-written
C-code with your new 
> project? If so, you can do this using a variety of legacy
code mechanisms. 
> Start with Legacy Code Tool, which you can read about in
the help doc:
> >> doc legacy_code