Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Identifier "__asm__" is undefined ??? (Read 5164 times)
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Identifier "__asm__" is undefined ???
Sep 5th, 2019 at 6:01pm
Print Post  
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.  Smiley  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++)
Select All
void ISR_Handler() {
      dummy = 1;
      cli();          <---- has error msg
      noInterrupts();
      //Serial.println("In ISR");
      flag = !flag;
      interrupts();
      sei();
      interrupts();
}



 

« Last Edit: Sep 5th, 2019 at 6:02pm by Harrzack »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12345
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Identifier "__asm__" is undefined ???
Reply #1 - Sep 5th, 2019 at 6:07pm
Print Post  
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.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint