FORUM TOPIC · READ ONLY

S-function and define microcontroleur

S-function and define microcontroleur

Forum : General Remark and Questions

1 message(s) · archive en lecture seule

yannick
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