User Tools

Site Tools


avr:crc16.h

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
avr:crc16.h [2013/09/18 09:04] sdoltavr:crc16.h [2013/09/18 09:10] (current) sdolt
Line 5: Line 5:
 ===== Utilisation sur microprocesseur AVR ===== ===== Utilisation sur microprocesseur AVR =====
  
-La bibliothèque standard avr-libc possède des fonctions permettant de calculer rapidement certain type de CRC grâce au fichier d'en-tête crc16.h. Ces fonctions sont codée en assembleur et de type "inline" pour augmenter leur vitesse d'exécution.+La bibliothèque standard avr-libc possède des fonctions permettant de calculer rapidement certain type de CRC grâce au fichier d'en-tête crc16.h. Ces fonctions sont codées en assembleur pour augmenter leur vitesse d'exécution.
  
 <code c> <code c>
Line 44: Line 44:
     uint8_t make_crc8(void)     uint8_t make_crc8(void)
     {     {
-        uint8_t crc = 0i;+        uint8_t crc = 0 
 +        uint8_t i;
  
         for (i = 0; i < sizeof serno / sizeof serno[0]; i++)         for (i = 0; i < sizeof serno / sizeof serno[0]; i++)
Line 59: Line 60:
     uint8_t check_crc8(void)     uint8_t check_crc8(void)
     {     {
-        uint8_t crc = 0i;+        uint8_t crc = 0 
 +        uint8_t i;
  
         for (i = 0; i < sizeof serno / sizeof serno[0]; i++)         for (i = 0; i < sizeof serno / sizeof serno[0]; i++)
avr/crc16.h.1379495056.txt.gz · Last modified: 2013/09/18 09:04 by sdolt