From: Gerhard Sittig Date: Mon, 10 Jan 2022 21:26:19 +0000 (+0100) Subject: kingst-la2016: style nits, consistent #define indentation X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e9430410c4fe1f7376062a718e365e31ff0bf254;p=libsigrok.git kingst-la2016: style nits, consistent #define indentation Consistently use TAB characters to indent #define directives' values. Remove an unused directive. See whitespace ignoring diff for review. --- diff --git a/src/hardware/kingst-la2016/protocol.c b/src/hardware/kingst-la2016/protocol.c index af1bb357..f8b4547e 100644 --- a/src/hardware/kingst-la2016/protocol.c +++ b/src/hardware/kingst-la2016/protocol.c @@ -36,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 diff --git a/src/hardware/kingst-la2016/protocol.h b/src/hardware/kingst-la2016/protocol.h index b0ff0c0a..4065e6bc 100644 --- a/src/hardware/kingst-la2016/protocol.h +++ b/src/hardware/kingst-la2016/protocol.h @@ -26,15 +26,13 @@ #include #include -#define LOG_PREFIX "kingst-la2016" +#define LOG_PREFIX "kingst-la2016" #define LA2016_VID 0x77a1 #define LA2016_PID 0x01a2 #define USB_INTERFACE 0 #define USB_CONFIGURATION 1 -#define LA2016_BULK_MAX 8388608 - /* * On Windows sigrok uses WinUSB RAW_IO policy which requires the * USB transfer buffer size to be a multiple of the endpoint max packet @@ -46,13 +44,13 @@ #define LA2016_USB_BUFSZ (256 * 2 * LA2016_EP6_PKTSZ) /* 256KB buffer */ #define MAX_RENUM_DELAY_MS 3000 -#define DEFAULT_TIMEOUT_MS 200 +#define DEFAULT_TIMEOUT_MS 200 -#define LA2016_THR_VOLTAGE_MIN 0.40 -#define LA2016_THR_VOLTAGE_MAX 4.00 +#define LA2016_THR_VOLTAGE_MIN 0.40 +#define LA2016_THR_VOLTAGE_MAX 4.00 -#define LA2016_NUM_SAMPLES_MIN 256 -#define LA2016_NUM_SAMPLES_MAX (10UL * 1000 * 1000 * 1000) +#define LA2016_NUM_SAMPLES_MIN 256 +#define LA2016_NUM_SAMPLES_MAX (10UL * 1000 * 1000 * 1000) typedef struct pwm_setting_dev { uint32_t period; @@ -72,8 +70,8 @@ typedef struct capture_info { uint32_t write_pos; } capture_info_t; -#define NUM_PACKETS_IN_CHUNK 5 -#define TRANSFER_PACKET_LENGTH 16 +#define NUM_PACKETS_IN_CHUNK 5 +#define TRANSFER_PACKET_LENGTH 16 typedef struct pwm_setting { uint8_t enabled;