Existing C-modules as macros

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Wijnand
Posts: 3
Joined: Fri Feb 06, 2009 9:01 pm

Existing C-modules as macros

Post by Wijnand »

Is it possible to use existing C-modules as macros? We have a set of modules (for example motor_speed(left,right)) and want to program a mobile robot with Flowcode using this modules.
Thanks...
Wijnand Nijs
Lecturer Digital System Desing
Fontys, the Netherlands

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Existing C-modules as macros

Post by Benj »

Hello

Yes this is possible. Are your current C functions written using BoostC? If not then you may have to port the code across from your compiler into BoostC.

Then if you look inside the Flowcode V3/Examples folder at example TUT_33 then you will see that this uses external C functions. You should then be able to copy the example and get your own C macros working.

Let us know if you have any problems.

Wijnand
Posts: 3
Joined: Fri Feb 06, 2009 9:01 pm

Re: Existing C-modules as macros

Post by Wijnand »

Hello,

Thanks for your help, but I am using AVR controllers. Works it the same way for avr-gcc?

Thanks and greetings...
Wijnand Nijs

Post Reply