Re: 使用C30 編譯持出現警告
|
||||
---|---|---|---|---|
管理員
|
設auto_psv就是跟Compiler, 這個中斷服務常式要存PAVPAGE阿, 不然幹麻設@@
TLS2130的資料後面有詳細Attribute的用法.可以參閱\
發表於: 2012/2/8 14:30
|
|||
|
Re: 使用C30 編譯持出現警告
|
||||
---|---|---|---|---|
高級會員
|
感謝 Ryang 前輩
對於 Microchip 的MCU 剛開始用 很多編譯或是使用語法和我之前所學不同 所以還是一頭霧水 感謝您的解答.
發表於: 2009/3/26 15:16
|
|||
Austin
|
||||
|
Re: 使用C30 編譯持出現警告
|
||||
---|---|---|---|---|
版主
|
因為 PSV Default 是開啟的,所以會有警告以避免在中斷李修改了 PSVPAGE 而忘了回存。
只要在中斷的函數宣告裡加入 no-auto_psv 的宣告,其方式及語法如下所示: void __attribute__((interrupt, no_auto_psv)) _T1Interrupt(void)
發表於: 2009/3/26 15:06
|
|||
|