URL
https://opencores.org/ocsvn/openmsp430/openmsp430/trunk
Subversion Repositories openmsp430
[/] [openmsp430/] [trunk/] [fpga/] [OBSOLETE/] [altera_de1_board/] [software/] [memledtest/] [gray.c] - Rev 223
Go to most recent revision | Compare with Previous | Blame | View Log
#include "gray.h" unsigned char bin2gray(unsigned char bin) { return bin ^ (bin>>1); } unsigned char gray2bin(unsigned char gray) { unsigned char bin; bin = gray ^ (gray>>1); bin ^= (bin>>2); bin ^= (bin>>4); return bin; }
Go to most recent revision | Compare with Previous | Blame | View Log