Merge pull request #140 from paulfertser/master

Flash size optimisations, LTO support. Tested with rev5 hw and 4.7.3 gcc-arm-embedded.
Make code warnings-free with -pedantic

This removes a function that's no longer used, and inline specifiers
from include file (where they're useless anyway). This makes the whole
default project warnings-free with -Wall -pedantic.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>