mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [10/13] incubator-mynewt-core git commit: fcb; use actual CRC8 for checksumming.
Date Mon, 09 May 2016 15:14:53 GMT
fcb; use actual CRC8 for checksumming.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/d9cb470c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/d9cb470c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/d9cb470c

Branch: refs/heads/develop
Commit: d9cb470c45db5356ff2ceed40234cf90711fa61b
Parents: 4ab7adf
Author: Marko Kiiskila <marko@runtime.io>
Authored: Wed May 4 10:49:10 2016 -0700
Committer: Marko Kiiskila <marko@runtime.io>
Committed: Mon May 9 08:04:36 2016 -0700

----------------------------------------------------------------------
 sys/fcb/src/fcb_elem_info.c |  2 ++
 sys/fcb/src/fcb_priv.h      | 12 ------------
 2 files changed, 2 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d9cb470c/sys/fcb/src/fcb_elem_info.c
----------------------------------------------------------------------
diff --git a/sys/fcb/src/fcb_elem_info.c b/sys/fcb/src/fcb_elem_info.c
index 2fc9428..58e5210 100644
--- a/sys/fcb/src/fcb_elem_info.c
+++ b/sys/fcb/src/fcb_elem_info.c
@@ -17,6 +17,8 @@
  * under the License.
  */
 
+#include <util/crc8.h>
+
 #include "fcb/fcb.h"
 #include "fcb_priv.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d9cb470c/sys/fcb/src/fcb_priv.h
----------------------------------------------------------------------
diff --git a/sys/fcb/src/fcb_priv.h b/sys/fcb/src/fcb_priv.h
index a7a78ff..b7a9e0b 100644
--- a/sys/fcb/src/fcb_priv.h
+++ b/sys/fcb/src/fcb_priv.h
@@ -54,16 +54,4 @@ int fcb_sector_hdr_init(struct fcb *, struct flash_area *fap, uint16_t
id);
 int fcb_sector_hdr_read(struct fcb *, struct flash_area *fap,
   struct fcb_disk_area *fdap);
 
-#define crc8_init() 0
-static inline uint8_t
-crc8_calc(uint8_t val, void *bv, int cnt)
-{
-    int i;
-
-    for (i = 0; i < cnt; i++) {
-        val += ((uint8_t *)bv)[i];
-    }
-    return val;
-}
-
 #endif


Mime
View raw message