Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile for Arduino Due #26

Closed
jnmacdnld opened this issue Jul 31, 2013 · 1 comment
Closed

Fails to compile for Arduino Due #26

jnmacdnld opened this issue Jul 31, 2013 · 1 comment

Comments

@jnmacdnld
Copy link
Contributor

On Due, PROGMEM is not available, so when compiling for Due, the compiler complains about undefined PROGMEM macros. As a workaround, these macros could be defined in ArduinoUnit.h:

// Workaround for Arduino Due
#if defined(__arm__) && !defined(PROGMEM)
#define PROGMEM
#define PSTR(s) s
#define memcpy_P(a, b, c) memcpy(a, b, c)
#define strlen_P(a) strlen(a)
#endif
@jnmacdnld
Copy link
Contributor Author

Closed because I made a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant