1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-23 20:33:45 +02:00

ubb-la/ubb-la.c (INITIAL_SKIP): describe how the value was obtained

This commit is contained in:
Werner Almesberger 2013-01-26 19:55:44 -03:00
parent a947b5ef85
commit 4ceee66c79

View File

@ -29,6 +29,13 @@
#define KEY_MASK 0x5fc0000
/*
* The initial skip is for samples loaded into the FIFO when starting the
* command, before waiting for the trigger. A completely filled FIFO would
* hold 16 * 32 bits or 128 samples. In reality, we observe 122 samples for
* sample rates up to 24 MHz and 123 samples for 42 or 56 MHz.
*/
#define INITIAL_SKIP 122 /* should be 123 for higher speeds */