PortaPack: Address some unused variable/function warnings.
This commit is contained in:
@ -861,13 +861,11 @@ static ui_point_t portapack_ui_draw_db(ui_point_t point, const uint32_t db) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static ui_point_t portapack_ui_draw_bw_mhz(ui_point_t point, const uint64_t hz) {
|
static ui_point_t portapack_ui_draw_bw_mhz(ui_point_t point, const uint64_t hz) {
|
||||||
const uint32_t frac_digits = 2;
|
|
||||||
const uint32_t lsd = 1000000 / 100;
|
const uint32_t lsd = 1000000 / 100;
|
||||||
const uint32_t round_offset = lsd / 2;
|
const uint32_t round_offset = lsd / 2;
|
||||||
|
|
||||||
const uint64_t hz_offset = hz + round_offset;
|
const uint64_t hz_offset = hz + round_offset;
|
||||||
const uint32_t mhz = hz_offset / 1000000;
|
const uint32_t mhz = hz_offset / 1000000;
|
||||||
const uint32_t hz_remainder = hz_offset - (mhz * 1000000);
|
|
||||||
const uint32_t frac = hz_offset / lsd;
|
const uint32_t frac = hz_offset / lsd;
|
||||||
|
|
||||||
point = portapack_lcd_draw_int(point, mhz, 2);
|
point = portapack_lcd_draw_int(point, mhz, 2);
|
||||||
@ -931,6 +929,8 @@ static void portapack_ui_set_sample_rate(uint32_t sample_rate) {
|
|||||||
#if 0
|
#if 0
|
||||||
ui_point_t point = { VALUES_X, 320 - 1 * 16 };
|
ui_point_t point = { VALUES_X, 320 - 1 * 16 };
|
||||||
portapack_lcd_draw_int(point, sample_rate, 8);
|
portapack_lcd_draw_int(point, sample_rate, 8);
|
||||||
|
#else
|
||||||
|
(void)sample_rate;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -994,6 +994,7 @@ static void portapack_ui_set_bb_tx_vga_gain(const uint32_t gain_db) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void portapack_ui_set_first_if_frequency(const uint64_t frequency) {
|
static void portapack_ui_set_first_if_frequency(const uint64_t frequency) {
|
||||||
|
(void)frequency;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void portapack_ui_set_filter(const rf_path_filter_t filter) {
|
static void portapack_ui_set_filter(const rf_path_filter_t filter) {
|
||||||
@ -1017,6 +1018,7 @@ static void portapack_ui_set_filter(const rf_path_filter_t filter) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void portapack_ui_set_antenna_bias(bool antenna_bias) {
|
static void portapack_ui_set_antenna_bias(bool antenna_bias) {
|
||||||
|
(void)antenna_bias;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const hackrf_ui_t portapack_ui = {
|
static const hackrf_ui_t portapack_ui = {
|
||||||
|
@ -143,12 +143,14 @@ static usb_request_handler_fn vendor_request_handler[] = {
|
|||||||
static const uint32_t vendor_request_handler_count =
|
static const uint32_t vendor_request_handler_count =
|
||||||
sizeof(vendor_request_handler) / sizeof(vendor_request_handler[0]);
|
sizeof(vendor_request_handler) / sizeof(vendor_request_handler[0]);
|
||||||
|
|
||||||
|
#ifndef USER_INTERFACE_PORTAPACK
|
||||||
static void operacake_usb_handlers_init(void) {
|
static void operacake_usb_handlers_init(void) {
|
||||||
vendor_request_handler[HACKRF_VENDOR_REQUEST_OPERACAKE_GET_BOARDS] = usb_vendor_request_operacake_get_boards;
|
vendor_request_handler[HACKRF_VENDOR_REQUEST_OPERACAKE_GET_BOARDS] = usb_vendor_request_operacake_get_boards;
|
||||||
vendor_request_handler[HACKRF_VENDOR_REQUEST_OPERACAKE_SET_PORTS ] = usb_vendor_request_operacake_set_ports;
|
vendor_request_handler[HACKRF_VENDOR_REQUEST_OPERACAKE_SET_PORTS ] = usb_vendor_request_operacake_set_ports;
|
||||||
vendor_request_handler[HACKRF_VENDOR_REQUEST_OPERACAKE_SET_RANGES] = usb_vendor_request_operacake_set_ranges;
|
vendor_request_handler[HACKRF_VENDOR_REQUEST_OPERACAKE_SET_RANGES] = usb_vendor_request_operacake_set_ranges;
|
||||||
vendor_request_handler[HACKRF_VENDOR_REQUEST_OPERACAKE_GPIO_TEST ] = usb_vendor_request_operacake_gpio_test;
|
vendor_request_handler[HACKRF_VENDOR_REQUEST_OPERACAKE_GPIO_TEST ] = usb_vendor_request_operacake_gpio_test;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
usb_request_status_t usb_vendor_request(
|
usb_request_status_t usb_vendor_request(
|
||||||
usb_endpoint_t* const endpoint,
|
usb_endpoint_t* const endpoint,
|
||||||
|
Reference in New Issue
Block a user