Add SR_HZ macro for consistency.
This commit is contained in:
parent
59df0c77e2
commit
c91404191e
|
@ -59,7 +59,7 @@ static uint64_t supported_samplerates[] = {
|
|||
static struct sr_samplerates samplerates = {
|
||||
SR_KHZ(200),
|
||||
SR_MHZ(200),
|
||||
0,
|
||||
SR_HZ(0),
|
||||
supported_samplerates,
|
||||
};
|
||||
|
||||
|
|
|
@ -64,9 +64,9 @@ static int capabilities[] = {
|
|||
};
|
||||
|
||||
static struct sr_samplerates samplerates = {
|
||||
1,
|
||||
SR_HZ(1),
|
||||
SR_GHZ(1),
|
||||
1,
|
||||
SR_HZ(1),
|
||||
NULL,
|
||||
};
|
||||
|
||||
|
|
|
@ -47,9 +47,9 @@ static int capabilities[] = {
|
|||
};
|
||||
|
||||
static uint64_t supported_samplerates[] = {
|
||||
100,
|
||||
200,
|
||||
500,
|
||||
SR_HZ(100),
|
||||
SR_HZ(200),
|
||||
SR_HZ(500),
|
||||
SR_KHZ(1),
|
||||
SR_KHZ(2),
|
||||
SR_KHZ(5),
|
||||
|
@ -71,9 +71,9 @@ static uint64_t supported_samplerates[] = {
|
|||
};
|
||||
|
||||
static struct sr_samplerates samplerates = {
|
||||
100,
|
||||
SR_HZ(100),
|
||||
SR_MHZ(200),
|
||||
0,
|
||||
SR_HZ(0),
|
||||
supported_samplerates,
|
||||
};
|
||||
|
||||
|
|
|
@ -92,10 +92,10 @@ static int capabilities[] = {
|
|||
};
|
||||
|
||||
static struct sr_samplerates samplerates = {
|
||||
10,
|
||||
SR_HZ(10),
|
||||
SR_MHZ(200),
|
||||
1,
|
||||
0,
|
||||
SR_HZ(1),
|
||||
NULL,
|
||||
};
|
||||
|
||||
/* List of struct sr_serial_device_instance */
|
||||
|
|
|
@ -89,7 +89,7 @@ static uint64_t supported_samplerates[] = {
|
|||
static struct sr_samplerates samplerates = {
|
||||
SR_KHZ(200),
|
||||
SR_MHZ(24),
|
||||
0,
|
||||
SR_HZ(0),
|
||||
supported_samplerates,
|
||||
};
|
||||
|
||||
|
|
|
@ -88,8 +88,8 @@ static libusb_context *usb_context = NULL;
|
|||
* that high.
|
||||
*/
|
||||
static uint64_t supported_samplerates[] = {
|
||||
100,
|
||||
500,
|
||||
SR_HZ(100),
|
||||
SR_HZ(500),
|
||||
SR_KHZ(1),
|
||||
SR_KHZ(5),
|
||||
SR_KHZ(25),
|
||||
|
@ -110,7 +110,9 @@ static uint64_t supported_samplerates[] = {
|
|||
};
|
||||
|
||||
static struct sr_samplerates samplerates = {
|
||||
0, 0, 0,
|
||||
SR_HZ(0),
|
||||
SR_HZ(0),
|
||||
SR_HZ(0),
|
||||
supported_samplerates,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue