|
Re: IFI_Initialization
Be careful of the while(1) {..} loop. There is the timed stuff (17 or 26ms packet rate) and then the "high speed loop". The problem is that if you do significant processing in the slow loop (say, reading a LEGO sensor using some delays & bit twiddling) and burn 2-3 ms, then all of a sudden your "fast" code has a big gap where it isn't being called very fast.
Better is to set up a periodic timer interrupt, say at 4 khz, and put your fast code in there.
IFI probably kept their initialization code secret to maintain control over the user chip and to allow them the flexibility to change the interface to their radio system without impacting the users.
|