Subversion Repositories HomeAutomation

Rev

Blame | Last modification | View Log | SVN | RSS feed

  1. #ifndef EEPROM_CRC8_H_
  2. #define EEPROM_CRC8_H_
  3.  
  4. #include <inttypes.h>
  5. #include <avr/eeprom.h>
  6.  
  7. uint8_t eeprom_crc8 (uint8_t* data_in, uint16_t number_of_bytes_to_read);
  8.  
  9. #endif
  10.  
  11. /*
  12. This is based on code from :
  13.  
  14. Copyright (c) 2002 Colin O'Flynn
  15.  
  16. Permission is hereby granted, free of charge, to any person obtaining a copy of
  17. this software and associated documentation files (the "Software"), to deal in
  18. the Software without restriction, including without limitation the rights to
  19. use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  20. the Software, and to permit persons to whom the Software is furnished to do so,
  21. subject to the following conditions:
  22.  
  23. The above copyright notice and this permission notice shall be included in all
  24. copies or substantial portions of the Software.
  25.  
  26. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  27. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  28. FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  29. COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  30. IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  31. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  32. */
  33.  
  34.