piclist 2008\07\08\080026a >
Thread: Code packing
www.piclist.com/techref/microchip/devices.htm?key=pic
face picon face BY : email (remove spam text)(Olin Lathrop)



Gerhard Fiedler wrote:
> I just sent how I do it (in C) in another message in this
> thread:
>
> #define HLVDCON_INIT ( /* High/Low Voltage Detection
>   */\ (u8) (
>     \ (      0 << 7)     /* (b7) VDIRMAG detection direction (0:det.
>   low) */\ | (      1 << 4)     /* (b4) HLVDEN enable detection (1:
>   ena)         */\ | ( 0b1111 << 0)     /* (b3:0) HLVDL3:0 detection
>   limit (external)    */\ )
> \ )

I'd do it differently in other languages too.  You can't do it in MPASM
similarly to what you showed because of how the continuation line mechanism
is broken.  You can't comment continue lines in MPASM.  At least you used to
not be able to a long time ago when I tried it and gave up in disgust.


********************************************************************
Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.
<01ee01c8e0f2$84b10400$0300a8c0@main> 7bit

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Code packing

month overview.

new search...