Hello,
See attached a change to wiring_digital.c that can save at least a few tenths of bytes from the code size. It saved 94 bytes from my application on a 2KB flash chip (G2231).
pinMode(), pinMode_int() and digitalWrite() were modified, from the latest Energia release (0101E0009). No functionality changed (I hope
).
Just replace the file (under ...\hardware\msp430\cores\msp430\) and re-complie your sketch.
Cheers
