Repostiory containing DAPLink source code with Reset Pin workaround for HANI_IOT board.

Upstream: https://github.com/ARMmbed/DAPLink

Committer:
Pawel Zarembski
Date:
Tue Apr 07 12:55:42 2020 +0200
Revision:
0:01f31e923fe2
hani: DAPLink with reset workaround

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Pawel Zarembski 0:01f31e923fe2 1 /**********************************************************************
Pawel Zarembski 0:01f31e923fe2 2 *
Pawel Zarembski 0:01f31e923fe2 3 * Filename: crc.h
Pawel Zarembski 0:01f31e923fe2 4 *
Pawel Zarembski 0:01f31e923fe2 5 * Description: A header file describing the various CRC standards.
Pawel Zarembski 0:01f31e923fe2 6 *
Pawel Zarembski 0:01f31e923fe2 7 * Notes:
Pawel Zarembski 0:01f31e923fe2 8 *
Pawel Zarembski 0:01f31e923fe2 9 *
Pawel Zarembski 0:01f31e923fe2 10 * Copyright (c) 2000 by Michael Barr. This software is placed into
Pawel Zarembski 0:01f31e923fe2 11 * the public domain and may be used for any purpose. However, this
Pawel Zarembski 0:01f31e923fe2 12 * notice must not be changed or removed and no warranty is either
Pawel Zarembski 0:01f31e923fe2 13 * expressed or implied by its publication or distribution.
Pawel Zarembski 0:01f31e923fe2 14 **********************************************************************/
Pawel Zarembski 0:01f31e923fe2 15
Pawel Zarembski 0:01f31e923fe2 16 /**
Pawel Zarembski 0:01f31e923fe2 17 * @file crc.h
Pawel Zarembski 0:01f31e923fe2 18 * @brief CRC functions
Pawel Zarembski 0:01f31e923fe2 19 */
Pawel Zarembski 0:01f31e923fe2 20
Pawel Zarembski 0:01f31e923fe2 21 #ifndef _crc_h
Pawel Zarembski 0:01f31e923fe2 22 #define _crc_h
Pawel Zarembski 0:01f31e923fe2 23
Pawel Zarembski 0:01f31e923fe2 24 #include <stdint.h>
Pawel Zarembski 0:01f31e923fe2 25
Pawel Zarembski 0:01f31e923fe2 26 #ifdef __cplusplus
Pawel Zarembski 0:01f31e923fe2 27 extern "C" {
Pawel Zarembski 0:01f31e923fe2 28 #endif
Pawel Zarembski 0:01f31e923fe2 29
Pawel Zarembski 0:01f31e923fe2 30 uint16_t crc16(const void *data, int nBytes);
Pawel Zarembski 0:01f31e923fe2 31 uint32_t crc32(const void *data, int nBytes);
Pawel Zarembski 0:01f31e923fe2 32 uint32_t crc32_continue(uint32_t prev_crc, const void *data, int nBytes);
Pawel Zarembski 0:01f31e923fe2 33
Pawel Zarembski 0:01f31e923fe2 34 #ifdef __cplusplus
Pawel Zarembski 0:01f31e923fe2 35 }
Pawel Zarembski 0:01f31e923fe2 36 #endif
Pawel Zarembski 0:01f31e923fe2 37
Pawel Zarembski 0:01f31e923fe2 38 #endif