libbladeRF: [WIP] Don't call API functions from flash.c - use local fns