diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-21 09:52:37 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-21 09:52:37 -0700 |
commit | 75e4521ec42a368cebc67a07f8713d7a854ea265 (patch) | |
tree | 4dfcdb719bda36d4adc044f10496347526af62e5 | |
parent | 0b5548d6ced67201311e1072d37fbedd3d9929c9 (diff) |
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 <keithp@keithp.com>
-rw-r--r-- | src/core/ao_fec.h (renamed from src/drivers/ao_fec.h) | 0 | ||||
-rw-r--r-- | src/core/ao_fec_tx.c (renamed from src/drivers/ao_fec_tx.c) | 13 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/drivers/ao_fec.h b/src/core/ao_fec.h index db5523a3..db5523a3 100644 --- a/src/drivers/ao_fec.h +++ b/src/core/ao_fec.h diff --git a/src/drivers/ao_fec_tx.c b/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 |