Porting NuttX to Spark Core

What is the API for using the Flash? Is there USB access to it?