File: 0088-Remove-unude-set_configuration-code-for-CPLD-updates.patch

package info (click to toggle)
hackrf 2015.07.2-11
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 69,764 kB
  • ctags: 9,327
  • sloc: ansic: 13,907; python: 696; vhdl: 218; sh: 32; makefile: 15
file content (29 lines) | stat: -rw-r--r-- 985 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 2dffba9c479c2c5afe795ad30428f3cb8f9b16a4 Mon Sep 17 00:00:00 2001
From: Dominic Spill <dominicgs@gmail.com>
Date: Thu, 21 Jul 2016 13:50:14 +0100
Subject: [PATCH 088/111] Remove unude set_configuration() code for CPLD
 updates  - now handled under the default configuration

---
 firmware/hackrf_usb/hackrf_usb.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/firmware/hackrf_usb/hackrf_usb.c b/firmware/hackrf_usb/hackrf_usb.c
index 8a4357a..2c5ec3d 100644
--- a/firmware/hackrf_usb/hackrf_usb.c
+++ b/firmware/hackrf_usb/hackrf_usb.c
@@ -177,11 +177,6 @@ void usb_configuration_changed(
 		// transceiver configuration
 		cpu_clock_pll1_max_speed();
 		led_on(LED1);
-	} else if( device->configuration->number == 2 ) {
-		// CPLD update configuration
-		cpu_clock_pll1_max_speed();
-		usb_endpoint_init(&usb_endpoint_bulk_out);
-		start_cpld_update = true;
 	} else {
 		/* Configuration number equal 0 means usb bus reset. */
 		cpu_clock_pll1_low_speed();
-- 
2.1.4