summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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