#ifndef HARDWARE_H_INCLUDED
#define HARDWARE_H_INCLUDED




/*functions and macro's*/
void HardwareInit(void);
void EnableCard(void);
void DisableCard(void);
void EnableFpga(void);
void DisableFpga(void);
void EnableOsd(void);
void DisableOsd(void);
void ResetLow(void);
void ResetHigh(void);
void cmd_read_block0(void);
void cmd_read_block1(void);
void showTrack(unsigned char); 
void showLedr(unsigned short); 
unsigned char OsdGetKey(void);
unsigned char CheckButton(void);
unsigned char SPI(unsigned char);
unsigned char SPIOSD(unsigned char);
unsigned short GetTimer(unsigned short);
unsigned char CheckTimer(unsigned short);

unsigned char SDCARD_Init(void);
unsigned char AtaReadSector(unsigned long lba, unsigned char *ReadData);
unsigned char AtaWriteSector(unsigned long lba, unsigned char *WriteData);

//void SetFstate(unsigned char data);
//unsigned char GetFtrack(void);
//unsigned char GetFstate(void);


#endif
