From 75e4521ec42a368cebc67a07f8713d7a854ea265 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 21 Jun 2012 09:52:37 -0700 Subject: [PATCH] altos: Move FEC code to core It's not a driver as it's not specific to the 1120 chip Signed-off-by: Keith Packard --- src/{drivers => core}/ao_fec.h | 0 src/{drivers => core}/ao_fec_tx.c | 13 +++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) rename src/{drivers => core}/ao_fec.h (100%) rename src/{drivers => core}/ao_fec_tx.c (94%) diff --git a/src/drivers/ao_fec.h b/src/core/ao_fec.h similarity index 100% rename from src/drivers/ao_fec.h rename to src/core/ao_fec.h diff --git a/src/drivers/ao_fec_tx.c b/src/core/ao_fec_tx.c similarity index 94% rename from src/drivers/ao_fec_tx.c rename to src/core/ao_fec_tx.c index b8933956..bf32c506 100644 --- a/src/drivers/ao_fec_tx.c +++ b/src/core/ao_fec_tx.c @@ -93,10 +93,15 @@ ao_fec_whiten(uint8_t *in, uint8_t len, uint8_t *out) } static const uint8_t ao_fec_encode_table[16] = { - 0, 3, 1, 2, - 3, 0, 2, 1, - 3, 0, 2, 1, - 0, 3, 1, 2 +/* next 0 1 state */ + 0, 3, /* 000 */ + 1, 2, /* 001 */ + 3, 0, /* 010 */ + 2, 1, /* 011 */ + 3, 0, /* 100 */ + 2, 1, /* 101 */ + 0, 3, /* 110 */ + 1, 2 /* 111 */ }; uint8_t -- 2.30.2