#if SS_VER == SS_VER_2_1
uint8_t glitch_loop(uint8_t cmd, uint8_t scmd, uint8_t len, uint8_t* in)
#else
uint8_t glitch_loop(uint8_t* in, uint8_t len)
#endif
{
volatile uint16_t i, j;
volatile uint32_t cnt;
cnt = 0;
trigger_high();
for(i=0; i<50; i++){
for(j=0; j<50; j++){
cnt++;
}
}
trigger_low();
simpleserial_put('r', 4, (uint8_t*)&cnt);
#if SS_VER == SS_VER_2_1
return (cnt != 2500) ? 0x10 : 0x00;
#else
return (cnt != 2500);
#endif
}
i am getting result from the code
rC4090000
z00
but but the cnt value should be 2500 then why am i getting this value can you explain.