S-function and define microcontroleur

Create new topics, add your comment, remark, bugs...
yannick
Posts: 5
Joined: Thu May 26, 2011 4:23 pm

S-function and define microcontroleur

Postby yannick » Thu May 26, 2011 4:33 pm

Hi,

I try to use a S-function which call a header file (.h) thanks to an #include <toto.h>


At the beginning of my header toto, there is a condition : If dsPIC XXXXX is defined do ..... just like that :

#if defined(__dsPIC30F__)
#include <p30fxxxx.h> ....

But when I try to compile, Matlab doesn't get the device I chose in the master block, so of course, my dsPIC is not defined and my program cannot compile.

I would like to know how I could get the data in order to define correctly my dsPIC in my header.

I hope everybody understood what I am trying to explain..

Thank you for your help !

Yannick

Return to “General Remark and Questions”

Who is online

Users browsing this forum: No registered users and 1 guest