Commit d76cee5a authored by Alessandro Rubini's avatar Alessandro Rubini

fdelay-lib.h: better macros to convert channel number

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 5d091940
...@@ -26,7 +26,8 @@ extern "C" { ...@@ -26,7 +26,8 @@ extern "C" {
numbers (as seen on the mezzanine's front panel) to convention used numbers (as seen on the mezzanine's front panel) to convention used
by the drive (0..3). We keep 0..3 indexing to maintain library by the drive (0..3). We keep 0..3 indexing to maintain library
compatibility. */ compatibility. */
#define FDELAY_OUTPUT(out) ((out) + 1) #define FDELAY_OUTPUT_HW_TO_USER(out) ((out) + 1)
#define FDELAY_OUTPUT_USER_TO_HW(out) ((out) - 1)
/* Opaque data type used as token */ /* Opaque data type used as token */
struct fdelay_board; struct fdelay_board;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment