PROGMEM changes needed for newer avr-gcc compiler
This commit is contained in:
parent
5fdcd6bc13
commit
6e45dfe5ff
14 changed files with 51 additions and 70 deletions
|
@ -28,14 +28,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: elfloader-avr.c,v 1.10 2009/07/16 18:02:34 dak664 Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <avr/boot.h>
|
||||
#include <avr/pgmspace.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include "dev/rs232.h"
|
||||
#include "elfloader-arch.h"
|
||||
#include "lib/mmem.h"
|
||||
#include <string.h> //memset
|
||||
|
@ -64,8 +62,8 @@
|
|||
|
||||
#define DEBUG 0
|
||||
#if DEBUG
|
||||
/*#define PRINTF(...) rs232_print_p(RS232_PORT_1, __VA_ARGS__)*/
|
||||
#define PRINTF(...) printf(__VA_ARGS__)
|
||||
#include <avr/pgmspace.h>
|
||||
#define PRINTF(FORMAT,args...) printf_P(PSTR(FORMAT),##args)
|
||||
#else
|
||||
#define PRINTF(...)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue