Re: C30編譯完後會出現以下警告,是否需要修改呢?該改哪裡?
|
||||
---|---|---|---|---|
高級會員
|
這是個以前公司給的範例 APP009_TestProg
第1個警告程式太長 只列第2,3個警告 void __attribute__((__interrupt__)) _PWMInterrupt(void) { IFS2bits.PWMIF = 0 ; } void _ISR _ADCInterrupt(void) { IFS0bits.ADIF = 0 ; if ( ANxBuf_Index < 128 ) { AN0_Buf[ANxBuf_Index] = ADCBUF1 ; AN1_Buf[ANxBuf_Index] = ADCBUF2 ; AN2_Buf[ANxBuf_Index++] = ADCBUF3 ; } }
發表於: 2007/8/3 11:45
|
|||
|
Re: C30編譯完後會出現以下警告,是否需要修改呢?該改哪裡?
|
||||
---|---|---|---|---|
版主
|
沒遇到過此類的警告,是否將中斷的部份踢出來看看 PSV 的設定是否有誤。
發表於: 2007/8/3 11:07
|
|||
|
C30編譯完後會出現以下警告,是否需要修改呢?該改哪裡?
|
||||
---|---|---|---|---|
高級會員
|
APP009_TestProg.c: In function '_T1Interrupt':
APP009_TestProg.c:71: warning: PSV model not specified for '_T1Interrupt'; assuming 'auto_psv' this may affect latency APP009_TestProg.c: In function '_PWMInterrupt': APP009_TestProg.c:142: warning: PSV model not specified for '_PWMInterrupt'; assuming 'auto_psv' this may affect latency APP009_TestProg.c: In function '_ADCInterrupt': APP009_TestProg.c:148: warning: PSV model not specified for '_ADCInterrupt'; assuming 'auto_psv' this may affect latency
發表於: 2007/8/2 16:37
|
|||
|