X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fchronovu-la8%2Fprotocol.h;h=146fc112d5955feb4b8fb6c031bb76e665711267;hb=fe9d5abefcebb3a382d990e069d93c28e9541e35;hp=8092655002f21f40ad3f31280d35342ec2da3b64;hpb=29a27196a13de2ffd9b671185e4b464b9db9b549;p=libsigrok.git diff --git a/hardware/chronovu-la8/protocol.h b/hardware/chronovu-la8/protocol.h index 80926550..146fc112 100644 --- a/hardware/chronovu-la8/protocol.h +++ b/hardware/chronovu-la8/protocol.h @@ -27,14 +27,7 @@ #include "libsigrok.h" #include "libsigrok-internal.h" -/* Message logging helpers with subsystem-specific prefix string. */ -#define LOG_PREFIX "la8: " -#define sr_log(l, s, args...) sr_log(l, LOG_PREFIX s, ## args) -#define sr_spew(s, args...) sr_spew(LOG_PREFIX s, ## args) -#define sr_dbg(s, args...) sr_dbg(LOG_PREFIX s, ## args) -#define sr_info(s, args...) sr_info(LOG_PREFIX s, ## args) -#define sr_warn(s, args...) sr_warn(LOG_PREFIX s, ## args) -#define sr_err(s, args...) sr_err(LOG_PREFIX s, ## args) +#define LOG_PREFIX "chronovu-la8" #define USB_VENDOR_ID 0x0403 #define USB_DESCRIPTION "ChronoVu LA8" @@ -46,6 +39,7 @@ #define TRIGGER_TYPE "01" #define SDRAM_SIZE (8 * 1024 * 1024) #define MIN_NUM_SAMPLES 1 +#define MAX_NUM_SAMPLES SDRAM_SIZE #define BS 4096 /* Block size */ #define NUM_BLOCKS 2048 /* Number of blocks */