lint: fix variableScope warnings
lint: fix invalidPrintfArgType_sint  warning
lint: fix uselessAssignmentPtrArg

    I've chosen to supress instead of removing the assignment because it looks
    like it may introduce a timing bias in the crypto code otherwise.
lint: fix warnings of possible nullPointer dereferences
cpu: stm32f1 spi: fix typos