]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/kingst-la2016/protocol.c
kingst-la2016: style nits, consistent #define indentation
[libsigrok.git] / src / hardware / kingst-la2016 / protocol.c
index c3e51722c4156522cd5429373dbbbc889f587943..f8b4547ebb82177966796dd74c60b8afadc57892 100644 (file)
 
 #include <config.h>
 
-#include <errno.h>
-#include <glib.h>
-#include <glib/gstdio.h>
-#include <inttypes.h>
 #include <libsigrok/libsigrok.h>
-#include <math.h>
-#include <stdint.h>
-#include <stdio.h>
 #include <string.h>
 
 #include "libsigrok-internal.h"
@@ -43,9 +36,9 @@
 
 #define MAX_SAMPLE_RATE_LA2016 SR_MHZ(200)
 #define MAX_SAMPLE_RATE_LA1016 SR_MHZ(100)
-#define MAX_SAMPLE_DEPTH 10e9
-#define MAX_PWM_FREQ     SR_MHZ(20)
-#define PWM_CLOCK        SR_MHZ(200)   /* this is 200MHz for both the LA2016 and LA1016 */
+#define MAX_SAMPLE_DEPTH       10e9
+#define MAX_PWM_FREQ           SR_MHZ(20)
+#define PWM_CLOCK              SR_MHZ(200)     /* 200MHz for both LA2016 and LA1016 */
 
 /* usb vendor class control requests to the cypress FX2 microcontroller */
 #define CMD_FPGA_ENABLE        0x10