misc: fix parameters to ctype macros

Use of (default signed) char is a domain error producing a
char-subscripts violation diagnostic.  The risk is a value above 127
will be interpreted as a negative index, while the functions are defined
only for unsigned char values.
applpm: allow compile-time override of configBSP430_PLATFORM_SPIN_FOR_JUMPER
bc2: error if calibration constants are missing from header
cleanup: Reduce issues with huge memory model long values

size_t and ptrdiff_t are both 32-bits in huge memory model; cast values
or change underlying types to eliminate errors from improper format
specifiers.