Just a brute-force look-up-table bit-reverse for 8-bit words. I'm using it to control a SSP device that has LSB-first bit ordering via SPI which is MSB-first

Dependents:   Adafruit-GP9002-Grayscale-VFD-Library

Just a 256 byte table to allow for reversing the order of the bits in a byte with a simple lookup operation.

Committer:
oliverb
Date:
Mon May 09 09:21:23 2016 +0000
Revision:
0:3b7549f5f018
First commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
oliverb 0:3b7549f5f018 1 #ifndef _BITREVERSETABLE256
oliverb 0:3b7549f5f018 2 #define _BITREVERSETABLE256
oliverb 0:3b7549f5f018 3 extern const unsigned char BitReverseTable256[];
oliverb 0:3b7549f5f018 4 #endif