fransfrans 0 Posted November 12, 2004 Report Share Posted November 12, 2004 declaring register bits like this would be very handy!!!!!!! bit RA0 @ (&porta*8)+0; then I could remove this sort of code: set_bit(porta,0); and make it RA0=0; or while (RA0) Quote Link to post Share on other sites
Dave 0 Posted November 12, 2004 Report Share Posted November 12, 2004 fransfrans, In BoostC you can do this #define PORTA 0x05; volatile bit RA0 @ PORTA.0; void main() { InitPorts(); RA0 = 1; while( RA0 ) { ..... } } Good enough ? Regards Dave Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.