From 7972076b0e623d1fcc2b72e05012eb94bcbeb626 Mon Sep 17 00:00:00 2001 From: agelonch Date: Tue, 13 May 2014 13:41:10 +0200 Subject: [PATCH] Code CRC Reshaped to libLTE format --- lte/include/lte/fec/crc.h | 4 ---- lte/lib/fec/src/crc.c | 8 -------- lte/lib/fec/test/crc_test.h | 8 +------- 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/lte/include/lte/fec/crc.h b/lte/include/lte/fec/crc.h index dd9b58ef6..fe35f992c 100644 --- a/lte/include/lte/fec/crc.h +++ b/lte/include/lte/fec/crc.h @@ -58,10 +58,6 @@ typedef struct { unsigned int crc_out; } crc_t; -//ELIMINATE//////////////////// -unsigned int crc(unsigned int crc, char *bufptr, int len, - int long_crc, unsigned int poly, int paste_word); -/////////////////////////////// int crc_init(crc_t *crc_par); unsigned int crc_attach(char *bufptr, int len, crc_t *crc_params); diff --git a/lte/lib/fec/src/crc.c b/lte/lib/fec/src/crc.c index 73c87d14d..b74569d9e 100644 --- a/lte/lib/fec/src/crc.c +++ b/lte/lib/fec/src/crc.c @@ -105,14 +105,6 @@ int crc_init(crc_t *crc_par){ return(1); } -///ELIMINATE////////////////////////// -unsigned int crc(unsigned int crc, char *bufptr, int len, - int long_crc, unsigned int poly, int paste_word){ - return(0); -} -/////////////////////////////////////// - - unsigned int crc_attach(char *bufptr, int len, crc_t *crc_params) { diff --git a/lte/lib/fec/test/crc_test.h b/lte/lib/fec/test/crc_test.h index 54c7a8283..e52faeaf4 100644 --- a/lte/lib/fec/test/crc_test.h +++ b/lte/lib/fec/test/crc_test.h @@ -39,13 +39,7 @@ typedef struct { static expected_word_t expected_words[] = { -//ELIMINATE/////////// - /* {5000, 24, LTE_CRC24A, 1, 0x4D0836}, // LTE CRC24A (36.212 Sec 5.1.1) - {5000, 24, LTE_CRC24B, 1, 0x9B68F8}, // LTE CRC24B - {5000, 16, LTE_CRC16, 1, 0xBFFA}, // LTE CRC16: 0xBFFA - {5000, 8, LTE_CRC8, 1, 0xF8}, // LTE CRC8 0xF8 - */ -////////////////////// + {5001, 24, LTE_CRC24A, 1, 0x1C5C97}, // LTE CRC24A (36.212 Sec 5.1.1) {5001, 24, LTE_CRC24B, 1, 0x36D1F0}, // LTE CRC24B {5001, 16, LTE_CRC16, 1, 0x7FF4}, // LTE CRC16: 0x7FF4