api_system_gateway could not be resolved

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Guys, just tidying up some code.  I have the following defined in a header file called "api_gateway.h"

#define api_system_gateway()\
	\
	volatile bool SystemConfiguration = false;\
	\
	if( (OSTCB_EXECUTING->application_mode == false) &&\
		(OSTCB_EXECUTING->interrupt_mode   == 0)){\
			\
			OSTCB_EXECUTING->application_mode = true;\
			SystemConfiguration = true;\
	}\
	__attribute__((cleanup(api_gateway_implementation)))volatile bool SystemStatusMode = SystemConfiguration;

when I include the header file and try to use it I get #define I get, api_gateway could not be resolved?

 

this is how it is called:

api_system_gateway();

 

Last Edited: Tue. Jul 14, 2020 - 03:53 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Ok, before the grumbling starts....

 

What target is this for?  ARM or AVR.

 

JIm

 

Edit, this looks more like ARM than AVR so for now....

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

Last Edited: Tue. Jul 14, 2020 - 03:53 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It's running on the UC3 and Cortex-A5

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fianawarrior wrote:
I get #define I get, api_gateway could not be resolved?

Go on. You've been here long enough to know this: Show the full error message.

 

Use copy & paste; post the complete and unabridged message.

 

There is no reference anywhere in what you posted to anything called just  "api_gateway"

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Tue. Jul 14, 2020 - 07:24 AM