Re: dsp33ch的p33CH512MP508.h file不能更改
|
||||
---|---|---|---|---|
版主
|
建議不要去修改 CH512MP508.h 的檔案,如有暫存器要加入建議自行建立一個 .h 檔。在程式裡 #include 該 h 檔即可。
發表於: 2020/5/8 12:49
|
|||
|
Re: dsp33ch的p33CH512MP508.h file不能更改
|
||||
---|---|---|---|---|
新會員
|
您好
可是像原來 typedef struct tagADMOD0LBITS { uint16_t SIGN0:1; uint16_t :1; uint16_t SIGN1:1; uint16_t :1; uint16_t SIGN2:1; uint16_t :1; uint16_t SIGN3:1; uint16_t :1; uint16_t SIGN4:1; uint16_t :1; uint16_t SIGN5:1; uint16_t :1; uint16_t SIGN6:1; uint16_t :1; uint16_t SIGN7:1; } ADMOD0LBITS; 是沒有定義 uint16_t DIFF0:1; and uint16_t DIFF1:1; 那我要如何加這兩個定義?否則compilier會有redefine的問題! typedef struct tagADMOD0LBITS { uint16_t SIGN0:1; uint16_t DIFF0:1; uint16_t SIGN1:1; uint16_t DIFF1:1; uint16_t SIGN2:1; uint16_t :1; uint16_t SIGN3:1; uint16_t :1; uint16_t SIGN4:1; uint16_t :1; uint16_t SIGN5:1; uint16_t :1; uint16_t SIGN6:1; uint16_t :1; uint16_t SIGN7:1; } ADMOD0LBITS; thanks
發表於: 2020/5/14 11:19
|
|||
|
Re: dsp33ch的p33CH512MP508.h file不能更改
|
||||
---|---|---|---|---|
管理員
|
CH 系列是 Dual Code 的系列, 有些暫存器不是兩邊都有的,
Master Code 請服用 p33CH512MP508.h Slave Code 則使用 p33CH512MP508S1.h DIFF0, DIFF1 在 Slave Code 才有. Attach file: (0.00 KB)
發表於: 2020/5/15 12:13
|
|||
|