Revert "Update flash library to use SPI library, add void * support, refactor"

This reverts commit f5617b9ec841c1cf722177939f654b8b0739b9da.