Add Daq_FillLevel() functions to check for percentage of filled memory.
Can be used as alternative to Daq_GetSize(), takes into account the
allocated DAQ size for eacht channel.
The function call without argument returns the highest fill level of
any active channel.
Add Loop Interrupt infrastructure. This will allow the trigger loops
to interrupt themselves and store the current loop iterator position.
The next call to the same function will resume at the interrupted
position.
Loop Interrupts: all Calibrate Loops are equipped with the functionality
to interrupt at high RAM fill level.
Loop Interrupts: all DacScan (1D) Loops are equipped with the functionality
to interrupt at high RAM fill level.
At startup issue a LoopInterruptReset().
Do not reset the dac1start value to 0 but to dac1low, stay in scan boundaries!
Loop Interrupts: all DacDacScan (2D) Loops are equipped with the functionality
to interrupt at high RAM fill level.
Set the interrupt level for filled DTB RAM allocated to the DAQ to 90%.
Loop functions return boolean to indicate whether the Loop is finished or
just interrupted for readout. TRUE is returned when the loop reached its end,
FALSE in case an interrupt is issued. In that case, read out the DAQ buffer
and restart the same Loop command with the same parameters again.
Update RPC Interface with new and changed calls of the Loop Interrupt
functions.
Increase SW version counter to 2.10 and add the corresponding flash file.
SW 2.11: Add additional safety checks to LoopInterrupt system:
* Limit number of resumes to 20, just in case the user wrongly uses
  the functions and doesn't actually read out the data
* Add LoopId to check if the same loop is about to be resumed. If
  not, reset the interrupt and start from scratch.
* Add LoopInterruptReset() in Daq_Close(). When restarting a DAQ we
  definitely want to restart the Loop from scratch.
Firmware 2.14:
* LoopTriggerDelay is now in clock cycles rather than microseconds
* Added ToggleLed() function for simpler LED access
* Use some LEDs:
  LED1: DAQ is running
  LED3: Trigger Loop is active
Merge branch 'master' of github.com:psi46/pixel-dtb-firmware

Conflicts:
	software/dtb_expert/dtb_config.h
	software/dtb_expert/rpc_dtb.cc