fatfs: validate working write
close #53: MEMORY_MODEL missed in LDFLAGS
fix errors in alarm example

Mis-used simple callback; dereference null pointer when a capture/compare
register is reserved by the infrastructure.
close #54: cli utility incompatible with far code

Update command link structure so parameter may be either a data pointer or a
pointer to a simple handler function.
Reindent