FSDev_NOR_BSP_Open()

CPU_BOOLEAN  FSDev_NOR_BSP_Open (FS_QTY      unit_nbr,
                                 CPU_ADDR    addr_base,
                                 CPU_INT08U  bus_width,
                                 CPU_INT08U  phy_dev_cnt);

File

Called from

Code enabled by

fs_dev_nor_bsp.c

NOR physical-layer driver

N/A

Open (initialize) bus for NOR.

Arguments

unit_nbr

Unit number of NOR.

addr_base

Base address of NOR.

bus_width

Bus width, in bits.

phy_dev_cnt

Number of devices interleaved.

Returned Value

DEF_OK, if interface was opened.

DEF_FAIL, otherwise.

Notes/Warnings

  1. This function will be called every time the device is opened.