Search found 2 matches

by george
Wed Oct 03, 2018 9:38 am
Forum: Getting started
Topic: Why aren't my compile options working?
Replies: 3
Views: 19923

Re: Why aren't my compile options working?

I'd make a guess that the syntax highlighting is not aware of the Makefile. If you add a #warning, you will be able to see which option is used when compiling. #if (AUDIO_CLASS==2) #warning "AUDIO_CLASS is 2" XUD_Manager(c_xud_out, ENDPOINT_COUNT_OUT, c_xud_in, ENDPOINT_COUNT_IN, c_sof, ep...
by george
Mon Apr 16, 2018 10:58 am
Forum: Development Tools and Programming
Topic: Porting the Arduino RadioHead library to XMOS
Replies: 2
Views: 2784

Re: Porting the Arduino RadioHead library to XMOS

The compiler can be made to treat a .ino file as a c++ file using the flag "-x c++ *****.ino". Below I've included a modified blink.ino with makefile that compiles for either xcore or arduino. Blink.ino // Provide some functions to replace the arduino built-ins #ifdef XCORE #include <iostr...