s = mInitCH376Host(); /* 初始化CH376 */ mStopIfError(s);
s = CKECK_connect(); /* 檢查連接 */ mStopIfError(s);
s = CH376DiskMount(); /* U盤初始化 */ mStopIfError(s);
s = CH376DirCreate( "BB" ); mStopIfError(s);
s = CH376FileCreate( "TEST1.TXT" ); mStopIfError(s);
s = CH376FileOpen( "\TEST1.TXT" ); mStopIfError(s);
buf = &PutIn[0]; s = CH376ByteWrite( buf, sizeof(PutIn), NULL );
以上是調(diào)用程序的代碼。 運行過CH376FileOpen( "\TEST1.TXT" ) 返回0x14操作成功 運行s = CH376ByteWrite( buf, sizeof(PutIn), NULL );之后中斷返回0xB4(文件已經(jīng)關(guān)閉,如果需要使用應重新打開)
請問是什么原因?