调芯唐w90p950时:
struct tran_pdesc { struct nuc900_txbd desclist[TX_DESC_SIZE]; char tran_buf[TX_DESC_SIZE][MAX_TBUFF_SZ]; }; struct tran_pdesc *tdesc; struct tran_pdesc *rdesc; struct nuc900_txbd *txbd;
unsigned char *buffe; *txbd = tdesc->desclist[cur_tx]; buffer = tdesc->tran_buf[cur_tx]; 出现:Error : C3028E: '=': implicit cast of pointer to non-equal pointer xxx line 58
后改为:
struct nuc900_txbd *txbd;
unsigned char *buffer; *txbd = tdesc->desclist[cur_tx]; buffer = (unsigned char *)tdesc->tran_buf[cur_tx]; 通过.
|
|
来自: 笔录收藏 > 《MCU,ARM程序部分--C语言》