VS Arduino
Visual Micro >> Project Guidance >> ISR - Interrupt Service Routines problem
https://www.visualmicro.com/forums/YaBB.pl?num=1358598602

Message started by Fernando Inacio on Jan 19th, 2013 at 12:30pm

Title: ISR - Interrupt Service Routines problem
Post by Fernando Inacio on Jan 19th, 2013 at 12:30pm
When writing a ISR function an error is presented showing "Error: Expected a declaration".
Example:
ISR(PCINT0_vect)
{  <- a red mark pointing to error
}

Title: Re: ISR - Interrupt Service Routines problem
Post by Visual Micro on Jan 19th, 2013 at 1:55pm
Vs intellisense is MS C++, so it isn't 100% perfect.

If you find any std. defs that VM can add in the background to help VS then please let me know and I can add them to the next release.

Obviously they must be generic, not specific to any single sketch.

Title: Re: ISR - Interrupt Service Routines problem
Post by Fernando Inacio on Jan 20th, 2013 at 8:27am
This is happening to all sketch/programs using ISR.
Same sketch/program is running perfectly using Arduino application.

Title: Re: ISR - Interrupt Service Routines problem
Post by Visual Micro on Jan 20th, 2013 at 12:13pm
Hello,

You reported this error when writing a sketch which would be an intellisense error.

The compiler and intellisense systems in vs are two different things. So we might have minor intellisense errors but the sketch should always compile and upload correctly??

After you saying that you also have a compile error? The compile should be working same as arduino? If not then I will fix.

Title: Re: ISR - Interrupt Service Routines problem
Post by Harrzack on Nov 22nd, 2013 at 12:36pm
Would like to add a 'me-too' to this situation. I'm having the exact symptoms.  It seems the the compiler is not liking the ISR(){}  syntax.  Visual Studio will also go 'not responding' VERY quickly with this error.

=Alan R.

Title: Re: ISR - Interrupt Service Routines problem
Post by Visual Micro on Nov 23rd, 2013 at 3:44pm
Hi,

My understanding is that the compilation and upload is fine? It is just the VS intellisense report that is wrong.

Can you please confirm this to be the case.

Thanks

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.