[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Writing direct decimal values in program memory
From: |
Alexey Boyko |
Subject: |
[avr-gcc-list] Writing direct decimal values in program memory |
Date: |
Sat, 6 Jul 2002 12:35:16 +0300 |
Hello James,
JL> All that I would like to do is write decimal values
JL> (2.5Kbytes worth) into program memory starting from a
JL> certain program memory address. How do I go about
JL> doing this in AVR GCC?
JL> I've tried using prog_char from <progmem.h> but I ran
JL> into memory problems. I don't need a pointer for
JL> every data byte written. I just need the pointer for
JL> the first data byte address.
Try following:
#include <progmem.h>
char data[] PROGMEM = {1,2,3,4,5,6};
Best regards,
Alexey mailto:address@hidden
avr-gcc-list at http://avr1.org