Use macro definitions to simplify work with I/O ports in C (MICROCHIP PIC/ATMEL AVR)
This article describes a series of techniques that facilitates defining and programming I/O ports in embeded C with the same ease you do these task in PBASIC/PicBasic. Macro definitions and sample code is given for PIC C18/C30 and gcc-avr (ATMEL MCUs).