Robert Adsett schrieb: > In particular with this construct you could get a 8 bit I/O operation, > a 16 bit > I/O operation or a 32bit I/O operation. Correct. gcc tries to optimize accesses, so if you have a register which must be read/writen as 32bits, bitfields fail for this. Other compiler read/write the size of the container. For the PPC version exists a patch for 4.0.x gcc to change this. > Basically bitfields are a very bad idea for I/O. Sooner or later thay > will bite you in the fundament. Copy that. -- 42Bastian
Message
Re: [lpc2000] Re: Bit addressing
2006-03-01 by 42Bastian Schick