Storing file and the fopen() function

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Storing file and the fopen() function

537件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by netsupra on Mon Oct 15 15:18:16 MST 2012
Hi everybody,

I'm trying to open a file using fopen but I don't know how to store the file on the microcontroller.

I'm using a LPC11C24 and the file I want to access is a bmp file.

Thank you,
Netsupra
0 件の賞賛
返信
2 返答(返信)

491件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by netsupra on Tue Oct 16 03:03:41 MST 2012
Thank you for your reply.
0 件の賞賛
返信

491件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by daniel.widyanto on Mon Oct 15 21:20:49 MST 2012
Well, unfortunately, you are running an embedded system, where abstraction concepts of file and memory are not defined.

Usually, people convert the BMP file into C array (See http://www.deadnode.org/sw/bin2h/), then accessing the C-array directly, like

for (i = 0; i < mybmp_sz; i++) {
  *framebuffer = mybmp;
}
0 件の賞賛
返信