Re: [Sdcc-user] pic14 port alternative name

2008-09-07 Thread Raphael Neider
Hi Peter, > If I allow the linker to assign the location: > lcd_t lcd; > everything compiles fine. The lcd structure, is of course, not at the > port address. If I > volatile lcd_t __at (PORTB_ADDR); > I get an error saying "multiple sections using address 0x6" > > But, I can declare: > __sfr P

Re: [Sdcc-user] pic14 port alternative name

2008-09-07 Thread Raphael Neider
Hi Peter, > If I allow the linker to assign the location: > lcd_t lcd; > everything compiles fine. The lcd structure, is of course, not at the > port address. If I > volatile lcd_t __at (PORTB_ADDR); > I get an error saying "multiple sections using address 0x6" > > But, I can declare: > __sfr P

[Sdcc-user] pic14 port alternative name

2008-09-06 Thread Peter
G'day folks I am trying to write some code for an lcd module to put in a library. I seem to need to be able to read/write from a port in the library. I would like to be able to refer to it as, say lcdport so different hardware set-ups can use the same code. I can create a lcd structure thus: