X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsysclk-lwla%2Fprotocol.h;h=25f349d1757c4682b934ab53d2065a603895cd01;hb=c05a0ba528e96671b1c94c1971d4671b4767f0e9;hp=eb6cef3d17253aace0003ad50a6c77b1db5edac2;hpb=f3f19d1131025b68d29a11273b627c83d748e7ea;p=libsigrok.git diff --git a/src/hardware/sysclk-lwla/protocol.h b/src/hardware/sysclk-lwla/protocol.h index eb6cef3d..25f349d1 100644 --- a/src/hardware/sysclk-lwla/protocol.h +++ b/src/hardware/sysclk-lwla/protocol.h @@ -22,11 +22,11 @@ #define LOG_PREFIX "sysclk-lwla" -#include "lwla.h" -#include "libsigrok.h" -#include "libsigrok-internal.h" #include #include +#include +#include "libsigrok-internal.h" +#include "lwla.h" /* For now, only the LWLA1034 is supported. */ @@ -35,7 +35,7 @@ #define USB_VID_PID "2961.6689" #define USB_INTERFACE 0 -#define USB_TIMEOUT 3000 /* ms */ +#define USB_TIMEOUT_MS 3000 #define NUM_CHANNELS 34 @@ -46,7 +46,7 @@ /** Unit and packet size for the sigrok logic datafeed. */ #define UNIT_SIZE ((NUM_CHANNELS + 7) / 8) -#define PACKET_LENGTH 10000 /* units */ +#define PACKET_LENGTH (10 * 1000) /* units */ /** Size of the acquisition buffer in device memory units. */