Question For a Rowley CrossWorks user

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am evaluating Crossworks for AVR. Looks very good so far, e.g., click on function name in edit, jumps to that file and line.

I have a lot of WinAVR (GCC) code to migrate.
I see a macro printf_P() which helps.

Is there (or how do I do) this in Crossworks:

printf_P(PSTR("String Is Stored In %s"), "flash");

as is done (awkwardly) with GCC?

I think I have it:
#define PSTR(X) ((__code const char *)X)