Visual Studio Ide for Arduino
Visual Micro >> Visual Studio 2017, 2019 >> Identifier "__asm__" is undefined ???

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

Title: Identifier "__asm__" is undefined ???
Post by Harrzack on Sep 5th, 2019 at 7: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.


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

Code (c++):
void ISR_Handler() {
     dummy = 1;
     cli();          <---- has error msg
     //Serial.println("In ISR");
     flag = !flag;

Title: Re: Identifier "__asm__" is undefined ???
Post by Visual Micro on Sep 5th, 2019 at 7: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.

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2020. All Rights Reserved.