Jump to content

mhwlng

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About mhwlng

  • Rank
    Newbrie
  1. Hi Dave, so how do I use a bit field, if the variable is a pointer : void x10_read_bits(char n,char *data1,char *data2) { ... *data1 >>= 1; (*data1).7 = portb.0; <-- doesn't work ... Thanks, Marcel
  2. this seems to work : from ccs: shift_right(&data,1,input(X10_TO_PIC)); to boostc : data >>= 1; if ((portb & X10_TO_PIC)==0) data &= 0x7F; else data |= 0x80;
  3. Hello, How do I convert ccs shift_right()/shift_left() functions to boostc? (I have seen some example code in this forum to convert to c2c, but that code doesn't compile in boostc) Regards, Marcel
×
×
  • Create New...