解決済! 解決策の投稿を見る。
unsigned char myCount; unsigned char foo(void) { /*Some code here*/ return myCount; }
extern unsigned char myCount;unsigned char foo(void);
#include "Cpu.h"#include "Events.h"#include "myfunc.h"<...>
Then in main or in the Events module you can just use the function or variable the usual way.
in the main function make sure you write your code between the marks:
/* Write your code here */
/* For example: for(; { } */
and
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
That should do it and keep some kind of structure in the application.
I hope this helps.
unsigned char myCount; unsigned char foo(void) { /*Some code here*/ return myCount; }
extern unsigned char myCount;unsigned char foo(void);
#include "Cpu.h"#include "Events.h"#include "myfunc.h"<...>
Then in main or in the Events module you can just use the function or variable the usual way.
in the main function make sure you write your code between the marks:
/* Write your code here */
/* For example: for(; { } */
and
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
That should do it and keep some kind of structure in the application.
I hope this helps.