Hi Andreas, > I am writing an amforth library for the nRF24L01 family of radios. Right > now I am factoring out some lshifts used for reading and writing to > registers. > > I thought it would be great to have bitfields for structures of registers > considering how common the use case is.
I use the lib/bitnames.frt for exactly this. Speed-Junkies may use the assembler version (I never had to do so). The SPI words from http://sourceforge.net/p/amforth/code/HEAD/tree/trunk/lib/hardware/spi.frt use them now (more to come). Matthias ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel