Port DataFlash unit.
Fix warnings after adding -Wextra.