Page 1 of 1

Monitoring RCON register

Posted: Mon May 30, 2011 10:46 am
by frouby
Hello everybody!

I would like to monitor the RCON register, so I put a C function call block with only one Output (output size 1 et output type uint16) and the function name is called 'reset_function'. I did this very simple C program :

Code: Select all

#include <p30f2010.h>

extern uint16_T reset_function(void) {
    return RCON;
}

but it doesn't compile...what's wrong? Thanks for your help!

Re: Monitoring RCON register

Posted: Mon Jun 27, 2011 11:39 pm
by LubinKerhuel
I hope you already find the problem.

If not, please attached the model and c code file with your post.
Anyway, I am wondering if the datatype you are using within your file is defined. You might either use unsigned int instead of uint16_T, or include the datatype def file generated by simulink.

Lubin