/* * hex_encoder.h * * Created on: 2016/11/17 * Author: takayun */ #ifndef HEX_ENCODER_H_ #define HEX_ENCODER_H_ /************************************************** * Defines **************************************************/ #define hex0 (volatile char *) 0x0005070 #define hex1 (volatile char *) 0x0005060 #define hex2 (volatile char *) 0x0005050 #define hex3 (volatile char *) 0x0005040 #define hex4 (volatile char *) 0x0005030 #define hex5 (volatile char *) 0x0005020 #define hex6 (volatile char *) 0x0005010 #define hex7 (volatile char *) 0x0005000 /************************************************** * Variables **************************************************/ /************************************************** * Functions **************************************************/ void encodeNumHex(int hex_i, int num); void encodeLatHex(int hex_i, char c); #endif /* HEX_ENCODER_H_ */