If I take HID_Read and HID_write funstions out of interrupt routine it works but i have tou use them in interrupt routine.
Could you please correct this problem in new versions of compiler?
Code: Select all
void USB_Intr() iv IVT_INT_OTG_FS ics ICS_AUTO {
USB_Interrupt_Proc();
kk=HID_Read();
if(kk!=0)
{
veri_1=readbuff[0];
veri_2=readbuff[1];
veri_Role=readbuff[2];
lo(frekans)=readbuff[4];
hi(frekans)=readbuff[5];
lo(genlik)=readbuff[6];
hi(genlik)=readbuff[7];
XR2206_Mod=readbuff[8];
frek_araligi=readbuff[9];
SayiciDegeri2=readbuff[10];
if(readbuff[3]=='o')
HID_Write(&writebuff,64);
}
}