FTM: Use enum value instead of literal
Merge pull request #91 from bgamari/fixes

FTM: Use enum value instead of literal
toolchain: add more K20 series targets

To allow them all to use the same startup code and such I replaced the
hardcoded ifeq in toolchain/lib/mchck/Makefile.part with a check on a
new variable called TARGET_FAMILY. It's set to 'K20' in all the target
.mk files to show they're all using the K20 code.
toolchain/pack-sections: fix knapsack

Two bugs:

- do not overwrite argument `w' with loop variable
- check whether section fits to avoid negative array indices

Discovered-by: Derek Mulcahy
[nrf] fix host mode build error
toolchain/mk: add rule for linkdep cache objects

The previous linkdep cache code worked only because of the mere
coincidence that toolchain/cache and examples/* both have a ../../
distance to the repository root.  Fix this by adding a rule for linkdep
cache object files.  This allows building out-of-tree projects.

Noticed-by: Roy Smeding
spiflash: Add utility to convert capacity to bytes
Merge pull request #92 from bgamari/master

spiflash: Add utility to convert capacity to bytes
rtc: Ensure next is initialized
rtc: Ensure time is valid before scheduling alarms
rtc: Set TAR before enabling interrupt
programmer: moved to separate repo
programmer: add submodule
toolchain: check for programmer submodule
toolchain: git submodule update needs --init.  silly.
mchck.mk: fix swd-flash

Reported-by: mkad
nrf: make sure we have the right int
Merge branch 'master' of github.com:mchck/mchck
rtc: Fix rtc_alarm_cancel

Previously the head wasn't considered.
spiflash: Use enum values instead of magic numbers