Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Suggestion for smaller pin handling code

$
0
0

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 :smile:).

 

Just replace the file (under ...\hardware\msp430\cores\msp430\) and re-complie your sketch.

 

Cheers

 

Attached Files


Viewing all articles
Browse latest Browse all 2077

Trending Articles