有问题发布。一点一点的尝试…我有一个程序,从ADC读取样本,使用微芯片库执行FIR滤波。当缓冲区被ISR处理时,我想我应该声明它是不稳定的(IE):但是当我这样做时,我得到了警告。我假设假设如果是OK,那么我应该做一个演员来摆脱警告吗?(如果我张贴错误,我得到一个拒绝从
论坛)我发现了一个类似的线程在这里,但它使我不明智:HTTP://www. McCHIP.COM/FUMMS/M825201.ASPX
以上来自于百度翻译
以下为原文
Having problems pos
ting.. trying bit by bit...
I have a program that reads samples from the ADC, performs FIR filtering, using the Microchip libraries. As the buffer is acessed by an ISR, I thought I should declare it as volatile, ie:
volatile fractional inputSignal[NUMSAMP];
FIR(1, &outputSignal[0], &inputSignal[0], &filter1);
but when I do so I get a warning. Am I right in assuming that declaring as volatile if OK and that I should se a cast to get rid of the warning?
(If I post the error, I get an access denied from the forum)
I found a similar thread here, but it made me no wiser:
http://www.microchip.com/forums/m825201.aspx