repaper / gratis

EPD Source codes and Documentation
238 stars 132 forks source link

Misc - declare constants const, protect AVR specific code by checking for __AVR__ #16

Closed ecdr closed 9 years ago

ecdr commented 9 years ago

Make porting easier - Protect AVR specific code by checking for AVR, rather than assuming everything that isn't an MSP430 is an AVR.

Reduce memory use by using uin8_t rather than int for pins, and declaring constants const.

Fix some warnings (comparison signed vs. unsigned, functions with incorrect prototypes).

More specific function prototypes.