1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-02 13:24:12 +01:00
Arduino/hardware/arduino/sam
Matthijs Kooijman 98777e816f Use PGM_P instead of prog_char
On later versions of avr-libc, prog_char is deprecated. In 0acebeeff4
the one occurence of prog_char was replaced by "char PROGMEM", which is
not entirely correct (PROGMEM is supposed to be an attribute on a
variable, not on a type, even though this is how things work in older
libc versions). However, in 1130fede3a a few new occurences of
prog_char are introduced, which break compilation on newer libc versions
again.

This commit changes all these pointer types to use the PGM_P macro from
<avr/pgmspace.h>. This macro is just "const char *" in newer libc
versions and "const prog_char *" in older versions, so it should always
work.

References #795
2013-12-31 20:01:40 +01:00
..
cores/arduino Use PGM_P instead of prog_char 2013-12-31 20:01:40 +01:00
firmwares/atmega16u2 Added old firmware for Arduino Due USB2Serial (atmega16u2) 2013-02-11 22:18:22 +01:00
libraries Revert "SPI library to new format" 2013-11-21 15:05:36 +01:00
system Fixed adc_init() function. 2013-10-09 15:54:47 +02:00
variants/arduino_due_x Changed pins definition in variants from constants to #defines. 2013-12-13 15:13:18 +01:00
boards.txt Fixed vid/pid definition for arduino_due_x_dbg in boards.txt. (Luca Baldini) 2013-11-15 14:01:36 +01:00
platform.txt Upped version to 1.5.5 2013-11-28 10:53:50 +01:00
programmers.txt Removed unused boards/programmers 2012-08-25 16:31:25 +02:00