[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Const lookup table
From: |
Andries Posthumus |
Subject: |
[avr-gcc-list] Const lookup table |
Date: |
Fri, 19 Apr 2002 12:15:07 +0200 |
Hi
all
Please help, I would
like to use a lookup table, in a subroutine. I don't want to store the lookup
table in RAM, how can store it in program memory
void ASSIGN_Relay(unsigned char
Number)
{
volatile unsigned char Relay_select = 0;
static unsigned char Lookup_relay [16] = {
0x06, 0x05, 0x07, 0x00, 0x02, 0x04, 0x01,
0x03,
0x03, 0x01, 0x04, 0x02, 0x00, 0x07,
0x05, 0x06
};
}
- [avr-gcc-list] Const lookup table,
Andries Posthumus <=