avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-chat] Storing table in flash


From: Kreyl
Subject: [avr-chat] Storing table in flash
Date: Sat, 12 Jan 2008 12:41:42 +0300

    Hi!  

  I'm  writing  table-based  crc16  calculation algoritm. So, I should
store this table somewhere.

  Is that enough:

const uint16_t CRC16_8005_TABLE [256] = {
0x0000,0x8005,0x800f,0x000a,0x801b,0x001e,0x0014,0x8011,0x8033,0x0036,0x003c,
...
};

  Or I need to use somewhat from <avr/pgmspace.h>? If so, how should I
do that?


                                          Best regards,
                                                        Kreyl

                                          mailto: address@hidden
                                             ICQ: 171094105





reply via email to

[Prev in Thread] Current Thread [Next in Thread]