public marks

PUBLIC MARKS from YukuanMark with tags embedded & c::cpp

18 March 2006

More ways to map memory

This is the third in a series of articles on accessing memory-mapped device registers using C and C++. In my previous column (November 2004), I discussed how small variations in memory-mapping techniques might lead to differences in the efficiency of comp

Place volatile accurately

In my last column, I advised you to use the volatile qualifier, but use it judiciously.1 This month, I'll present some specific situations to show why and how you should think carefully about exactly where to place the volatile keyword in declarations.

24 January 2006

Learn a new trick with the offsetof() macro

Almost never used, the offsetof() macro can actually be a helpful addition to your bag of tricks. Here are a couple of places in embedded systems where the macro is indispensable—packing data structures and describing how EEPROM data are stored.

YukuanMark's TAGS related to tag embedded

8051 +   arm +   ARM7 +   ARM9 +   asic design +   Autonomous +   avr +   B# +   behavior-based +   book +   c +   c::cpp +   choice +   computer +   converter +   CPU +   design +   EEPROM +   electrics +   fat +   file system +   firmware +   flash +   font +   forum +   FPPA +   hardware +   HDL +   I2C +   iRobot +   language +   linux +   mit +   mmc::sd +   MMU +   mobile +   motor +   offsetof +   os +   pic +   power +   programming +   risc +   robot +   rtos +   scheduler +   sci +   sensor +   SingleChip +   soc +   SPI +   trick +   tutorial +   u3 +   uc +   usb +   watchdog +