User's Manual

6.
Fu
n
spi
_
spi
_
spi
_
spi
_
spi
_
SPI
F
6.1
S
6.2
S
AP
./
i
Dri
v
. / i
c
6.3
S
n
ction nam
e
_
flash_init(
)
_
flash_rea
d
_
flash_sect
o
_
flash_writ
e
_
flash_final
AI6
0
F
lash A
P
S
PI Flas
h
S
PI Fla
s
I layer:
i
comlib/inc
l
v
er layer:
c
omlib/incl
u
S
PI Fla
s
e
D
)
C
U
d
o
r_erase
U
b
e
U
c
t
h
ize
D
f
l
0
60
H
P
I
h
API st
r
s
h direc
t
l
ude /flash
_
u
de /drv_fl
a
s
h API i
n
D
escriptio
n
C
all driver i
n
U
se this to r
e
d
estination.
U
se this api
e erase as
0
U
se this api
ache buffer
h
is API.
D
ata in flas
h
l
ash by this
User A
p
SPI FL
A
SPI Fla
s
H
Us
e
-35-
r
ucture
t
ory str
u
_
api.h
a
sh.h
n
troduc
t
n
itializatio
n
e
ad flash d
a
to erase se
c
0
xffff-ffff i
n
to write da
t
r
. But bewa
r
h
drivers 4
k
API.
p
plicatio
n
A
SH API
s
h Drive
r
e
r M
a
u
cture
t
ion
n
in this AP
I
a
ta into yo
u
c
tor (4KB)
i
n
whole sec
t
t
a into spi f
l
r
e,data won
k
B cache b
u
a
nual
Copyrigh
I
.
r
reserved
m
i
n spi flash.
t
or.
l
ash driver
s
’t be writte
r
u
ffer will b
e
h
t@2016 A
m
emory
All data w
i
s interal 4
K
r
n into flas
h
e
written in
t
c
SiP
i
ll
K
B
h
in
t
o