Newer
Older
DE2_115_PROG / software / qsys_tutorial_lcd4 / hex_encoder.h
@takayun takayun on 22 Dec 2016 991 bytes edit .gitignore
/*
 * hex_encoder.h
 *
 *  Created on: 2016/11/17
 *      Author: takayun
 */

#ifndef HEX_ENCODER_H_
#define HEX_ENCODER_H_

#include "system.h"

/**************************************************
 *						Defines
 **************************************************/

#define hex0 (volatile char *) HEX0_BASE
#define hex1 (volatile char *) HEX1_BASE
#define hex2 (volatile char *) HEX2_BASE
#define hex3 (volatile char *) HEX3_BASE
#define hex4 (volatile char *) HEX4_BASE
#define hex5 (volatile char *) HEX5_BASE
#define hex6 (volatile char *) HEX6_BASE
#define hex7 (volatile char *) HEX7_BASE

/**************************************************
 *						Variables
 **************************************************/


/**************************************************
 *						Functions
 **************************************************/

void encodeNumHex(int hex_i, int num);
void encodeLatHex(int hex_i, char c);

#endif /* HEX_ENCODER_H_ */