UINT8 s, l; PUINT8 buf;
xWriteCH376Cmd( CMD01_RD_USB_DATA0 ); s = l = xReadWriteCH376Data(0xFF); /* 長度 */ if ( l ) { do { *buf = xReadWriteCH376Data(0xFF); buf++; } while ( -- l ); } xEndCH376Cmd( ); 在編譯時(shí)出錯(cuò),我聲明的UINT8和PUINT8如下 #ifndef UINT8 typedef unsigned char UINT8; #endif
#ifndef *PUINT8 typedef unsigned char flash *PUINT8; #endif
PUINT8如果不加上flash,給該類型指針賦值字符串是不通過,加上flash后 *buf = xReadWriteCH376Data(0xFF);這句語句出錯(cuò),請(qǐng)問怎么解決?