This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
c preprocessor directive to determine if the platform is tinkeros
#1
Hello,

I am modifying a c program for tinkeros platform. The program will include some code lines for tinkeros. I could not find out which "#ifdef ...." statement to determine if I am on tinkeros (or tinker board) platform.

Thanks and best regards,
Reply
#2
I think there is no predefined macro for tinkeros platform. The only solution may be using gcc -D option like "gcc -D TINKER_BOARD", then "#ifdef TINKER_BOARD" preprocessor directive can be used.

I think I should have posted this question to "Tinker Board Forum › Tinker Board / Tinker Board S > Software". I have just realised that I posted it to Software forum under "Tinker Edge T".
I am sorry about that. But when you select "Software" under "Tinker Board Forum" it goes to "Tinker Edge T > Software".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)