A BSP is required so that a physical-layer driver for a parallel flash will work on a particular system. The functions shown in the table below must be implemented. Pleaser refer to section C-10 “NOR Flash BSP” for the details about implementing your own BSP.
Function |
Description |
|
Open (initialize) bus for NOR. |
|
Close (uninitialize) bus for NOR. |
|
Read from bus interface. |
|
Read word from bus interface. |
|
Write word to bus interface |
|
Wait while NOR is busy. |
Table 16-4 NOR BSP functions
The Open()
/Close()
functions are called upon open/close; these calls are always matched.
The remaining functions (Rd_XX()
, RdWord_XX()
, WrWord_XX()
) read data from or write data to the NOR. If a single parallel NOR device will be accessed, these function may be defined as macros to speed up bus accesses.