VS Arduino
>> >> Identifier "__asm__" is undefined ???
https://www.visualmicro.com/forums/YaBB.pl?num=1567706500

Message started by Harrzack on Sep 5th, 2019 at 6:01pm

Title: Identifier "__asm__" is undefined ???
Post by Harrzack on Sep 5th, 2019 at 6:01pm
This is in Visual Studio 2019, testing code for the Teensy4 board.  Most things are working quite well BUT - I've been experimenting with interrupts  and cli() is showing a red underscore and the above message.

It appears the the first of these macros shows the error, and the remaining interrupt handlers have no error - until i comment out cli() and then the error propagates down to 'noInterrupts() - and so on.

Arduino tool chain is 1.8.9  I just opened the sketch in the Arduino IDE - and there was no complaints on those functions....  So something in either VS2019 or Intellisense is confused.  :-)  I guess I should ignore the warnings - but something COULD be amiss inthe VS2019 world.


Ideas?



Below is the test ISR which does get hit at a button press



Code (c++):

void ISR_Handler() {
     dummy = 1;
     cli();          <---- has error msg
     noInterrupts();
     //Serial.println("In ISR");
     flag = !flag;
     interrupts();
     sei();
     interrupts();
}




Title: Re: Identifier "__asm__" is undefined ???
Post by Visual Micro on Sep 5th, 2019 at 6:07pm
Please do not confuse intellisense with build errors. There is no comparison for the Arduino IDE with intellisense.

If you have any build or intellisense questions we can't help without the information request in the yellow box.

Intellisense is not perfect and is not connected to the compiler.

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