[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] enum with 8 bit encoding
From: |
Carsten Beth |
Subject: |
Re: [avr-gcc-list] enum with 8 bit encoding |
Date: |
Sun, 21 Apr 2002 10:18:53 +0200 |
Hallo Peter,
it works. Thank you very much.
Peter N Lewis wrote:
> At 21:06 +0200 18/4/02, Carsten Beth wrote:
>
> >Thank you for the suggestions, but they don't have any influence on the
> >generated code. Maybe the shortest size for the constants are ints?!
>
> Well, I guess the obvious solution left is to just define the typedef
> separate from the enums:
>
> enum
> {
> set_state = 's',
> send_eeprom = 'm',
> change_eeprom = 'l',
> send_det = 'd',
> synchonization = 'r',
> end_of_block = 'e'
> };
>
> typedef char t_symbol;
avr-gcc-list at http://avr1.org