This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Common declaration with variable in Assembler and C code

Hello,
We used,in our project,parts of code written in C code and parts written in Assembler code. Somme variables, particulary bit type, need to be access by the two parts. Our actual solution is to use declaration for each part, for exemple :
Assembler code : p_BP BIT P3.000D
C code : sbit p_BP=P3^0;
Is there a solution to have only one declaration for assembler and C code?

Parents Reply Children