split flash.h into into flash/nor/*.h

Move the bulk of the flash.h file into flash/nor/core.h, leaving an
empty husk that will be removed in the next patch.

The NOR driver structure is an implementation detail, so move it into
its own private header file <flash/nor/driver.h> along with helper
declaration for finding them by name.
This commit is contained in:
Zachary T Welch
2009-12-04 16:07:47 -08:00
parent d9dc604a4d
commit ae6374e25d
6 changed files with 358 additions and 326 deletions

View File

@@ -21,6 +21,7 @@
// this is an internal header
#include "core.h"
#include "driver.h"
// common flash internals
#include <flash/common.h>
// almost all drivers will need this file