Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/30/02 10:05
Read: times


 
#22295 - RE: Declaration\\\\\\\\\\\\\\\\\\\\\\\\\
Hi Jacek,

on the Keil C51 there is no need to define such things twice.

Simple write in assembler:

output1 BIT P1.1
PUBLIC output1

and then in C:

extern bit output1;


Then the linker resolve it.
And feel free to change it in the assembler file only (e.g. use a different port on a different pcb)


Peter


List of 10 messages in thread
TopicAuthorDate
Declaration\\\\\\\'s syntax in C and assembler            01/01/70 00:00      
RE: Declaration\\\\\\\'s syntax in C and assembler            01/01/70 00:00      
RE: Declaration\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s s            01/01/70 00:00      
RE: Declaration's syntax            01/01/70 00:00      
RE: Declaration\\\'s syntax            01/01/70 00:00      
RE: Declaration\\\\\\\\\\\\\\\\\\\\\\\\\            01/01/70 00:00      
RE: Declaration\\\\\\\\\\\\\\\\\\\\\\\\\            01/01/70 00:00      
RE: Declaration\\\\\\\\\\\\\\\\\\\\\\\\\            01/01/70 00:00      
RE: in Keil...            01/01/70 00:00      
RE: Declaration\\\\\\\'s syntax in C and assembler            01/01/70 00:00      

Back to Subject List