crc.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /******************************* (C) LiteMesh **********************************
  2. * @module crc
  3. * @file crc.h
  4. * @version 1.0.0
  5. * @date XX.XX.XXXX
  6. * $brief crc
  7. *******************************************************************************
  8. * @history Version Author Comment
  9. * XX.XX.XXXX 1.0.0 kim First release.
  10. *******************************************************************************
  11. */
  12. /* Define to prevent recursive ----------------------------------------------*/
  13. #ifndef CRC_H
  14. #define CRC_H
  15. #include "stm32f4xx.h"
  16. /**
  17. * @brief
  18. */
  19. void CRC_Init(void);
  20. /**
  21. * @brief Читаем crc из последних 4х байт записанной прошивки
  22. * @retval
  23. */
  24. uint32_t CRC_Read(void);
  25. /**
  26. * @brief Считаем crc для записанной прошивки
  27. * @retval
  28. */
  29. uint32_t CRC_Calculate(void (* periodic_handler)(uint8_t));
  30. #endif /* #ifndef CRC_H */
  31. /****************************** (C) SWITRON ***************** end of file ****/