請教一下哦
如果我想要新增一個已有的變數的共用型態
要怎麼做呢
像我現在是想要在ADCON0中把CHS3~CHS0抽出來成為一個變數
我一定要去改adc.h嗎
還是能不能直接在我要用到的c檔案裡頭加呢
因為我現在好像不管怎麼加都不能用
請高手們指點一下囉
下面這個是我嘗試寫的
不過是有問題的~~請會的人指教一下囉
extern volatile near union ADCON0bits
{
struct {
unsigned :2;
unsigned CHS:4;
};
} ADCON0bits;