/* * hex_encoder.h * * Created on: 2016/11/17 * Author: takayun */ #ifndef HEX_ENCODER_H_ #define HEX_ENCODER_H_ /************************************************** * Defines **************************************************/ #define hex0 (volatile char *) 0x0002070 #define hex1 (volatile char *) 0x0002060 #define hex2 (volatile char *) 0x0002050 #define hex3 (volatile char *) 0x0002040 #define hex4 (volatile char *) 0x0002030 #define hex5 (volatile char *) 0x0002020 #define hex6 (volatile char *) 0x0002010 #define hex7 (volatile char *) 0x0002000 /************************************************** * Variables **************************************************/ /************************************************** * Functions **************************************************/ void encodeNumHex(int hex_i, int num); void encodeLatHex(int hex_i, char c); #endif /* HEX_ENCODER_H_ */