You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
386 B

void c_hdsk(void)
{
REG_ANALOG_GP_TIE->bf.h_en = 0xff; //Tell vector c ready
REG_ANALOG_GP_TIE->bf.h_en = 0x0; //clear
}
void v_hdsk(void)
{
int reg_rdata = 0;
do
{
reg_rdata = REG_ANALOG_GP_TIE->bf.h_en;
printf("reg_rdata is %x\n", reg_rdata); //for debug;
delay_50us(1);
}
while(reg_rdata != 0xf); //Get vector ready
}