Kludge Tracker: Gnuradio - v3.4.0-101-g7e2b45b

Kludge Summary of gnuradio

Total Kludges 512
Total Subdirs 138

All Directories within gnuradio

All Files within gnuradio

Kludge Snippets in gnuradio

gnuradio/config/gr_gprof.m4

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
18        dnl the Free Software Foundation, Inc., 51 Franklin Street,
19        dnl Boston, MA 02110-1301, USA.
20        dnl 
21        
22        dnl FIXME probably need to add linker flag too...
23        
24        AC_DEFUN([GR_SET_GPROF],[
25          dnl Check for --with-gprof
26          AC_MSG_CHECKING([whether user wants gprof])
				

gnuradio/config/grc_gnuradio_core.m4

Category FIXME
Committer eb
Commit ID 8b9d8612e3e32a8037782e027690e14b29254335
41        	dnl look for fast CBLAS for GSL, but don't complain if not found
42        	ACX_CBLAS([],[])
43                dnl check for GSL
44        	PKG_CHECK_MODULES(GSL, gsl >= 1.10,
45        	    [], dnl FIXME remove -lgslcblas from GSL_LIBS if we found a better CBLAS_LIBS above
46        	    [passed=no;AC_MSG_RESULT([gnuradio-core requires package gsl >= 1.10, not found.])])
47            fi
48        
49            if test $passed != with; then
				

gnuradio/configure.ac

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
182        fi
183        AC_SUBST(CXX_FOR_BUILD)
184        
185        dnl Check for SysV shm (mandatory)
186        dnl FIXME this is no longer mandatory.  Check the macro.
187        GR_SYSV_SHM
188        
189        dnl Checks for header files.
190        AC_HEADER_STDC
				

gnuradio/docs/doxygen/Doxyfile.in

Category TODO
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
410        
411        SORT_BY_SCOPE_NAME     = NO
412        
413        # The GENERATE_TODOLIST tag can be used to enable (YES) or 
414        # disable (NO) the todo list. This list is created by putting \todo 
415        # commands in the documentation.
416        
417        GENERATE_TODOLIST      = NO
418        
				

gnuradio/docs/doxygen/other/doxypy.py — 1

PyFlakes undefined name 'options'
Committer jcorgan
Commit ID 74f527a8840e91c420962f26bea0e9f299f4b514
84        				if match:
85        					self.current_state = to_state
86        					self.current_input = input
87        					self.current_transition = transition
88        					if options.debug:
89        						print >>sys.stderr, "# FSM: executing (%s -> %s) for line '%s'" % (from_state, to_state, input)
90        					callback(match)
91        					return
92        
				

gnuradio/docs/doxygen/other/doxypy.py — 2

PyFlakes undefined name 'options'
Committer eb
Commit ID 7811f7f3d743aebafbe5daf2f5088d139b774459
178        
179        	def __closeComment(self):
180        		"""Appends any open comment block and triggering block to the output."""
181        		
182        		if options.autobrief:
183        			if len(self.comment) == 1 \
184        			or (len(self.comment) > 2 and self.comment[1].strip() == ''):
185        				self.comment[0] = self.__docstringSummaryToBrief(self.comment[0])
186        			
				

gnuradio/docs/doxygen/other/doxypy.py — 3

PyFlakes undefined name 'options'
Committer jcorgan
Commit ID 74f527a8840e91c420962f26bea0e9f299f4b514
206        	def __flushBuffer(self):
207        		"""Flushes the current outputbuffer to the outstream."""
208        		if self.output:
209        			try:
210        				if options.debug:
211        					print >>sys.stderr, "# OUTPUT: ", self.output
212        				print >>self.outstream, "\n".join(self.output)
213        				self.outstream.flush()
214        			except IOError:
				

gnuradio/docs/doxygen/other/doxypy.py — 4

PyFlakes undefined name 'options'
Committer jcorgan
Commit ID 74f527a8840e91c420962f26bea0e9f299f4b514
226        		"""Restarts a new comment search for a different triggering line.
227        		
228        		Closes the current commentblock and starts a new comment search.
229        		"""
230        		if options.debug:
231        			print >>sys.stderr, "# CALLBACK: resetCommentSearch" 
232        		self.__closeComment()
233        		self.startCommentSearch(match)
234        	
				

gnuradio/docs/doxygen/other/doxypy.py — 5

PyFlakes undefined name 'options'
Committer jcorgan
Commit ID 74f527a8840e91c420962f26bea0e9f299f4b514
237        		
238        		Saves the triggering line, resets the current comment and saves
239        		the current indentation.
240        		"""
241        		if options.debug:
242        			print >>sys.stderr, "# CALLBACK: startCommentSearch"
243        		self.defclass = [self.fsm.current_input]
244        		self.comment = []
245        		self.indent = match.group(1)
				

gnuradio/docs/doxygen/other/doxypy.py — 6

PyFlakes undefined name 'options'
Committer jcorgan
Commit ID 74f527a8840e91c420962f26bea0e9f299f4b514
249        		
250        		Closes the current commentblock, resets	the triggering line and
251        		appends the current line to the output.
252        		"""
253        		if options.debug:
254        			print >>sys.stderr, "# CALLBACK: stopCommentSearch" 
255        		self.__closeComment()
256        		
257        		self.defclass = []
				

gnuradio/docs/doxygen/other/doxypy.py — 7

PyFlakes undefined name 'options'
Committer jcorgan
Commit ID 74f527a8840e91c420962f26bea0e9f299f4b514
261        		"""Appends a line in the FILEHEAD state.
262        		
263        		Closes the open comment	block, resets it and appends the current line.
264        		""" 
265        		if options.debug:
266        			print >>sys.stderr, "# CALLBACK: appendFileheadLine" 
267        		self.__closeComment()
268        		self.comment = []
269        		self.output.append(self.fsm.current_input)
				

gnuradio/docs/doxygen/other/doxypy.py — 8

PyFlakes undefined name 'options'
Committer jcorgan
Commit ID 74f527a8840e91c420962f26bea0e9f299f4b514
273        		
274        		The comment delimiter is removed from multiline start and ends as
275        		well as singleline comments.
276        		"""
277        		if options.debug:
278        			print >>sys.stderr, "# CALLBACK: appendCommentLine" 
279        		(from_state, to_state, condition, callback) = self.fsm.current_transition
280        		
281        		# single line comment
				

gnuradio/docs/doxygen/other/doxypy.py — 9

PyFlakes undefined name 'options'
Committer jcorgan
Commit ID 74f527a8840e91c420962f26bea0e9f299f4b514
310        			self.comment.append(self.fsm.current_input)
311        	
312        	def appendNormalLine(self, match):
313        		"""Appends a line to the output."""
314        		if options.debug:
315        			print >>sys.stderr, "# CALLBACK: appendNormalLine" 
316        		self.output.append(self.fsm.current_input)
317        		
318        	def appendDefclassLine(self, match):
				

gnuradio/docs/doxygen/other/doxypy.py — 10

PyFlakes undefined name 'options'
Committer jcorgan
Commit ID 74f527a8840e91c420962f26bea0e9f299f4b514
316        		self.output.append(self.fsm.current_input)
317        		
318        	def appendDefclassLine(self, match):
319        		"""Appends a line to the triggering block."""
320        		if options.debug:
321        			print >>sys.stderr, "# CALLBACK: appendDefclassLine" 
322        		self.defclass.append(self.fsm.current_input)
323        	
324        	def makeCommentBlock(self):
				

gnuradio/docs/howto-write-a-block/howto_1.i

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
14        /*
15         * First arg is the package prefix.
16         * Second arg is the name of the class minus the prefix.
17         *
18         * This does some behind-the-scenes magic so we can
19         * access howto_square_ff from python as howto.square_ff
20         */
21        GR_SWIG_BLOCK_MAGIC(howto,square_ff);
22        
				

gnuradio/docs/howto-write-a-block/src_lib_Makefile_1.am

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
14        # These are the source files that go into the shared library
15        _howto_la_SOURCES = 			\
16        	howto_square_ff.cc		
17        
18        # magic flags
19        _howto_la_LDFLAGS = -module -avoid-version
20        
21        # These headers get installed in ${prefix}/include/gnuradio
22        grinclude_HEADERS =			\
				

gnuradio/docs/howto-write-a-block/src_lib_Makefile_2.am

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
62        _howto_la_SOURCES = 			\
63        	howto.cc			\
64        	howto_square_ff.cc		
65        
66        # magic flags
67        _howto_la_LDFLAGS = -module -avoid-version
68        
69        # link the library against some comon swig runtime code and the 
70        # c++ standard library
				

gnuradio/gcell/apps/gen_script.py

Category FIXME
Committer Johnathan Corgan
Commit ID 2af86109a0645d5f014205f519f50da22cc7cda9
56            if len(args) != 0:
57                parser.print_help()
58                sys.exit(1)
59        
60            #FIXME to use git now
61            svn_rev = get_svn_rev()
62        
63            os.environ['TZ'] = 'PST8PDT'        # always pacific
64            time.tzset()
				

gnuradio/gcell/include/gcell/gc_jd_queue_data.h

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
33         * This is the main data structure shared between PPEs and SPEs.
34         * It is used to enqueue work for SPEs.  SPEs or PPEs may enqueue
35         * work.  SPE's dequeue from here.
36         *
37         * FIXME make it lock free ;)  For now, use a spin lock.
38         *
39         * (Fills a single cache line)
40         */
41        typedef struct gc_jd_queue
				

gnuradio/gcell/lib/general/spu/qa_memset.c

Category FIXME
Committer eb
Commit ID d5e5244a9ce8c5c3847c133c1107fba2af0e90c3
30        #define	MAX_OFFSET    32
31        #define	ALIGNMENT     16
32        #define	K	      0xA5
33        
34        // FIXME should be passed at gcell init time
35        //static const int TIMEBASE = 79800000; // ps3
36        static const int TIMEBASE = 26666666; // qs21
37        
38        typedef void* (*memset_fptr)(void *s, int val, size_t n);
				

gnuradio/gcell/lib/runtime/gc_jd_stack.c

Category FIXME
Committer eb
Commit ID 06e7a0313a09ee812061d855a47206ed303eac7f
23        #include <gcell/memory_barrier.h>
24        
25        /*
26         * begin extract from ppu_intrinics.h
27         * FIXME handle this a different way
28         */
29        
30        #if !defined(__PPU__) && !defined(__ppc__) && !defined(__ppc64__)
31            && !defined(__GNUC__)
				

gnuradio/gcell/lib/runtime/gc_job_manager_impl.cc — 1

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
63        
64        static const unsigned int DEFAULT_MAX_JOBS = 128;
65        static const unsigned int DEFAULT_MAX_CLIENT_THREADS = 64;
66        
67        // FIXME this really depends on the SPU code...
68        static const unsigned int MAX_TOTAL_INDIRECT_LENGTH = 16 * 1024;
69        
70        
71        static bool          s_key_initialized = false;
				

gnuradio/gcell/lib/runtime/gc_job_manager_impl.cc — 2

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
179        	// If we're gang scheduling we'll never get scheduled if we
180        	// ask for more than are available.
181        	throw std::out_of_range("gang_scheduling: not enough spes available");
182              }
183              else {	// FIXME clamp to usable.  problem on PS3 when overcommited
184        	fprintf(stderr, "gc_job_manager: clamping nspes to %d\n", nusable_spes);
185        	d_options.nspes = nusable_spes;
186              }
187            }
				

gnuradio/gcell/lib/runtime/gc_job_manager_impl.cc — 3

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
246        		   | SPE_CFG_SIGNOTIFY1_OR
247        		   | SPE_CFG_SIGNOTIFY2_OR);
248          
249          for (unsigned int i = 0; i < d_options.nspes; i++){
250            // FIXME affinity stuff goes here
251            d_worker[i].spe_ctx = spe_context_create(spe_flags, d_gang.get());;
252            if (d_worker[i].spe_ctx == 0){
253              perror("spe_context_create");
254              throw std::runtime_error("spe_context_create");
				

gnuradio/gcell/lib/runtime/gc_job_manager_impl.cc — 4

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
644        
645              if (mode == GC_WAIT_ALL && ndone == njobs)
646        	break;
647        
648              // FIXME what happens when somebody calls shutdown?
649        
650              cti->d_cond.wait(l);	// wait for event handler to wake us up
651            }
652        
				

gnuradio/gcell/lib/runtime/gc_job_manager_impl.cc — 5

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
736          pthread_attr_t attr;
737          pthread_attr_init(&attr);
738          pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
739        
740          // FIXME save sigprocmask
741          // FIXME set sigprocmask
742        
743          int r = pthread_create(thread, &attr, start_routine, arg);
744            
				

gnuradio/gcell/lib/runtime/gc_job_manager_impl.cc — 6

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
737          pthread_attr_init(&attr);
738          pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
739        
740          // FIXME save sigprocmask
741          // FIXME set sigprocmask
742        
743          int r = pthread_create(thread, &attr, start_routine, arg);
744            
745          // FIXME restore sigprocmask
				

gnuradio/gcell/lib/runtime/gc_job_manager_impl.cc — 7

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
741          // FIXME set sigprocmask
742        
743          int r = pthread_create(thread, &attr, start_routine, arg);
744            
745          // FIXME restore sigprocmask
746        
747          if (r != 0){
748            pthread_create_failure_msg(r, msg);
749            return false;
				

gnuradio/gcell/lib/runtime/gc_job_manager_impl.cc — 8

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
819          }
820        
821          if (!ok){
822            //
823            // FIXME Clean up the mess.  Need to terminate event handler and all workers.
824            //
825            // this should cause the workers to exit, unless they're seriously broken
826            send_all_spes(MK_MBOX_MSG(OP_EXIT, 0));
827        
				

gnuradio/gcell/lib/runtime/gc_job_manager_impl.cc — 9

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
953            if (cti != last_cti){	// new client?
954        
955              // yes.  signal old client, unlock old, lock new
956        
957              // FIXME we could distinguish between CT_WAIT_ALL & CT_WAIT_ANY
958        
959              if (last_cti->d_state == CT_WAIT_ANY || last_cti->d_state == CT_WAIT_ALL)
960        	last_cti->d_cond.notify_one();	// wake client thread up
961        
				

gnuradio/gcell/lib/runtime/gc_job_manager_impl.cc — 10

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
1135            int nevents = spe_event_wait(d_spe_event_handler.ptr,
1136        				 events, MAX_EVENTS, TIMEOUT);
1137            if (nevents < 0){
1138              perror("spe_wait_event");
1139              // FIXME bail?
1140            }
1141            for (int i = 0; i < nevents; i++){
1142              handle_event(&events[i]);
1143            }
				

gnuradio/gcell/lib/runtime/qa_jd_queue.cc — 1

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
64        
65          CPPUNIT_ASSERT(gc_jd_queue_dequeue(&queue) == 0);
66        }
67        
68        // FIXME multithreaded (running on PPE)
69        void
70        qa_jd_queue::t2()
71        {
72        }
				

gnuradio/gcell/lib/runtime/qa_jd_queue.cc — 2

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
70        qa_jd_queue::t2()
71        {
72        }
73        
74        // FIXME multithreaded (running on PPE & SPE)
75        void
76        qa_jd_queue::t3()
77        {
78        }
				

gnuradio/gcell/lib/runtime/qa_jd_stack.cc

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
59        
60          CPPUNIT_ASSERT(gc_jd_stack_pop(&stack) == 0);
61        }
62        
63        // FIXME multithreaded (running on PPE)
64        void
65        qa_jd_stack::t2()
66        {
67        }
				

gnuradio/gcell/lib/runtime/spu/gc_main.c

Category FIXME
Committer eb
Commit ID 28361a1bfc8f155a7b1367a234c9256b7b69da38
375        		   && dma_len <= (eaa->arg[i].get_size + offset + CACHE_LINE_SIZE - 1));
376        	  }
377        
378        	  // add to dma get list 
379        	  // FIXME (someday) the dma list is where the JS_BAD_EAH limitation comes from
380        
381        	  while (dma_len != 0){
382        	    int n = MIN(dma_len, MFC_MAX_DMA_SIZE);
383        	    dma_get_list[gli].size = n;
				

gnuradio/gcell/lib/wrapper/qa_gcp_fft_1d_r2.cc — 1

Category FIXME
Committer eb
Commit ID b9ba2711addfc9057c136b520afc9e121ec19be9
101        
102        void
103        qa_gcp_fft_1d_r2::t3()
104        {
105          // FIXME Test fwd and inv with windowing option
106        }
107        
108        void
109        qa_gcp_fft_1d_r2::t4()
				

gnuradio/gcell/lib/wrapper/qa_gcp_fft_1d_r2.cc — 2

Category FIXME
Committer eb
Commit ID b9ba2711addfc9057c136b520afc9e121ec19be9
107        
108        void
109        qa_gcp_fft_1d_r2::t4()
110        {
111          // FIXME Test fwd and inv with shift option
112        }
113        
114        static inline float
115        abs_diff(std::complex<float> x, std::complex<float> y)
				

gnuradio/gcell/lib/wrapper/spu/gcs_fft_1d_r2.c — 1

Category FIXME
Committer eb
Commit ID b9ba2711addfc9057c136b520afc9e121ec19be9
48          int log2_fft_length = input->arg[0].u32;
49          int shift = input->arg[1].u32;	// non-zero if we should apply fftshift
50        
51          if (eaa->arg[3].get_size){	// apply window
52            // FIXME pointwise multiply in *= window
53            assert(0);
54          }
55        
56          fft_1d_r2(out, in, twiddle, log2_fft_length);
				

gnuradio/gcell/lib/wrapper/spu/gcs_fft_1d_r2.c — 2

Category FIXME
Committer eb
Commit ID b9ba2711addfc9057c136b520afc9e121ec19be9
55        
56          fft_1d_r2(out, in, twiddle, log2_fft_length);
57        
58          if (shift){
59            // FIXME apply "fftshift" to output data in-place
60            assert(0);
61          }
62        }
63        
				

gnuradio/gcell/lib/wrapper/spu/gcs_fft_1d_r2.c — 3

Category FIXME
Committer eb
Commit ID b9ba2711addfc9057c136b520afc9e121ec19be9
76          int log2_fft_length = input->arg[0].u32;
77          int shift = input->arg[1].u32;	// non-zero if we should apply fftshift
78        
79          if (eaa->arg[3].get_size){	// apply window
80            // FIXME pointwise multiply in *= window
81            assert(0);
82          }
83        
84          if (shift){
				

gnuradio/gcell/lib/wrapper/spu/gcs_fft_1d_r2.c — 4

Category FIXME
Committer eb
Commit ID b9ba2711addfc9057c136b520afc9e121ec19be9
81            assert(0);
82          }
83        
84          if (shift){
85            // FIXME apply "fftshift" to input data in-place
86            assert(0);
87          }
88        
89          conjugate_vector(in, 1 << (log2_fft_length - 1));
				

gnuradio/gnuradio-core/src/lib/filter/gr_cpu_powerpc.cc

Category FIXME
Committer eb
Commit ID 2c8ea58e4d76f54c98d71d3fcc64bc29da490908
54        
55        bool
56        gr_cpu::has_altivec ()
57        {
58          return true;		// FIXME assume we've always got it
59        }
60        
61        bool
62        gr_cpu::has_armv7_a ()
				

gnuradio/gnuradio-core/src/lib/filter/gr_fir_sysconfig_x86.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
323        #if 0
324        gr_fir_sss *
325        gr_fir_sysconfig_x86::create_gr_fir_sss (const std::vector<short> &taps)
326        {
327          // FIXME -- probably want to figure out best answer for Athlon and code
328          // add code to select it here...
329        
330          if (gr_cpu::has_sse2 ()){
331            cerr << ">>> gr_fir_sss: using SSE2\n";
				

gnuradio/gnuradio-core/src/lib/filter/qa_gr_fir_ccc.cc

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
21         */
22        
23        /*
24         * FIXME.  This code is virtually identical to qa_gr_fir_?CC.cc
25         *   Kludge up some kind of macro to handle the minor differences.
26         */
27        
28        #ifdef HAVE_CONFIG_H
29        #include <config.h>
				

gnuradio/gnuradio-core/src/lib/filter/qa_gr_fir_ccf.cc

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
21         */
22        
23        /*
24         * FIXME.  This code is virtually identical to qa_gr_fir_?CC.cc
25         *   Kludge up some kind of macro to handle the minor differences.
26         */
27        
28        #ifdef HAVE_CONFIG_H
29        #include <config.h>
				

gnuradio/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
21         */
22        
23        /*
24         * FIXME.  This code is virtually identical to qa_gr_fir_?CC.cc
25         *   Kludge up some kind of macro to handle the minor differences.
26         */
27        
28        #ifdef HAVE_CONFIG_H
29        #include <config.h>
				

gnuradio/gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
21         */
22        
23        /*
24         * FIXME.  This code is virtually identical to qa_gr_fir_?CC.cc
25         *   Kludge up some kind of macro to handle the minor differences.
26         */
27        
28        #ifdef HAVE_CONFIG_H
29        #include <config.h>
				

gnuradio/gnuradio-core/src/lib/general/gr_align_on_samplenumbers_ss.cc

Category TODO
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
77        {
78          //assert (0 == noutput_items % d_align_interval);
79          unsigned ninputs = ninput_items_required.size();
80          for (unsigned int i = 0; i < ninputs; i++)
81            ninput_items_required[i] = std::max(noutput_items*d_nchan*2+ history() - 1,1024*d_nchan*2+ history() - 1);//TODO include the diffs found in determine input_items_required
82        }
83        
84        bool
85        gr_align_on_samplenumbers_ss::check_topology (int ninputs, int noutputs)
				

gnuradio/gnuradio-core/src/lib/general/gr_circular_file.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
64            if (d_fd < 0){
65              perror (filename);
66              exit (1);
67            }
68        #ifdef HAVE_MMAP	/* FIXME */
69            if(ftruncate (d_fd, size + HEADER_SIZE) != 0) {
70              perror (filename);
71              exit (1);
72            }
				

gnuradio/gnuradio-core/src/lib/general/gr_circular_file.h

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
26        /*
27         * writes input data into a circular buffer on disk.
28         *
29         * the file contains a fixed header:
30         *   0x0000:    int32 magic (0xEB021026)
31         *   0x0004:	int32 size in bytes of header (constant 4096)
32         *   0x0008:	int32 size in bytes of circular buffer (not including header)
33         *   0x000C:    int32 file offset to beginning of circular buffer
34         *   0x0010:    int32 byte offset from beginning of circular buffer to 
				

gnuradio/gnuradio-core/src/lib/general/gr_complex_to_interleaved_short.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
50          const gr_complex *in = (const gr_complex *) input_items[0];
51          short *out = (short *) output_items[0];
52        
53          for (int i = 0; i < noutput_items/2; i++){
54            *out++ = (short) lrintf(in[i].real());	// FIXME saturate?
55            *out++ = (short) lrintf(in[i].imag());
56          }
57          
58          return noutput_items;
				

gnuradio/gnuradio-core/src/lib/general/gr_fast_atan2f.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
128          REAL x_abs, y_abs, z;
129          REAL alpha, angle, base_angle;
130          int index;
131        
132          /* don't divide by zero! */		// FIXME could get hosed with -0.0
133          if ((y == 0.0) && (x == 0.0))
134            return 0.0;
135        
136          /* normalize to +/- 45 degree range */
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.h — 1

Category Kludge
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
33         * "director" feature to implement the magic.
34         * It's slow. Don't use it in a performance critical path.
35         *
36         * Override eval to define the behavior.
37         * Use calleval to invoke eval (this kludge is required to allow a
38         * python specific "shim" to be inserted.
39         */
40        class gr_feval_dd
41        {
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.h — 2

Category Kludge
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
61         * "director" feature to implement the magic.
62         * It's slow. Don't use it in a performance critical path.
63         *
64         * Override eval to define the behavior.
65         * Use calleval to invoke eval (this kludge is required to allow a
66         * python specific "shim" to be inserted.
67         */
68        class gr_feval_cc
69        {
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.h — 3

Category Kludge
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
89         * "director" feature to implement the magic.
90         * It's slow. Don't use it in a performance critical path.
91         *
92         * Override eval to define the behavior.
93         * Use calleval to invoke eval (this kludge is required to allow a
94         * python specific "shim" to be inserted.
95         */
96        class gr_feval_ll
97        {
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.h — 4

Category Kludge
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
117         * "director" feature to implement the magic.
118         * It's slow. Don't use it in a performance critical path.
119         *
120         * Override eval to define the behavior.
121         * Use calleval to invoke eval (this kludge is required to allow a
122         * python specific "shim" to be inserted.
123         */
124        class gr_feval
125        {
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.i — 1

Category Magic
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
23        
24        /*
25         * N.B., this is a _very_ non-standard SWIG .i file
26         *
27         * It contains a bunch of magic that is required to ensure that when
28         * these classes are used as base classes for python code,
29         * everything works when calling back from C++ into Python.
30         *
31         * The gist of the problem is that our C++ code is usually not holding
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.i — 2

Category Magic
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
37         * If you don't understand SWIG "directors" or the Python GIL,
38         * don't bother trying to understand what's going on in here.
39         *
40         * [We could eliminate a bunch of this hair by requiring SWIG 1.3.29
41         * or later and some additional magic declarations, but many systems
42         * aren't shipping that version yet.  Thus we kludge...]
43         */
44        
45        
				

gnuradio/gnuradio-core/src/lib/general/gr_feval.i — 3

Category Magic
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
136          virtual void calleval();
137        };
138        
139        /*
140         * These are the ones to derive from in Python.  They have the magic shim
141         * that ensures that we're holding the Python GIL when we enter Python land...
142         */
143        
144        %inline %{
				

gnuradio/gnuradio-core/src/lib/general/gr_fft_vfc.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
32        #include <string.h>
33        #include <cstdio>
34        
35        
36        // FIXME after this is working, change to use native real to complex fft.
37        // It should run twice as fast.
38        
39        
40        
				

gnuradio/gnuradio-core/src/lib/general/gr_kludge_copy.h

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
33        /*!
34         * \brief output[i] = input[i]
35         * \ingroup misc_blk
36         *
37         * This is a short term kludge to work around a problem with the hierarchical block impl.
38         */
39        class gr_kludge_copy : public gr_sync_block
40        {
41          size_t		d_itemsize;
				

gnuradio/gnuradio-core/src/lib/general/gr_misc.h

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
27        
28        unsigned int 
29        gr_rounduppow2(unsigned int n);
30        
31        // FIXME should be template
32        void gr_zero_vector(std::vector<float> &v);
33        void gr_zero_vector(std::vector<double> &v);
34        void gr_zero_vector(std::vector<int> &v);
35        void gr_zero_vector(std::vector<gr_complex> &v);
				

gnuradio/gnuradio-core/src/lib/general/gr_mpsk_receiver_cc.cc

Category FIXME
Committer trondeau
Commit ID 28e086141aead2e43f958f0ae14d58cac557fa2d
118          for (unsigned i=0; i < ninputs; i++)
119            ninput_items_required[i] = (int) ceil((noutput_items * d_omega) + d_interp->ntaps());
120        }
121        
122        // FIXME add these back in an test difference in performance
123        float
124        gr_mpsk_receiver_cc::phase_error_detector_qpsk(gr_complex sample) const
125        {
126          float phase_error = 0;
				

gnuradio/gnuradio-core/src/lib/general/gr_nco.h

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
33         * \ingroup misc
34         */
35        
36        
37        //FIXME  Eventually generalize this to fixed point
38        
39        template<class o_type, class i_type> 
40        class gr_nco {
41        public:
				

gnuradio/gnuradio-core/src/lib/general/gr_ofdm_sampler.cc

Category FIXME
Committer jcorgan
Commit ID 43819f0f33498239970b4479684f12aa080859e6
50        
51        void
52        gr_ofdm_sampler::forecast (int noutput_items, gr_vector_int &ninput_items_required)
53        {
54          // FIXME do we need more
55          //int nreqd  = (noutput_items-1) * d_symbol_length + d_fft_length;
56          int nreqd  = d_symbol_length + d_fft_length;
57          unsigned ninputs = ninput_items_required.size ();
58          for (unsigned i = 0; i < ninputs; i++)
				

gnuradio/gnuradio-core/src/lib/general/gr_prefs.h

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
28         * \brief Base class for representing user preferences a la windows INI files.
29         * \ingroup misc
30         *
31         * The real implementation is in Python, and is accessable from C++
32         * via the magic of SWIG directors.
33         */
34        
35        class gr_prefs
36        {
				

gnuradio/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
41        
42        std::vector<float> gr_pwr_squelch_cc::squelch_range() const
43        {
44          std::vector<float> r(3);
45          r[0] = -50.0;				// min	FIXME
46          r[1] = +50.0;				// max	FIXME
47          r[2] = (r[1] - r[0]) / 100;		// step size
48        
49          return r;
				

gnuradio/gnuradio-core/src/lib/general/gr_pwr_squelch_cc.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
42        std::vector<float> gr_pwr_squelch_cc::squelch_range() const
43        {
44          std::vector<float> r(3);
45          r[0] = -50.0;				// min	FIXME
46          r[1] = +50.0;				// max	FIXME
47          r[2] = (r[1] - r[0]) / 100;		// step size
48        
49          return r;
50        }
				

gnuradio/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
41        
42        std::vector<float> gr_pwr_squelch_ff::squelch_range() const
43        {
44          std::vector<float> r(3);
45          r[0] = -50.0;				// min	FIXME
46          r[1] = +50.0;				// max	FIXME
47          r[2] = (r[1] - r[0]) / 100;		// step size
48        
49          return r;
				

gnuradio/gnuradio-core/src/lib/general/gr_pwr_squelch_ff.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
42        std::vector<float> gr_pwr_squelch_ff::squelch_range() const
43        {
44          std::vector<float> r(3);
45          r[0] = -50.0;				// min	FIXME
46          r[1] = +50.0;				// max	FIXME
47          r[2] = (r[1] - r[0]) / 100;		// step size
48        
49          return r;
50        }
				

gnuradio/gnuradio-core/src/lib/general/gr_random.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
124        }
125        
126        /*
127         * Copied from The KC7WW / OH2BNS Channel Simulator
128         * FIXME Need to check how good this is at some point
129         */
130        
131        float gr_random::laplacian()
132        {
				

gnuradio/gnuradio-core/src/lib/general/gr_random.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
138        }
139        
140        /*
141         * Copied from The KC7WW / OH2BNS Channel Simulator
142         * FIXME Need to check how good this is at some point
143         */
144        
145          // 5 => scratchy, 8 => Geiger
146        
				

gnuradio/gnuradio-core/src/lib/general/gr_random.cc — 3

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
157         * Complex rayleigh is really gaussian I and gaussian Q
158         * It can also be generated by real rayleigh magnitude and
159         * uniform random angle 
160         * Adapted from The KC7WW / OH2BNS Channel Simulator
161         * FIXME Need to check how good this is at some point
162         */
163        
164        gr_complex gr_random::rayleigh_complex()
165        {
				

gnuradio/gnuradio-core/src/lib/general/gr_remez.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
849        
850          if (grid_density < 16)
851            punt ("gr_remez: grid_density is too low; must be >= 16");
852        
853          LOCAL_BUFFER (double, coeff, numtaps + 5);		// FIXME why + 5?
854          int err = remez (coeff, numtaps, numbands,
855        		   bands, response, weight, itype, grid_density);
856        
857          if (err == -1)
				

gnuradio/gnuradio-core/src/lib/general/gr_simple_correlator.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
105        {
106          d_state = ST_LOCKED;
107          int delta = sub_index (d_osi, d_transition_osi);
108          d_center_osi = add_index (d_transition_osi, delta/2);
109          d_center_osi = add_index (d_center_osi, 3);   // FIXME
110          d_bbi = 0;
111          fflush (stdout);
112          // fprintf (stderr, ">>> enter_locked  d_center_osi = %d\n", d_center_osi);
113        
				

gnuradio/gnuradio-core/src/lib/general/gr_simple_squelch_cc.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
90        std::vector<float>
91        gr_simple_squelch_cc::squelch_range() const
92        {
93          std::vector<float> r(3);
94          r[0] = -50.0;				// min	FIXME
95          r[1] = +50.0;				// max	FIXME
96          r[2] = (r[1] - r[0]) / 100;		// step size
97        
98          return r;
				

gnuradio/gnuradio-core/src/lib/general/gr_simple_squelch_cc.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
91        gr_simple_squelch_cc::squelch_range() const
92        {
93          std::vector<float> r(3);
94          r[0] = -50.0;				// min	FIXME
95          r[1] = +50.0;				// max	FIXME
96          r[2] = (r[1] - r[0]) / 100;		// step size
97        
98          return r;
99        }
				

gnuradio/gnuradio-core/src/lib/general/gr_squash_ff.cc

Category FIXME
Committer eb
Commit ID 8b9d8612e3e32a8037782e027690e14b29254335
54          for (unsigned int i = 0; i < d_onum; i++)
55            d_ogrid[i] = ogrid[i];
56        
57          d_accel = gsl_interp_accel_alloc();
58          d_spline = gsl_spline_alloc(gsl_interp_cspline, d_inum);	// FIXME check w/ Frank
59        }
60        
61        gr_squash_ff::~gr_squash_ff()
62        {
				

gnuradio/gnuradio-core/src/lib/general/gr_vco.h

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
32         * \brief base class template for Voltage Controlled Oscillator (VCO)
33         * \ingroup misc
34         */
35        
36        //FIXME  Eventually generalize this to fixed point
37        
38        template<class o_type, class i_type> 
39        class gr_vco {
40        public:
				

gnuradio/gnuradio-core/src/lib/general/gri_fft.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
206            fftwf_free (d_inbuf);
207            throw std::runtime_error ("fftwf_malloc");
208          }
209        
210          // FIXME If there's ever a chance that the planning functions
211          // will be called in multiple threads, we've got to ensure single
212          // threaded access.  They are not thread-safe.
213          
214          gri_fftw_import_wisdom ();	// load prior wisdom from disk
				

gnuradio/gnuradio-core/src/lib/gengen/gr_noise_source_X.cc.t

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
84            for (int i = 0; i < noutput_items; i++)
85              out[i] = (@TYPE@)(d_ampl * d_rng.laplacian ());
86            break;
87            
88          case GR_IMPULSE:	// FIXME changeable impulse settings
89            for (int i = 0; i < noutput_items; i++)
90              out[i] = (@TYPE@)(d_ampl * d_rng.impulse (9));
91            break;
92        #endif
				

gnuradio/gnuradio-core/src/lib/gengen/gr_sig_source_X.cc.t — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
63        #if @IS_COMPLEX@	// complex?
64        
65          case GR_CONST_WAVE:
66            t = (gr_complex) d_ampl + d_offset;
67            for (int i = 0; i < noutput_items; i++)	// FIXME unroll
68              optr[i] = t;
69            break;
70            
71          case GR_SIN_WAVE:
				

gnuradio/gnuradio-core/src/lib/gengen/gr_sig_source_X.cc.t — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
141        #else			// nope...
142        
143          case GR_CONST_WAVE:
144            t = (@TYPE@) d_ampl + d_offset;
145            for (int i = 0; i < noutput_items; i++)	// FIXME unroll
146              optr[i] = t;
147            break;
148            
149          case GR_SIN_WAVE:
				

gnuradio/gnuradio-core/src/lib/io/gr_file_sink.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
64            return noutput_items;		// drop output on the floor
65        
66          while (nwritten < noutput_items){
67            int count = fwrite (inbuf, d_itemsize, noutput_items - nwritten, d_fp);
68            if (count == 0)	// FIXME add error handling
69              break;
70            nwritten += count;
71            inbuf += count * d_itemsize;
72          }
				

gnuradio/gnuradio-core/src/lib/io/gr_oscope_sink_f.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
66          float	  tmp[gr_oscope_guts::MAX_CHANNELS];
67        
68          for (int i = 0; i < noutput_items; i++){
69        
70            // FIXME for now, copy the data.  Fix later if reqd
71            for (int ch = 0; ch < ni; ch++)	
72              tmp[ch] = ((const float *) input_items[ch])[i];
73        
74            d_guts->process_sample (tmp);
				

gnuradio/gnuradio-core/src/lib/io/gr_udp_sink.cc

Category FIXME
Committer Eric Blossom
Commit ID 99a39a4351ca250dcbeeface0ab7b9de6e301d49
221            hints.ai_protocol = IPPROTO_UDP;
222            char port_str[12];
223            sprintf( port_str, "%d", port );
224        
225            // FIXME leaks if report_error throws below
226            int ret = getaddrinfo( host, port_str, &hints, &ip_dst );
227            if( ret != 0 )
228              report_error("gr_udp_source/getaddrinfo",
229        		   "can't initialize destination socket" );
				

gnuradio/gnuradio-core/src/lib/io/gr_udp_source.cc — 1

Category FIXME
Committer Eric Blossom
Commit ID 99a39a4351ca250dcbeeface0ab7b9de6e301d49
128          hints.ai_flags = AI_PASSIVE;
129          char port_str[12];
130          sprintf( port_str, "%d", port );
131        
132          // FIXME leaks if report_error throws below
133          ret = getaddrinfo( host, port_str, &hints, &ip_src );
134          if( ret != 0 )
135            report_error("gr_udp_source/getaddrinfo",
136        		 "can't initialize source socket" );
				

gnuradio/gnuradio-core/src/lib/io/gr_udp_source.cc — 2

Category FIXME
Committer Eric Blossom
Commit ID 99a39a4351ca250dcbeeface0ab7b9de6e301d49
134          if( ret != 0 )
135            report_error("gr_udp_source/getaddrinfo",
136        		 "can't initialize source socket" );
137        
138          // FIXME leaks if report_error throws below
139          d_temp_buff = new char[d_payload_size];   // allow it to hold up to payload_size bytes
140        
141          // create socket
142          d_socket = socket(ip_src->ai_family, ip_src->ai_socktype,
				

gnuradio/gnuradio-core/src/lib/io/i2c_bitbang.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
136        i2c_bitbang::read (int addr, unsigned char *buf, int max_bytes)
137        {
138          d_io->lock ();
139        
140          // FIXME
141        
142          d_io->unlock ();
143          return -1;
144        }
				

gnuradio/gnuradio-core/src/lib/io/microtune_4702.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
168         */
169        bool 
170        microtune_4702::pll_locked_p ()
171        {
172          // FIXME
173          return true;
174        }
175        
176        /*!
				

gnuradio/gnuradio-core/src/lib/io/microtune_4937.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
131         */
132        bool 
133        microtune_4937::pll_locked_p ()
134        {
135          // FIXME
136          return true;
137        }
138        
139        /*!
				

gnuradio/gnuradio-core/src/lib/missing/getopt.c

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
175        
176        #ifdef	__GNU_LIBRARY__
177        /* We want to avoid inclusion of string.h with non-GNU libraries
178           because there are many ways it can cause trouble.
179           On some systems, it contains special magic macros that don't work
180           in GCC.  */
181        #include <string.h>
182        #define	my_index	strchr
183        #define	my_bcopy(src, dst, n)	memcpy ((dst), (src), (n))
				

gnuradio/gnuradio-core/src/lib/runtime/gr_block.h

Category Magic
Committer eb
Commit ID 1579bab2e5840e8f7e7918b7cabf250ca4fd259a
56        class gr_block : public gr_basic_block {
57        
58         public:
59          
60          //! Magic return values from general_work
61          enum {
62            WORK_CALLED_PRODUCE = -2,
63            WORK_DONE = -1
64          };
				

gnuradio/gnuradio-core/src/lib/runtime/gr_block_executor.cc

Category FIXME
Committer eb
Commit ID 2c8ea58e4d76f54c98d71d3fcc64bc29da490908
399            // If this is a source, it's broken.
400            if (d->source_p()){
401              std::cerr << "gr_block_executor: source " << m
402        		<< " produced no output.  We're marking it DONE.\n";
403              // FIXME maybe we ought to raise an exception...
404              goto were_done;
405            }
406        
407            // Have the caller try again...
				

gnuradio/gnuradio-core/src/lib/runtime/gr_hier_block2.cc

Category Magic
Committer eb
Commit ID 395e1fa650428899dee0f123cb7bf432732280c5
45                                       gr_io_signature_sptr output_signature)
46          : gr_basic_block(name, input_signature, output_signature),
47            d_detail(new gr_hier_block2_detail(this))
48        {
49          // This bit of magic ensures that self() works in the constructors of derived classes.
50          gnuradio::detail::sptr_magic::create_and_stash_initial_sptr(this);
51        }
52        
53        gr_hier_block2::~gr_hier_block2()
				

gnuradio/gnuradio-core/src/lib/runtime/gr_msg_accepter.cc

Category FIXME
Committer Eric Blossom
Commit ID 1181c2fe069075f9ceb3b66ed937115ff39aafa9
50            return;
51          }
52          gr_hier_block2 *p2 = dynamic_cast<gr_hier_block2 *>(this);
53          if (p2){
54            // FIXME do the right thing
55            return;
56          }
57        
58          throw std::runtime_error("unknown derived class");
				

gnuradio/gnuradio-core/src/lib/runtime/gr_single_threaded_scheduler.cc

Category Kludge
Committer eb
Commit ID 02cd43b565615593f90bd08eb4e718a6ee649661
74        
75        void
76        gr_single_threaded_scheduler::run ()
77        {
78          // d_enabled = true;		// KLUDGE
79          main_loop ();
80        }
81        
82        void
				

gnuradio/gnuradio-core/src/lib/runtime/qa_block_tags.cc — 1

Category Kludge
Committer Tom Rondeau
Commit ID 54b396764a9fad91cbfd10f618e4faed1c8bafa2
112          CPPUNIT_ASSERT_EQUAL(tags3.size(), (size_t)8);
113          CPPUNIT_ASSERT_EQUAL(tags4.size(), (size_t)8);
114        
115        #if QA_TAGS_DEBUG
116          // Kludge together the tags that we know should result from the above graph
117          std::stringstream str0, str1, str2;
118          str0 << ann0->name() << ann0->unique_id();
119          str1 << ann1->name() << ann1->unique_id();
120          str2 << ann2->name() << ann2->unique_id();
				

gnuradio/gnuradio-core/src/lib/runtime/qa_block_tags.cc — 2

Category Kludge
Committer Tom Rondeau
Commit ID 77d778896b72379676d2b00e591f9bbb5f6fcc44
203          CPPUNIT_ASSERT_EQUAL(tags4.size(), (size_t)12);
204        
205        
206        #if QA_TAGS_DEBUG
207          // Kludge together the tags that we know should result from the above graph
208          std::stringstream str0, str1;
209          str0 << ann0->name() << ann0->unique_id();
210          str1 << ann1->name() << ann1->unique_id();
211        
				

gnuradio/gnuradio-core/src/lib/runtime/qa_block_tags.cc — 3

Category Kludge
Committer Tom Rondeau
Commit ID 4a63bc91ddceaa8ce9d14a3f714bd0cdc3e85128
296          CPPUNIT_ASSERT_EQUAL(tags3.size(), (size_t)8);
297          CPPUNIT_ASSERT_EQUAL(tags4.size(), (size_t)8);
298        
299        #if QA_TAGS_DEBUG
300          // Kludge together the tags that we know should result from the above graph
301          std::stringstream str0, str1, str2;
302          str0 << ann0->name() << ann0->unique_id();
303          str1 << ann1->name() << ann1->unique_id();
304          str2 << ann2->name() << ann2->unique_id();
				

gnuradio/gnuradio-core/src/lib/runtime/qa_block_tags.cc — 4

Category Kludge
Committer Tom Rondeau
Commit ID 8d84a2fc9a804b2248fe43c3d8b230ef99aebaa2
404          CPPUNIT_ASSERT_EQUAL(tags2.size(), (size_t)8);
405        
406        
407        #if QA_TAGS_DEBUG
408          // Kludge together the tags that we know should result from the above graph
409          std::stringstream str0, str1, str2;
410          str0 << ann0->name() << ann0->unique_id();
411          str1 << ann1->name() << ann1->unique_id();
412          str2 << ann2->name() << ann2->unique_id();
				

gnuradio/gnuradio-core/src/lib/swig/Makefile.am

Category FIXME
Committer eb
Commit ID cbe1628f2eb1a1a3c8b0b96a3b1334a039074def
58        ourpythondir = $(grpythondir)/gr
59        ourpython_PYTHON = gnuradio_core.py
60        
61        # ----------------------------------------------------------------
62        # FIXME As of swig 1.3.31, this still seems to be required...
63        # gnuradio_swig_bug_workaround.h : gnuradio_core_runtime.py $(srcdir)/gen-swig-bug-fix
64        #	$(PYTHON) $(srcdir)/gen-swig-bug-fix python/gnuradio_core_runtime.cc $@
65        
66        EXTRA_DIST += gen-swig-bug-fix
				

gnuradio/gnuradio-core/src/lib/swig/gr_swig_block_magic.i — 1

Category FIXME
Committer Eric Blossom
Commit ID 6b5c73eb36bb45fc214616104c0a6c675dbce538
44        #ifdef SWIGGUILE
45        #ifdef IN_GNURADIO_CORE		// normal behavior
46        %define _GR_SWIG_BLOCK_MAGIC_HELPER(PKG, BASE_NAME, FULL_NAME)
47        _GR_SWIG_BLOCK_MAGIC_HELPER_COMMON(PKG, BASE_NAME, FULL_NAME)
48        /* FIXME May want to add something here to get a friendlier printed representation */
49        %enddef
50        #else				// Don't strip PKG from name
51        %define _GR_SWIG_BLOCK_MAGIC_HELPER(PKG, BASE_NAME, FULL_NAME)
52        class FULL_NAME;
				

gnuradio/gnuradio-core/src/lib/swig/gr_swig_block_magic.i — 2

Category FIXME
Committer Eric Blossom
Commit ID c80fdf2897624d10123a35b1a19d150f3a5645c8
53        typedef boost::shared_ptr<FULL_NAME> FULL_NAME ## _sptr;
54        %template(FULL_NAME ## _sptr) boost::shared_ptr<FULL_NAME>;
55        %ignore FULL_NAME;
56        %rename(FULL_NAME) PKG ## _make_ ## BASE_NAME;
57        /* FIXME May want to add something here to get a friendlier printed representation */
58        %enddef
59        #endif
60        #endif
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2/__init__.py

Category Kludge
Committer trondeau
Commit ID 28e086141aead2e43f958f0ae14d58cac557fa2d
21        
22        import glob
23        import os.path
24        
25        # Semi-hideous kludge to import everything in the blksimpl2 directory
26        # into the gnuradio.blks2 namespace.  This keeps us from having to remember 
27        # to manually update this file.
28        
29        for p in __path__:
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/filterbank.py

Category FIXME
Committer jcorgan
Commit ID 37c779b0c6394a3cec53370beb3b5a95e898b66a
22        import sys
23        from gnuradio import gr, gru
24        
25        def _generate_synthesis_taps(mpoints):
26            return []   # FIXME
27        
28        
29        def _split_taps(taps, mpoints):
30            assert (len(taps) % mpoints) == 0
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py — 1

PyFlakes undefined name 'gru'
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
65                if 0:
66                    print "btaps =", btaps
67                    print "ataps =", ataps
68                    global plot1
69                    plot1 = gru.gnuplot_freqz (gru.freqz (btaps, ataps), fs, True)
70        
71                deemph = gr.iir_filter_ffd(btaps, ataps)
72        	self.connect(self, deemph, self)
73        
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py — 2

PyFlakes undefined name 'gru'
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
65                if 0:
66                    print "btaps =", btaps
67                    print "ataps =", ataps
68                    global plot1
69                    plot1 = gru.gnuplot_freqz (gru.freqz (btaps, ataps), fs, True)
70        
71                deemph = gr.iir_filter_ffd(btaps, ataps)
72        	self.connect(self, deemph, self)
73        
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py — 3

PyFlakes undefined name 'gru'
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
144                if 0:
145                    print "btaps =", btaps
146                    print "ataps =", ataps
147                    global plot2
148                    plot2 = gru.gnuplot_freqz (gru.freqz (btaps, ataps), fs, True)
149        
150                preemph = gr.iir_filter_ffd(btaps, ataps)
151        	self.connect(self, preemph, self)
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py — 4

PyFlakes undefined name 'gru'
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
144                if 0:
145                    print "btaps =", btaps
146                    print "ataps =", ataps
147                    global plot2
148                    plot2 = gru.gnuplot_freqz (gru.freqz (btaps, ataps), fs, True)
149        
150                preemph = gr.iir_filter_ffd(btaps, ataps)
151        	self.connect(self, preemph, self)
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/fm_emph.py — 5

Category FIXME
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
135        	gr.hier_block2.__init__(self, "fm_deemph",
136        				gr.io_signature(1, 1, gr.sizeof_float), # Input signature
137        				gr.io_signature(1, 1, gr.sizeof_float)) # Output signature
138        				
139                # FIXME make this compute the right answer
140                
141                btaps = [1]
142                ataps = [1]
143        
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/nbfm_rx.py

Category FIXME
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
53        	gr.hier_block2.__init__(self, "nbfm_rx",
54        				gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature
55        				gr.io_signature(1, 1, gr.sizeof_float))      # Output signature
56        
57                # FIXME audio_rate and quad_rate ought to be exact rationals
58                audio_rate = int(audio_rate)
59                quad_rate = int(quad_rate)
60        
61                if quad_rate % audio_rate != 0:
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/nbfm_tx.py

Category FIXME
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
48        	gr.hier_block2.__init__(self, "nbfm_tx",
49        				gr.io_signature(1, 1, gr.sizeof_float),      # Input signature
50        				gr.io_signature(1, 1, gr.sizeof_gr_complex)) # Output signature
51                
52                # FIXME audio_rate and quad_rate ought to be exact rationals
53                audio_rate = int(audio_rate)
54                quad_rate = int(quad_rate)
55        
56                if quad_rate % audio_rate != 0:
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/pkt.py

Category FIXME
Committer trondeau
Commit ID 28e086141aead2e43f958f0ae14d58cac557fa2d
134                    raise ValueError, "Invalid access_code %r. Must be string of 1's and 0's" % (access_code,)
135                self._access_code = access_code
136        
137                if threshold == -1:
138                    threshold = 12              # FIXME raise exception
139        
140                self._rcvd_pktq = gr.msg_queue()          # holds packets from the PHY
141                self.correlator = gr.correlate_access_code_bb(access_code, threshold)
142        
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/standard_squelch.py — 1

Category FIXME
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
27        	gr.hier_block2.__init__(self, "standard_squelch",
28        				gr.io_signature(1, 1, gr.sizeof_float), # Input signature
29        				gr.io_signature(1, 1, gr.sizeof_float)) # Output signature
30            
31                self.input_node = gr.add_const_ff(0)          # FIXME kludge
32                
33                self.low_iir = gr.iir_filter_ffd((0.0193,0,-0.0193),(1,1.9524,-0.9615))
34                self.low_square = gr.multiply_ff()
35                self.low_smooth = gr.single_pole_iir_filter_ff(1/(0.01*audio_rate))   # 100ms time constant
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/standard_squelch.py — 2

Category Kludge
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
27        	gr.hier_block2.__init__(self, "standard_squelch",
28        				gr.io_signature(1, 1, gr.sizeof_float), # Input signature
29        				gr.io_signature(1, 1, gr.sizeof_float)) # Output signature
30            
31                self.input_node = gr.add_const_ff(0)          # FIXME kludge
32                
33                self.low_iir = gr.iir_filter_ffd((0.0193,0,-0.0193),(1,1.9524,-0.9615))
34                self.low_square = gr.multiply_ff()
35                self.low_smooth = gr.single_pole_iir_filter_ff(1/(0.01*audio_rate))   # 100ms time constant
				

gnuradio/gnuradio-core/src/python/gnuradio/blks2impl/wfm_tx.py

Category FIXME
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
45        	gr.hier_block2.__init__(self, "wfm_tx",
46        				gr.io_signature(1, 1, gr.sizeof_float),      # Input signature
47        				gr.io_signature(1, 1, gr.sizeof_gr_complex)) # Output signature
48                
49                # FIXME audio_rate and quad_rate ought to be exact rationals
50                audio_rate = int(audio_rate)
51                quad_rate = int(quad_rate)
52        
53                if quad_rate % audio_rate != 0:
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/__init__.py

PyFlakes redefinition of unused '_RTLD_GLOBAL' from line 32
Committer jcorgan
Commit ID 64069fba5439f51aa3bd22ddc2756c3781784531
31        try:
32            from dl import RTLD_GLOBAL as _RTLD_GLOBAL
33        except ImportError:
34            try:
35        	from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
36            except ImportError:
37        	pass
38            
39        if _RTLD_GLOBAL != 0:
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/benchmark_filters.py

PyFlakes undefined name 'sys'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
58            parser.add_option("-d", "--decimation", type="int", default=1)
59            (options, args) = parser.parse_args()
60            if len(args) != 0:
61                parser.print_help()
62                sys.exit(1)
63        
64            ntaps = options.ntaps
65            total_input_size = options.total_input_size
66            block_size = options.block_size
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/gr_threading_24.py

PyFlakes redefinition of unused 'local' from line 703
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
701        
702        try:
703            from thread import _local as local
704        except ImportError:
705            from _threading_local import local
706        
707        
708        # Self-test code
709        
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_agc.py

Category FIXME
Committer eb
Commit ID f1c41f807cb29472d0924149e39d6ec8ad90e6a2
410                dst_data = dst1.data ()
411                self.assertComplexTuplesAlmostEqual (expected_result, dst_data, 4)
412        
413        
414            def test_100(self):        # FIXME needs work
415                ''' Test complex feedforward agc with constant input '''
416                input_data = 16*(0.0,) + 64*(1.0,) + 64*(0.0,)
417                expected_result = ()
418        
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_kludged_imports.py — 1

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
30            def tearDown(self):
31                pass
32        
33            def test_blks_import(self):
34                # make sure that this somewhat magic import works
35                from gnuradio import blks2
36        
37            def test_gru_import(self):
38                # make sure that this somewhat magic import works
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_kludged_imports.py — 2

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
34                # make sure that this somewhat magic import works
35                from gnuradio import blks2
36        
37            def test_gru_import(self):
38                # make sure that this somewhat magic import works
39                from gnuradio import gru
40        
41        
42        if __name__ == '__main__':
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_mute.py

PyFlakes redefinition of function 'test_unmute_cc' from line 75
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
77                expected_result = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j)
78                op = gr.mute_cc (False)
79                self.help_cc ((src_data,), expected_result, op)
80        
81            def test_unmute_cc (self):
82                src_data = (1+5j, 2+5j, 3+5j, 4+5j, 5+5j)
83                expected_result = (0+0j, 0+0j, 0+0j, 0+0j, 0+0j)
84                op = gr.mute_cc (True)
85                self.help_cc ((src_data,), expected_result, op)
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
119                self.assertEqual(expected_result, result_data)
120        
121            def test_002_interp(self):          
122                taps = random_floats(31)
123                #src_data = random_floats(10000)  # FIXME the 10k case fails!
124                src_data = random_floats(1000)
125                interpolation = 3
126        
127                expected_result = reference_interp_filter(src_data, interpolation, taps)
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
143                                     (L2 - L1, len(taps), interpolation, len(src_data)))
144                    sys.stderr.write('  len(result_data) = %d  len(expected_result) = %d\n' %
145                                     (len(result_data), len(expected_result)))
146                #self.assertEqual(expected_result[0:L], result_data[0:L])
147                # FIXME check first 3 answers
148                self.assertEqual(expected_result[3:L], result_data[3:L])
149        
150            def test_003_interp(self):
151                taps = random_floats(31)
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 3

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
172                    sys.stderr.write('  len(result_data) = %d  len(expected_result) = %d\n' %
173                                     (len(result_data), len(expected_result)))
174                self.assertEqual(expected_result[0:L], result_data[0:L])
175        
176            # FIXME disabled.  Triggers hang on SuSE 10.0
177            def xtest_004_decim_random_vals(self):
178                MAX_TAPS = 9
179                MAX_DECIM = 7
180                OUTPUT_LEN = 9
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 4

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
205                                                 (len(result_data), len(expected_result)))
206                            self.assertEqual(expected_result[0:L], result_data[0:L])
207        
208        
209            # FIXME disabled.  Triggers hang on SuSE 10.0
210            def xtest_005_interp_random_vals(self):
211                MAX_TAPS = 9
212                MAX_INTERP = 7
213                INPUT_LEN = 9
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/qa_rational_resampler.py — 5

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
237                                sys.stderr.write('delta = %2d: ntaps = %d interp = %d ilen = %d\n' % (L2 - L1, ntaps, interp, ilen))
238                                #sys.stderr.write('  len(result_data) = %d  len(expected_result) = %d\n' %
239                                #                 (len(result_data), len(expected_result)))
240                            #self.assertEqual(expected_result[0:L], result_data[0:L])
241                            # FIXME check first ntaps+1 answers
242                            self.assertEqual(expected_result[ntaps+1:L], result_data[ntaps+1:L])
243        
244        
245            def test_006_interp_decim(self):
				

gnuradio/gnuradio-core/src/python/gnuradio/gr/top_block.py

Category Kludge
Committer eb
Commit ID 2c8ea58e4d76f54c98d71d3fcc64bc29da490908
29        #
30        # There is no problem that can't be solved with an additional
31        # level of indirection...
32        #
33        # This kludge allows ^C to interrupt top_block.run and top_block.wait
34        #
35        # The problem that we are working around is that Python only services
36        # signals (e.g., KeyboardInterrupt) in its main thread.  If the main
37        # thread is blocked in our C++ version of wait, even though Python's
				

gnuradio/gnuradio-core/src/python/gnuradio/gr_xmlrunner.py

PyFlakes redefinition of unused 'StringIO' from line 22
Committer Tom Rondeau
Commit ID 2933f69b5d7afe6cf044a0f6305d05d19e7570af
20        
21        try:
22            from StringIO import StringIO
23        except ImportError:
24            from io import StringIO
25        
26        
27        class _TestInfo(object):
28        
				

gnuradio/gnuradio-core/src/python/gnuradio/gru/__init__.py

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
21        
22        import glob
23        import os.path
24        
25        # Semi-hideous kludge to import everything in the gruimpl directory
26        # into the gnuradio.gru namespace.  This keeps us from having to remember 
27        # to manually update this file.
28        
29        for p in __path__:
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 1

PyFlakes undefined name 'IzeroEPSILON'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
35                n += 1
36                temp *= temp
37                u *= temp
38                accum += u
39                if u >= IzeroEPSILON*sum:
40                    break
41            return accum
42        
43        def midm1(fft_size):
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 2

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
52        def rate(fft_size):
53            return 1.0/(fft_size >> 1)
54        
55        def expn(fft_size):
56            math.log(2.0)/(midn(fft_size) + 1.0)
57            
58        def hamming(fft_size):
59            window = []
60            for index in xrange(fft_size):
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 3

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
69        
70        def welch(fft_size):
71            window = [0 for i in range(fft_size)]
72            j = fft_size-1
73            for index in xrange(midn(fft_size)+1):
74                window[j] = window[index] = (1.0 - math.sqrt((index - midm1(fft_size)) / midp1(fft_size)))
75                j -= 1
76            return window
77        
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 4

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
77        
78        def parzen(fft_size):
79            window = [0 for i in range(fft_size)]
80            j = fft_size-1
81            for index in xrange(midn(fft_size)+1):
82                window[j] = window[index] = (1.0 - math.abs((index - midm1(fft_size)) / midp1(fft_size)))
83                j -= 1
84            return window
85        
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 5

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
87            mfrq = freq(fft_size)
88            angle = 0
89            window = [0 for i in range(fft_size)]
90            j = fft_size-1
91            for index in xrange(midn(fft_size)+1):
92                window[j] = window[index] = angle
93                angle += freq
94                j -= 1
95            return window
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 6

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
98            mfrq = freq(fft_size)
99            angle = 0
100            window = [0 for i in range(fft_size)]
101            j = fft_size-1
102            for index in xrange(midn(fft_size)+1):
103                cx = math.cos(angle)
104                window[j] = window[index] = (.34401 + (cx * (-.49755 + (cx * .15844))))
105                angle += freq
106                j -= 1
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 7

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
110            mfrq = freq(fft_size)
111            angle = 0
112            window = [0 for i in range(fft_size)]
113            j = fft_size-1
114            for index in xrange(midn(fft_size)+1):
115                cx = math.cos(angle)
116                window[j] = window[index] = (.21747 + (cx * (-.45325 + (cx * (.28256 - (cx * .04672))))))
117                angle += freq
118                j -= 1
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 8

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
122            mfrq = freq(fft_size)
123            angle = 0
124            window = [0 for i in range(fft_size)]
125            j = fft_size-1
126            for index in xrange(midn(fft_size)+1):
127                cx = math.cos(angle)
128                window[j] = window[index] = (.084037 + (cx * (-.29145 + (cx * (.375696 + (cx * (-.20762 + (cx * .041194))))))))
129                angle += freq
130                j -= 1
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 9

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
133        def exponential(fft_size):
134            expsum = 1.0
135            window = [0 for i in range(fft_size)]
136            j = fft_size-1
137            for index in xrange(midn(fft_size)+1):
138              window[j] = window[i] = (expsum - 1.0)
139              expsum *= expn(fft_size)
140              j -= 1
141            return window
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 10

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
143        def riemann(fft_size):
144            sr1 = freq(fft_size)
145            window = [0 for i in range(fft_size)]
146            j = fft_size-1
147            for index in xrange(midn(fft_size)):
148                if index == midn(fft_size):
149                    window[index] = window[j] = 1.0
150                else:
151                    cx = sr1*midn(fft_size) - index
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 11

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
144            sr1 = freq(fft_size)
145            window = [0 for i in range(fft_size)]
146            j = fft_size-1
147            for index in xrange(midn(fft_size)):
148                if index == midn(fft_size):
149                    window[index] = window[j] = 1.0
150                else:
151                    cx = sr1*midn(fft_size) - index
152                    window[index] = window[j] = math.sin(cx)/cx
				

gnuradio/gnuradio-core/src/python/gnuradio/window.py — 12

PyFlakes undefined name 'midn'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
147            for index in xrange(midn(fft_size)):
148                if index == midn(fft_size):
149                    window[index] = window[j] = 1.0
150                else:
151                    cx = sr1*midn(fft_size) - index
152                    window[index] = window[j] = math.sin(cx)/cx
153                j -= 1
154            return window
155        
				

gnuradio/gnuradio-core/src/tests/test_all.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
28        #include <qa_general.h>
29        #include <qa_filter.h>
30        // #include <qa_atsc.h>
31        
32        // FIXME add atsc back in.
33        
34        int 
35        main (int argc, char **argv)
36        {
				

gnuradio/gnuradio-examples/python/apps/hf_explorer/hfx2.py

PyFlakes undefined name 'fftsink'
Committer jcorgan
Commit ID e692e71305ecd71d3681fe37f3d76f350d67e276
297                self.fft = fftsink2.fft_sink_c (self.panel_2, fft_size=512, sample_rate=self.af_sample_rate, average=True, size=(640,240))
298        
299        	# AM Sync carrier 
300        	if AM_SYNC_DISPLAY:
301        	   self.fft2 = fftsink.fft_sink_c (self.tb, self.panel_9, y_per_div=20, fft_size=512, sample_rate=self.af_sample_rate, average=True, size=(640,240))
302        
303                c2f = gr.complex_to_float()
304        
305        	# AM branch
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback.py — 1

PyFlakes undefined name 'pktno'
Committer Tom Rondeau
Commit ID b682d4bbe98b72e86219f1f303843b4f4f9ed1b7
166            def updatePacketInfo(self):
167                # Pull these globals in from the main thread
168                global n_rcvd, n_right, pktno
169        
170                if(pktno > 0):
171                    per = float(n_rcvd - n_right)/float(pktno)
172                else:
173                    per = 0
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback.py — 2

PyFlakes undefined name 'n_rcvd'
Committer Tom Rondeau
Commit ID b682d4bbe98b72e86219f1f303843b4f4f9ed1b7
167                # Pull these globals in from the main thread
168                global n_rcvd, n_right, pktno
169        
170                if(pktno > 0):
171                    per = float(n_rcvd - n_right)/float(pktno)
172                else:
173                    per = 0
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback.py — 3

PyFlakes undefined name 'n_right'
Committer Tom Rondeau
Commit ID b682d4bbe98b72e86219f1f303843b4f4f9ed1b7
167                # Pull these globals in from the main thread
168                global n_rcvd, n_right, pktno
169        
170                if(pktno > 0):
171                    per = float(n_rcvd - n_right)/float(pktno)
172                else:
173                    per = 0
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback.py — 4

PyFlakes undefined name 'pktno'
Committer Tom Rondeau
Commit ID b682d4bbe98b72e86219f1f303843b4f4f9ed1b7
167                # Pull these globals in from the main thread
168                global n_rcvd, n_right, pktno
169        
170                if(pktno > 0):
171                    per = float(n_rcvd - n_right)/float(pktno)
172                else:
173                    per = 0
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback.py — 5

PyFlakes undefined name 'n_rcvd'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
170                if(pktno > 0):
171                    per = float(n_rcvd - n_right)/float(pktno)
172                else:
173                    per = 0
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
177        
178        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback.py — 6

PyFlakes undefined name 'n_right'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
171                    per = float(n_rcvd - n_right)/float(pktno)
172                else:
173                    per = 0
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
177        
178        
179        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback2.py — 1

PyFlakes undefined name 'pktno'
Committer Tom Rondeau
Commit ID 517380207ba51fc127bc979dbc1d8bdc557145e6
209            def updatePacketInfo(self):
210                # Pull these globals in from the main thread
211                global n_rcvd, n_right, pktno
212        
213                if(pktno > 0):
214                    per = float(n_rcvd - n_right)/float(pktno)
215                else:
216                    per = 0
217                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback2.py — 2

PyFlakes undefined name 'n_rcvd'
Committer Tom Rondeau
Commit ID 517380207ba51fc127bc979dbc1d8bdc557145e6
210                # Pull these globals in from the main thread
211                global n_rcvd, n_right, pktno
212        
213                if(pktno > 0):
214                    per = float(n_rcvd - n_right)/float(pktno)
215                else:
216                    per = 0
217                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
218                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback2.py — 3

PyFlakes undefined name 'n_right'
Committer Tom Rondeau
Commit ID 517380207ba51fc127bc979dbc1d8bdc557145e6
210                # Pull these globals in from the main thread
211                global n_rcvd, n_right, pktno
212        
213                if(pktno > 0):
214                    per = float(n_rcvd - n_right)/float(pktno)
215                else:
216                    per = 0
217                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
218                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback2.py — 4

PyFlakes undefined name 'pktno'
Committer Tom Rondeau
Commit ID 517380207ba51fc127bc979dbc1d8bdc557145e6
210                # Pull these globals in from the main thread
211                global n_rcvd, n_right, pktno
212        
213                if(pktno > 0):
214                    per = float(n_rcvd - n_right)/float(pktno)
215                else:
216                    per = 0
217                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
218                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback2.py — 5

PyFlakes undefined name 'n_rcvd'
Committer Tom Rondeau
Commit ID 517380207ba51fc127bc979dbc1d8bdc557145e6
213                if(pktno > 0):
214                    per = float(n_rcvd - n_right)/float(pktno)
215                else:
216                    per = 0
217                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
218                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
219                self.gui.perEdit.setText(QtCore.QString("%1").arg(float(per), 0, 'e', 4))
220        
221        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_loopback2.py — 6

PyFlakes undefined name 'n_right'
Committer Tom Rondeau
Commit ID 517380207ba51fc127bc979dbc1d8bdc557145e6
214                    per = float(n_rcvd - n_right)/float(pktno)
215                else:
216                    per = 0
217                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
218                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
219                self.gui.perEdit.setText(QtCore.QString("%1").arg(float(per), 0, 'e', 4))
220        
221        
222        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx.py — 1

PyFlakes undefined name 'n_rcvd'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
156            def updatePacketInfo(self):
157                # Pull these globals in from the main thread
158                global n_rcvd, n_right, pktno
159        
160                per = float(n_rcvd - n_right)/float(pktno)
161                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
162                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
163                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
164        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx.py — 2

PyFlakes undefined name 'n_right'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
156            def updatePacketInfo(self):
157                # Pull these globals in from the main thread
158                global n_rcvd, n_right, pktno
159        
160                per = float(n_rcvd - n_right)/float(pktno)
161                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
162                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
163                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
164        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx.py — 3

PyFlakes undefined name 'pktno'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
156            def updatePacketInfo(self):
157                # Pull these globals in from the main thread
158                global n_rcvd, n_right, pktno
159        
160                per = float(n_rcvd - n_right)/float(pktno)
161                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
162                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
163                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
164        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx.py — 4

PyFlakes undefined name 'n_rcvd'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
157                # Pull these globals in from the main thread
158                global n_rcvd, n_right, pktno
159        
160                per = float(n_rcvd - n_right)/float(pktno)
161                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
162                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
163                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
164        
165        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx.py — 5

PyFlakes undefined name 'n_right'
Committer trondeau
Commit ID 5f6f09b79e7b54b7130a26ff4ab6c5db6c4ab70e
158                global n_rcvd, n_right, pktno
159        
160                per = float(n_rcvd - n_right)/float(pktno)
161                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
162                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
163                self.gui.perEdit.setText(QtCore.QString("%1").arg(per))
164        
165        
166        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx2.py — 1

PyFlakes undefined name 'n_rcvd'
Committer Tom
Commit ID 4f03e43efdc8736c39ff6dad10052d0e31aca62f
169            def updatePacketInfo(self):
170                # Pull these globals in from the main thread
171                global n_rcvd, n_right, pktno
172        
173                per = float(n_rcvd - n_right)/float(pktno)
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per, 0, 'e', 4))
177        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx2.py — 2

PyFlakes undefined name 'n_right'
Committer Tom
Commit ID 4f03e43efdc8736c39ff6dad10052d0e31aca62f
169            def updatePacketInfo(self):
170                # Pull these globals in from the main thread
171                global n_rcvd, n_right, pktno
172        
173                per = float(n_rcvd - n_right)/float(pktno)
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per, 0, 'e', 4))
177        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx2.py — 3

PyFlakes undefined name 'pktno'
Committer Tom
Commit ID 4f03e43efdc8736c39ff6dad10052d0e31aca62f
169            def updatePacketInfo(self):
170                # Pull these globals in from the main thread
171                global n_rcvd, n_right, pktno
172        
173                per = float(n_rcvd - n_right)/float(pktno)
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per, 0, 'e', 4))
177        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx2.py — 4

PyFlakes undefined name 'n_rcvd'
Committer Tom
Commit ID 4f03e43efdc8736c39ff6dad10052d0e31aca62f
170                # Pull these globals in from the main thread
171                global n_rcvd, n_right, pktno
172        
173                per = float(n_rcvd - n_right)/float(pktno)
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per, 0, 'e', 4))
177        
178        
				

gnuradio/gnuradio-examples/python/digital/benchmark_qt_rx2.py — 5

PyFlakes undefined name 'n_right'
Committer Tom
Commit ID 4f03e43efdc8736c39ff6dad10052d0e31aca62f
171                global n_rcvd, n_right, pktno
172        
173                per = float(n_rcvd - n_right)/float(pktno)
174                self.gui.pktsRcvdEdit.setText(QtCore.QString("%1").arg(n_rcvd))
175                self.gui.pktsCorrectEdit.setText(QtCore.QString("%1").arg(n_right))
176                self.gui.perEdit.setText(QtCore.QString("%1").arg(per, 0, 'e', 4))
177        
178        
179        
				

gnuradio/gnuradio-examples/python/digital/usrp_receive_path.py

PyFlakes undefined name 'sys'
Committer jcorgan
Commit ID e921d54419e95c097cdecf21a2de7c393eb75f18
56                gr.hier_block2.__init__(self, "usrp_receive_path",
57                        gr.io_signature(0, 0, 0),                    # Input signature
58                        gr.io_signature(0, 0, 0)) # Output signature
59                if options.rx_freq is None:
60                    sys.stderr.write("-f FREQ or --freq FREQ or --rx-freq FREQ must be specified\n")
61                    raise SystemExit
62        
63                #setup usrp
64                self._demod_class = demod_class
				

gnuradio/gnuradio-examples/python/digital/usrp_receive_path2.py

PyFlakes undefined name 'sys'
Committer Tom Rondeau
Commit ID ec8e9c7e113046c66176498f12ec79f11d3da65e
56                gr.hier_block2.__init__(self, "usrp_receive_path",
57                        gr.io_signature(0, 0, 0),                    # Input signature
58                        gr.io_signature(0, 0, 0)) # Output signature
59                if options.rx_freq is None:
60                    sys.stderr.write("-f FREQ or --freq FREQ or --rx-freq FREQ must be specified\n")
61                    raise SystemExit
62        
63                #setup usrp
64                self._demod_class = demod_class
				

gnuradio/gnuradio-examples/python/digital/usrp_transmit_path.py

PyFlakes undefined name 'sys'
Committer jcorgan
Commit ID e921d54419e95c097cdecf21a2de7c393eb75f18
55                gr.hier_block2.__init__(self, "usrp_transmit_path",
56                        gr.io_signature(0, 0, 0),                    # Input signature
57                        gr.io_signature(0, 0, 0)) # Output signature
58                if options.tx_freq is None:
59                    sys.stderr.write("-f FREQ or --freq FREQ or --tx-freq FREQ must be specified\n")
60                    raise SystemExit
61        
62                #setup usrp
63                self._modulator_class = modulator_class
				

gnuradio/gnuradio-examples/python/digital/usrp_transmit_path2.py

PyFlakes undefined name 'sys'
Committer Tom Rondeau
Commit ID 52ae8be371d71f8c0817b2a88593ff6c378b9613
55                gr.hier_block2.__init__(self, "usrp_transmit_path",
56                        gr.io_signature(0, 0, 0),                    # Input signature
57                        gr.io_signature(0, 0, 0)) # Output signature
58                if options.tx_freq is None:
59                    sys.stderr.write("-f FREQ or --freq FREQ or --tx-freq FREQ must be specified\n")
60                    raise SystemExit
61        
62                #setup usrp
63                self._modulator_class = modulator_class
				

gnuradio/gnuradio-examples/python/mp-sched/wfm_rcv_pll_to_wav.py

Category FIXME
Committer eb
Commit ID ab9413edc46d05d534f4771e8274676fd2f69de6
72        
73                #self.guts = blks2.wfm_rcv (demod_rate, audio_decimation)
74                self.guts = blks2.wfm_rcv_pll (demod_rate, audio_decimation)
75        
76                # FIXME rework {add,multiply}_const_* to handle multiple streams
77                self.volume_control_l = gr.multiply_const_ff(self.vol)
78                self.volume_control_r = gr.multiply_const_ff(self.vol)
79        
80                # wave file as final sink
				

gnuradio/gnuradio-examples/python/multi-antenna/multi_fft.py

PyFlakes redefinition of unused 'eng_notation' from line 3
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
2        
3        from gnuradio import gr, gru, eng_notation
4        from gnuradio import usrp
5        from gnuradio.eng_option import eng_option
6        from gnuradio import eng_notation
7        from gnuradio import optfir
8        from optparse import OptionParser
9        from gnuradio.wxgui import stdgui2, fftsink2, waterfallsink2, scopesink2, form, slider
10        import wx
				

gnuradio/gnuradio-examples/python/multi-antenna/multi_file.py

PyFlakes redefinition of unused 'eng_notation' from line 3
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
2        
3        from gnuradio import gr, gru, eng_notation
4        from gnuradio import usrp
5        from gnuradio.eng_option import eng_option
6        from gnuradio import eng_notation
7        from gnuradio import optfir
8        from optparse import OptionParser
9        from usrpm import usrp_dbid
10        import time
				

gnuradio/gnuradio-examples/python/multi-antenna/multi_scope.py

PyFlakes redefinition of unused 'eng_notation' from line 3
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
2        
3        from gnuradio import gr, gru, eng_notation
4        from gnuradio import usrp
5        from gnuradio.eng_option import eng_option
6        from gnuradio import eng_notation
7        from gnuradio import optfir
8        from optparse import OptionParser
9        from gnuradio.wxgui import stdgui2, fftsink2, waterfallsink2, scopesink2, form, slider
10        import wx
				

gnuradio/gnuradio-examples/python/multi_usrp/multi_usrp_oscope.py

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
225        
226            def _build_subpanel(self, vbox_arg):
227                # build a secondary information panel (sometimes hidden)
228        
229                # FIXME figure out how to have this be a subpanel that is always
230                # created, but has its visibility controlled by foo.Show(True/False)
231                
232                if not(self.show_debug_info):
233                    return
				

gnuradio/gnuradio-examples/python/ofdm/ofdm_mod_demod_test.py

PyFlakes undefined name 'fg'
Committer trondeau
Commit ID c7dbfcc7d78275f76d8c2a8ef21e3100721874be
99            n_rcvd = 0
100            n_right = 0
101                
102            def send_pkt(payload='', eof=False):
103                return fg.send_pkt(payload, eof)
104                
105            def rx_callback(ok, payload):
106                global n_rcvd, n_right
107                n_rcvd += 1
				

gnuradio/gnuradio-examples/python/usrp/usrp_nbfm_ptt.py — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
127                    return self.set_freq(kv['freq'])
128                    
129                self.panel = panel
130                
131                # FIXME This REALLY needs to be replaced with a hand-crafted button
132                # that sends both button down and button up events
133                hbox = wx.BoxSizer(wx.HORIZONTAL)
134                hbox.Add((10,0), 1)
135                self.status_msg = wx.StaticText(panel, -1, "Press Space Bar to Transmit")
				

gnuradio/gnuradio-examples/python/usrp/usrp_nbfm_ptt.py — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
212        
213            def _build_subpanel(self, vbox_arg):
214                # build a secondary information panel (sometimes hidden)
215        
216                # FIXME figure out how to have this be a subpanel that is always
217                # created, but has its visibility controlled by foo.Show(True/False)
218                
219                #if not(self.show_debug_info):
220                #    return
				

gnuradio/gnuradio-examples/python/usrp/usrp_nbfm_rcv.py — 1

PyFlakes undefined name 'audio_rate'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
120                    vbox.Add (post_deemph_fft.win, 4, wx.EXPAND)
121        
122                if 0:
123                    post_filt_fft = fftsink2.fft_sink_f(self.panel, title="Post Filter", 
124                                                        fft_size=512, sample_rate=audio_rate,
125                                                        y_per_div=10, ref_level=-40)
126                    self.connect (self.guts.audio_filter, post_filt)
127                    vbox.Add (fft_win4, 4, wx.EXPAND)
128        
				

gnuradio/gnuradio-examples/python/usrp/usrp_nbfm_rcv.py — 2

PyFlakes undefined name 'post_filt'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
122                if 0:
123                    post_filt_fft = fftsink2.fft_sink_f(self.panel, title="Post Filter", 
124                                                        fft_size=512, sample_rate=audio_rate,
125                                                        y_per_div=10, ref_level=-40)
126                    self.connect (self.guts.audio_filter, post_filt)
127                    vbox.Add (fft_win4, 4, wx.EXPAND)
128        
129                
130                # control area form at bottom
				

gnuradio/gnuradio-examples/python/usrp/usrp_nbfm_rcv.py — 3

PyFlakes undefined name 'fft_win4'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
123                    post_filt_fft = fftsink2.fft_sink_f(self.panel, title="Post Filter", 
124                                                        fft_size=512, sample_rate=audio_rate,
125                                                        y_per_div=10, ref_level=-40)
126                    self.connect (self.guts.audio_filter, post_filt)
127                    vbox.Add (fft_win4, 4, wx.EXPAND)
128        
129                
130                # control area form at bottom
131                self.myform = myform = form.form()
				

gnuradio/gnuradio-examples/python/usrp/usrp_spectrum_sense.py — 1

Category FIXME
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
67                self.center_freq = msg.arg1()
68                self.vlen = int(msg.arg2())
69                assert(msg.length() == self.vlen * gr.sizeof_float)
70        
71                # FIXME consider using Numarray or NumPy vector
72                t = msg.to_string()
73                self.raw_data = t
74                self.data = struct.unpack('%df' % (self.vlen,), t)
75        
				

gnuradio/gnuradio-examples/python/usrp/usrp_spectrum_sense.py — 2

Category FIXME
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
165                    power += tap*tap
166                    
167                c2mag = gr.complex_to_mag_squared(self.fft_size)
168        
169                # FIXME the log10 primitive is dog slow
170                log = gr.nlog10_ff(10, self.fft_size,
171                                   -20*math.log10(self.fft_size)-10*math.log10(power/self.fft_size))
172        		
173                # Set the freq_step to 75% of the actual data throughput.
				

gnuradio/gnuradio-examples/python/usrp/usrp_spectrum_sense.py — 3

Category FIXME
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
187                self._tune_callback = tune(self)        # hang on to this to keep it from being GC'd
188                stats = gr.bin_statistics_f(self.fft_size, self.msgq,
189                                            self._tune_callback, tune_delay, dwell_delay)
190        
191                # FIXME leave out the log10 until we speed it up
192        	#self.connect(self.u, s2v, fft, c2mag, log, stats)
193        	self.connect(self.u, s2v, fft, c2mag, stats)
194        
195                if options.gain is None:
				

gnuradio/gnuradio-examples/python/usrp/usrp_spectrum_sense.py — 4

Category FIXME
Committer eb
Commit ID 2c1032480d2874f38af9b5b9d18e753e968619e5
241        
242                # Print center freq so we know that something is happening...
243                print m.center_freq
244        
245                # FIXME do something useful with the data...
246                
247                # m.data are the mag_squared of the fft output (they are in the
248                # standard order.  I.e., bin 0 == DC.)
249                # You'll probably want to do the equivalent of "fftshift" on them
				

gnuradio/gnuradio-examples/python/usrp/usrp_tv_rcv.py — 1

PyFlakes undefined name 's2f'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
207                  self.connect (self.src, self.agc,self.am_demod,self.invert_and_scale, self.set_blacklevel,f2uc,self.dst)
208                elif process_type=='do_tv_sync_adv':
209                  #defaults: gr.tv_sync_adv (double sampling_freq, unsigned int tv_format,bool output_active_video_only=false, bool do_invert=false, double wanted_black_level=0.0, double wanted_white_level=255.0, double avg_alpha=0.1, double initial_gain=1.0, double initial_offset=0.0,bool debug=false)
210                  self.tv_sync_adv=gr.tv_sync_adv(usrp_rate,0,False,False,0.0,255.0,0.01,1.0,0.0,False) #note, this block is not yet in cvs
211                  self.connect (self.src, self.am_demod,self.invert_and_scale,self.tv_sync_adv,s2f,f2uc,self.dst) 
212                elif process_type=='do_nullsink':
213                  #self.connect (self.src, self.am_demod,self.invert_and_scale,f2uc,video_sink)
214                  c2r=gr.complex_to_real()
215                  nullsink=gr.null_sink(gr.sizeof_float)
				

gnuradio/gnuradio-examples/python/usrp/usrp_tv_rcv.py — 2

PyFlakes undefined name 'fftsink'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
252                    return self.set_freq(kv['freq'])
253        
254        
255                if 0:
256                    self.src_fft = fftsink.fft_sink_c (self, self.panel, title="Data from USRP",
257                                                       fft_size=512, sample_rate=usrp_rate)
258                    self.connect (self.src, self.src_fft)
259                    vbox.Add (self.src_fft.win, 4, wx.EXPAND)
260        
				

gnuradio/gnuradio-examples/python/usrp/usrp_tv_rcv.py — 3

PyFlakes undefined name 'fftsink'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
258                    self.connect (self.src, self.src_fft)
259                    vbox.Add (self.src_fft.win, 4, wx.EXPAND)
260        
261                if 0:
262                    post_demod_fft = fftsink.fft_sink_f (self, self.panel, title="Post Demod",
263                                                          fft_size=512, sample_rate=demod_rate,
264                                                          y_per_div=10, ref_level=-40)
265                    self.connect (self.am_demod, post_demod_fft)
266                    vbox.Add (post_demod_fft.win, 4, wx.EXPAND)
				

gnuradio/gnuradio-examples/python/usrp/usrp_tv_rcv.py — 4

PyFlakes undefined name 'fftsink'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
265                    self.connect (self.am_demod, post_demod_fft)
266                    vbox.Add (post_demod_fft.win, 4, wx.EXPAND)
267        
268                if 0:
269                    post_filt_fft = fftsink.fft_sink_f (self, self.panel, title="Post Filter", 
270                                                        fft_size=512, sample_rate=audio_rate,
271                                                        y_per_div=10, ref_level=-40)
272                    self.connect (self.set_blacklevel, post_filt)
273                    vbox.Add (fft_win4, 4, wx.EXPAND)
				

gnuradio/gnuradio-examples/python/usrp/usrp_tv_rcv.py — 5

PyFlakes undefined name 'post_filt'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
268                if 0:
269                    post_filt_fft = fftsink.fft_sink_f (self, self.panel, title="Post Filter", 
270                                                        fft_size=512, sample_rate=audio_rate,
271                                                        y_per_div=10, ref_level=-40)
272                    self.connect (self.set_blacklevel, post_filt)
273                    vbox.Add (fft_win4, 4, wx.EXPAND)
274        
275                
276                # control area form at bottom
				

gnuradio/gnuradio-examples/python/usrp/usrp_tv_rcv.py — 6

PyFlakes undefined name 'fft_win4'
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
269                    post_filt_fft = fftsink.fft_sink_f (self, self.panel, title="Post Filter", 
270                                                        fft_size=512, sample_rate=audio_rate,
271                                                        y_per_div=10, ref_level=-40)
272                    self.connect (self.set_blacklevel, post_filt)
273                    vbox.Add (fft_win4, 4, wx.EXPAND)
274        
275                
276                # control area form at bottom
277                self.myform = myform = form.form()
				

gnuradio/gnuradio-examples/python/usrp/usrp_wfm_rcv_fmdet.py

Category FIXME
Committer n4hy
Commit ID 58bd4ceaee4884652a682297a49957137cafa56d
114        
115                #self.guts = blks2.wfm_rcv (demod_rate, audio_decimation)
116                self.guts = blks2.wfm_rcv_fmdet (demod_rate, audio_decimation)
117        
118                # FIXME rework {add,multiply}_const_* to handle multiple streams
119                self.volume_control_l = gr.multiply_const_ff(self.vol)
120                self.volume_control_r = gr.multiply_const_ff(self.vol)
121        
122                # sound card as final sink
				

gnuradio/gnuradio-examples/python/usrp/usrp_wfm_rcv_pll.py

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
114        
115                #self.guts = blks2.wfm_rcv (demod_rate, audio_decimation)
116                self.guts = blks2.wfm_rcv_pll (demod_rate, audio_decimation)
117        
118                # FIXME rework {add,multiply}_const_* to handle multiple streams
119                self.volume_control_l = gr.multiply_const_ff(self.vol)
120                self.volume_control_r = gr.multiply_const_ff(self.vol)
121        
122                # sound card as final sink
				

gnuradio/gr-atsc/src/lib/GrAtscBitTimingLoop2.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
29        
30        static const int	DEC = 2;	// nominal decimation factor
31        
32        static const unsigned	AVG_WINDOW_LEN = 256;
33        static const float	TIMING_RATE_CONST = 1e-5;    // FIXME document interaction with AGC
34        
35        
36        GrAtscBitTimingLoop2::GrAtscBitTimingLoop2 ()
37          : VrDecimatingSigProc<float,float> (1, DEC),
				

gnuradio/gr-atsc/src/lib/GrAtscEqualizer.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
75          
76          inputs[0].index = output.index;		// the equalizer data
77          inputs[0].size  = output.size + ntaps - 1;	// history on data
78          
79          // FIXME if there's a problem, it's probably on the next line...
80          int offset = ntaps - npretaps - 1;
81        
82          assert (offset >= 0 && offset < ntaps);
83        
				

gnuradio/gr-atsc/src/lib/GrAtscSegSymSyncImpl.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
75          float	        *input_samples  = ((float **) ai)[0];
76          float         *output_samples = ((float **) ao)[0];
77          atsc::syminfo *output_info    = ((atsc::syminfo **) ao)[1];
78        
79          // FIXME finish...
80        #endif
81          assert (0);
82        
83          return output.size;
				

gnuradio/gr-atsc/src/lib/GrAtscTrellisEncoder.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
114            last_start = start;
115          }
116        
117        
118          // FIXME paranoid check for problem
119          for (unsigned int i = 0; i < output.size; i++){
120            plinfo::sanity_check (in[i + start].pli);
121          }
122        
				

gnuradio/gr-atsc/src/lib/GrAtscTrellisEncoder.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
128            encoder.encode (&out[i], &in[i + start]);
129          }
130        
131        #if 0
132          // FIXME paranoid check for problem
133          for (unsigned int i = 0; i < output.size; i++){
134            plinfo::sanity_check (out[i].pli);
135            assert (out[i].pli.regular_seg_p ());
136          }
				

gnuradio/gr-atsc/src/lib/GrAtscViterbiDecoder.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
113            decoder.decode (&out[i], &in[i + start]);
114          }
115        
116        #if 0
117          // FIXME paranoid check...
118          for (unsigned int i = 0; i < output.size; i++){
119            plinfo::sanity_check (out[i].pli);
120            assert (out[i].pli.regular_seg_p ());
121          }
				

gnuradio/gr-atsc/src/lib/Makefile.am — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
37        TESTS =	test_atsci
38        
39        lib_LTLIBRARIES = libgnuradio-atsc.la
40        
41        # FIXME
42        #	atsci_exp2_lp.cc			\
43        #	atsci_root_raised_cosine.cc		\
44        #	atsci_root_raised_cosine_bandpass.cc	\
45        #	atsci_vsbtx_lp.cc			\
				

gnuradio/gr-atsc/src/lib/Makefile.am — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
191        	qa_interleaver_fifo.h
192        
193        
194        # programs we build but don't install
195        # FIXME add test_atsc
196        noinst_PROGRAMS = 				\
197        	test_atsci
198        
199        atsci_viterbi_gen$(EXEEXT): $(srcdir)/atsci_viterbi_gen.cc
				

gnuradio/gr-atsc/src/lib/atsci_equalizer_lms.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
203        //
204        float
205        atsci_equalizer_lms::adapt1 (const float input[], float ideal_output)
206        {
207          static const double BETA = 0.00005;	// FIXME figure out what this ought to be
208        					// FIXME add gear-shifting 
209        
210          double y = filter1 (input);
211          double e = y - ideal_output;
				

gnuradio/gr-atsc/src/lib/atsci_equalizer_lms.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
204        float
205        atsci_equalizer_lms::adapt1 (const float input[], float ideal_output)
206        {
207          static const double BETA = 0.00005;	// FIXME figure out what this ought to be
208        					// FIXME add gear-shifting 
209        
210          double y = filter1 (input);
211          double e = y - ideal_output;
212        
				

gnuradio/gr-atsc/src/lib/atsci_equalizer_lms2.cc — 1

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
258        
259        //
260        // filter and adapt a single output
261        //
262        float kludge ()
263        {
264          return 0.0;
265        }
266        
				

gnuradio/gr-atsc/src/lib/atsci_equalizer_lms2.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
266        
267        float
268        atsci_equalizer_lms2::adapt1 (const float input[], float ideal_output)
269        {
270          static const double BETA = 0.00005;	// FIXME figure out what this ought to be
271        					// FIXME add gear-shifting 
272        
273          double y = filter1 (input);
274          double e = y - ideal_output;
				

gnuradio/gr-atsc/src/lib/atsci_equalizer_lms2.cc — 3

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
267        float
268        atsci_equalizer_lms2::adapt1 (const float input[], float ideal_output)
269        {
270          static const double BETA = 0.00005;	// FIXME figure out what this ought to be
271        					// FIXME add gear-shifting 
272        
273          double y = filter1 (input);
274          double e = y - ideal_output;
275        
				

gnuradio/gr-atsc/src/lib/atsci_randomizer.h

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
58          static void initialize_output_map ();
59          static unsigned char slow_output_map (int st);
60        
61          static unsigned char fast_output_map (int st){
62            return s_output_map[(st & 0xb23c) >> 2]; // Magic const with 8 bits set improves cache 
63                                                     // utilization.  The bits correspond to the taps
64        					     // used in output calculation.  Others may be 
65        					     // safely ignored.
66          }
				

gnuradio/gr-atsc/src/lib/atsci_sliding_correlator.cc

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
26        // #define TRY_BACKWARDS
27        
28        /*
29         * Return the number of 1's in v.
30         * This magic code is explained wonderfully in the AMD Athlon
31         * optimization guide, pg 136.
32         */
33        static inline int popcount32 (unsigned long v)
34        {
				

gnuradio/gr-atsc/src/lib/atsci_sssr.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
237        {
238          if (*index + (int) ntaps () > nsamples)
239            return false;
240        
241          // FIXME Confirm that this is right.  I think it is.  It was (1-d_mu)
242          *output_sample = d_interp.interpolate (&input_samples[*index], d_mu);  
243        
244          double filter_out = 0;
245          
				

gnuradio/gr-atsc/src/lib/fpll_btloop_coupling.h

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
22        #ifndef _FPLL_BTLOOP_COUPLING_H_
23        #define _FPLL_BTLOOP_COUPLING_H_
24        
25        /*!
26         * Magic coupling constant between GrAtscFPLL and GrAtscBitTimingLoop.
27         * Trust me, you don't want to mess with this.
28         *
29         * The agc block buried in the FPLL indirectly sets the level of the input
30         * to the bit timing loop.  The bit timing loop's convergence properties
				

gnuradio/gr-audio/examples/python/audio_fft.py

Category FIXME
Committer matt
Commit ID 383649867fc83a7f348572099b70721302b01f2a
86        
87            def _build_subpanel(self, vbox_arg):
88                # build a secondary information panel (sometimes hidden)
89        
90                # FIXME figure out how to have this be a subpanel that is always
91                # created, but has its visibility controlled by foo.Show(True/False)
92                
93                def _form_set_decim(kv):
94                    return self.set_decim(kv['decim'])
				

gnuradio/gr-audio/lib/osx/audio_osx_source.cc

Category FIXME
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
57          std::cerr << "  Channels per Frame : " << inDesc->mChannelsPerFrame << std::endl;
58          std::cerr << "  Bits per Channel   : " << inDesc->mBitsPerChannel << std::endl;
59        }
60        
61        // FIXME these should query some kind of user preference
62        
63        audio_osx_source::audio_osx_source (int sample_rate,
64        				    const std::string device_name,
65        				    bool do_block,
				

gnuradio/gr-audio/lib/portaudio/audio_portaudio_sink.cc — 1

Category FIXME
Committer Josh Blum
Commit ID ef276a8ba31f920ac469b84466338e8693e43a2e
108          }
109        
110          else {			// underrun
111            self->d_nunderuns++;
112            ssize_t r = ::write(2, "aU", 2);	// FIXME change to non-blocking call
113            if(r == -1) {
114              perror("audio_portaudio_source::portaudio_source_callback write error to stderr.");
115            }
116        
				

gnuradio/gr-audio/lib/portaudio/audio_portaudio_sink.cc — 2

Category FIXME
Committer Josh Blum
Commit ID ef276a8ba31f920ac469b84466338e8693e43a2e
113            if(r == -1) {
114              perror("audio_portaudio_source::portaudio_source_callback write error to stderr.");
115            }
116        
117            // FIXME we should transfer what we've got and pad the rest
118            memset(outputBuffer, 0, nreqd_samples * sizeof(sample_t));
119        
120            self->d_ringbuffer_ready = true;
121            self->d_ringbuffer_cond.notify_one();  // Tell the sink to get going!
				

gnuradio/gr-audio/lib/portaudio/audio_portaudio_sink.cc — 3

Category FIXME
Committer Josh Blum
Commit ID ef276a8ba31f920ac469b84466338e8693e43a2e
168            bail("no devices available", 0);
169        
170          if (d_device_name.empty()) 
171          {
172            // FIXME Get smarter about picking something
173            fprintf(stderr,"\nUsing Default Device\n");
174            device = Pa_GetDefaultOutputDevice();
175            deviceInfo = Pa_GetDeviceInfo(device);
176            fprintf(stderr,"%s is the chosen device using %s as the host\n",
				

gnuradio/gr-audio/lib/portaudio/audio_portaudio_source.cc — 1

Category FIXME
Committer Josh Blum
Commit ID ef276a8ba31f920ac469b84466338e8693e43a2e
111          }
112        
113          else {			// overrun
114            self->d_noverruns++;
115            ssize_t r = ::write(2, "aO", 2);	// FIXME change to non-blocking call
116            if(r == -1) {
117              perror("audio_portaudio_source::portaudio_source_callback write error to stderr.");
118            }
119        
				

gnuradio/gr-audio/lib/portaudio/audio_portaudio_source.cc — 2

Category FIXME
Committer Josh Blum
Commit ID ef276a8ba31f920ac469b84466338e8693e43a2e
168            bail("no devices available", 0);
169        
170          if (d_device_name.empty()) 
171          {
172            // FIXME Get smarter about picking something
173            device = Pa_GetDefaultInputDevice();
174            deviceInfo = Pa_GetDeviceInfo(device);
175            fprintf(stderr,"%s is the chosen device using %s as the host\n",
176        	    deviceInfo->name, Pa_GetHostApiInfo(deviceInfo->hostApi)->name);
				

gnuradio/gr-audio/lib/portaudio/audio_portaudio_source.cc — 3

Category FIXME
Committer Josh Blum
Commit ID ef276a8ba31f920ac469b84466338e8693e43a2e
318              // had anything better to do.  Thus we really need to produce some amount
319              // of "fill".
320              //
321              // There are lots of options for comfort noise, etc.
322              // FIXME We'll fill with zeros for now.  Yes, it will "click"...
323        
324              // Fill with some frames of zeros
325              {
326        	gruel::scoped_lock guard(d_ringbuffer_mutex);
				

gnuradio/gr-audio/lib/windows/audio_windows_sink.cc

Category FIXME
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
44        }
45        
46        static const double CHUNK_TIME = 0.1;	//0.001;           // 100 ms
47        
48        // FIXME these should query some kind of user preference
49        
50        static std::string
51        default_device_name ()
52        {
				

gnuradio/gr-audio/lib/windows/audio_windows_source.cc — 1

Category FIXME
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
44        }
45        
46        static const double CHUNK_TIME = 0.005;	// 5 ms
47        
48        // FIXME these should query some kind of user preference
49        
50        static std::string
51        default_device_name ()
52        {
				

gnuradio/gr-audio/lib/windows/audio_windows_source.cc — 2

Category TODO
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
60            d_sampling_freq (sampling_freq),
61            d_device_name (device_name.empty ()? default_device_name () : device_name),
62            d_fd (-1), d_buffer (0), d_chunk_size (0)
63        {
64          //FIXME TODO implement me
65        #if 0
66          if ((d_fd = open (d_device_name.c_str (), O_RDONLY)) < 0)
67            {
68              fprintf (stderr, "audio_windows_source: ");
				

gnuradio/gr-audio/lib/windows/audio_windows_source.cc — 3

Category FIXME
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
60            d_sampling_freq (sampling_freq),
61            d_device_name (device_name.empty ()? default_device_name () : device_name),
62            d_fd (-1), d_buffer (0), d_chunk_size (0)
63        {
64          //FIXME TODO implement me
65        #if 0
66          if ((d_fd = open (d_device_name.c_str (), O_RDONLY)) < 0)
67            {
68              fprintf (stderr, "audio_windows_source: ");
				

gnuradio/gr-audio/lib/windows/audio_windows_source.cc — 4

Category TODO
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
135        audio_windows_source::work (int noutput_items,
136        			    gr_vector_const_void_star & input_items,
137        			    gr_vector_void_star & output_items)
138        {
139          //FIXME TODO implement me
140        #if 0
141          float *f0 = (float *) output_items[0];
142          float *f1 = (float *) output_items[1];	// will be invalid if this is mono output
143        
				

gnuradio/gr-audio/lib/windows/audio_windows_source.cc — 5

Category FIXME
Committer Josh Blum
Commit ID 5f4976ea2701d6f3ebe35eef7cc939f98a28ec88
135        audio_windows_source::work (int noutput_items,
136        			    gr_vector_const_void_star & input_items,
137        			    gr_vector_void_star & output_items)
138        {
139          //FIXME TODO implement me
140        #if 0
141          float *f0 = (float *) output_items[0];
142          float *f1 = (float *) output_items[1];	// will be invalid if this is mono output
143        
				

gnuradio/gr-audio/swig/audio_swig.i

Category Magic
Committer Josh Blum
Commit ID 4cba8db90fe1412232a4c1a20d834f6ce606baf0
53        #include <gr_audio_sink.h>
54        %}
55        
56        ////////////////////////////////////////////////////////////////////////
57        // block magic
58        ////////////////////////////////////////////////////////////////////////
59        GR_SWIG_BLOCK_MAGIC(audio,source)
60        %include <gr_audio_source.h>
61        
				

gnuradio/gr-comedi/src/comedi_source_s.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
34        #include <stdexcept>
35        #include <gri_comedi.h>
36        
37        
38        // FIXME these should query some kind of user preference
39        
40        
41        static std::string 
42        default_device_name ()
				

gnuradio/gr-gcell/src/gcell_fft_vcc.cc

Category FIXME
Committer eb
Commit ID b9ba2711addfc9057c136b520afc9e121ec19be9
113          float window_buf[MAX_FFT_SIZE/2] __attribute__((aligned (16)));
114          float *window = 0;
115          
116          // If we've got a window, ensure it's 16-byte aligned
117          // FIXME move this to set_window
118          if (d_window.size()){
119            if ((((intptr_t)&d_window[0]) & 0xf) == 0)
120              window = &d_window[0];		// OK as is
121            else {
				

gnuradio/gr-gpio/src/fpga/lib/gpio_input.v — 1

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
33              
34            // Buffer at input to chip
35        
36           reg rx_dig_rx_a_a,rx_dig_rx_b_a,rx_dig_rx_a_b,rx_dig_rx_b_b;
37           //TODO possibly use a flancter here
38           //This code can optionally be extended to do streaming input from gpio of tx boards
39           //The code can also be extended to input more bits
40         
41           always @(posedge clock)
				

gnuradio/gr-gpio/src/fpga/lib/gpio_input.v — 2

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
55           // Now mux to the appropriate outputs
56           wire [3:0] 	ddc3mux,ddc2mux,ddc1mux,ddc0mux;
57           wire 	rx_realsignals;
58           wire [3:0]  rx_numchan;//not used here
59           //TODO This setting reg readout is a duplicate of the one in adc_interface.v.
60           //     Change code so this is done in only one place, or give this code its own register.
61           setting_reg #(`FR_RX_MUX) sr_rxmux(.clock(clock),.reset(reset),.strobe(serial_strobe),.addr(serial_addr),
62        				      .in(serial_data),.out({ddc3mux,ddc2mux,ddc1mux,ddc0mux,rx_realsignals,rx_numchan[3:1]}));
63           //assign 	rx_numchan[0] = 1'b0;
				

gnuradio/gr-gpio/src/fpga/top/usrp_gpio.v — 1

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
186        
187           //wire tx_dig_a_chan = (dac0mux[1] | dac1mux[1] );
188           //wire tx_dig_b_chan = (dac2mux[1] | dac3mux[1] );
189        
190           //TODO make enabling tx_dig configurable through register
191         
192           wire enable_tx_dig_a = 1'b1 & enable_tx;
193           wire enable_tx_dig_b = 1'b1 & enable_tx;
194        
				

gnuradio/gr-gpio/src/fpga/top/usrp_gpio.v — 2

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
196           wire tx_dig_b_a_en = dac1mux[3] & enable_tx_dig_a;
197           wire tx_dig_a_b_en = dac2mux[3] & enable_tx_dig_b;
198           wire tx_dig_b_b_en = dac3mux[3] & enable_tx_dig_b;
199        
200          //TODO make gpio bits used for tx_dig configurable through register
201           assign io_tx_a_out = {tx_dig_a_a_en?tx_dig_a_a:reg_0[15],tx_dig_b_a_en?tx_dig_b_a:reg_0[14],reg_0[13:0]};
202           assign io_tx_b_out = {tx_dig_a_b_en?tx_dig_a_b:reg_2[15],tx_dig_b_b_en?tx_dig_b_b:reg_2[14],reg_2[13:0]};
203           assign io_tx_a_force_output = {tx_dig_a_a_en,tx_dig_b_a_en,14'b0};
204           assign io_tx_b_force_output = {tx_dig_a_b_en,tx_dig_b_b_en,14'b0};
				

gnuradio/gr-gpio/src/fpga/top/usrp_gpio.v — 3

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
204           assign io_tx_b_force_output = {tx_dig_a_b_en,tx_dig_b_b_en,14'b0};
205        
206        
207         `ifdef TX_EN_DIG_0
208           //TODO make enabling tx_dig configurable through register
209           //tx_chain_dig tx_chain_dig_0
210           //  ( .clock(clk64),.reset(tx_dsp_reset),.enable(enable_tx),
211           //    .i_in(ch0tx), q_in(ch1tx),
212           //    .i_out_ana(bb_tx_i0),
				

gnuradio/gr-gpio/src/fpga/top/usrp_gpio.v — 4

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
226           assign      q_out_dig_0=1'b0;
227         `endif
228        
229         `ifdef TX_EN_DIG_1
230           //TODO make enabling tx_dig configurable through register
231           tx_chain_dig tx_chain_dig_1
232             ( .clock(clk64),.reset(tx_dsp_reset),.enable(enable_tx),
233               .i_in(ch2tx),.q_in(ch3tx),
234               .i_out_ana(bb_tx_i1),.q_out_ana(bb_tx_q1),
				

gnuradio/gr-gpio/src/fpga/top/usrp_gpio.v — 5

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
356           assign      bb_rx_q3=16'd0;
357         `endif
358        
359         `ifdef RX_DIG_ON
360           wire enable_rx_dig = 1'b1 & enable_rx;//TODO make  enabling rx_dig configurable through register
361           assign      io_rx_a_force_input = {enable_rx_dig,enable_rx_dig,14'b0};
362           assign      io_rx_b_force_input = {enable_rx_dig,enable_rx_dig,14'b0};
363           gpio_input  gpio_input(.clock(clk64),.reset(rx_dsp_reset),.enable(1'b1),
364                                  .out_strobe(hb_strobe),
				

gnuradio/gr-gpio/src/python/gpio_rx_sfile.py — 1

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
61                    g = subdev.gain_range()
62                    options.gain = float(g[0]+g[1])/2
63        
64        
65                #TODO setting gain on basicRX only sets the I channel, use a second subdev to set gain of Q channel
66                #see gnuradio-examples/multi-antenna for possible solutions
67                subdev.set_gain(options.gain)
68        
69                #TODO check if freq has same problem as gain when trying to use complex mode on basicRX
				

gnuradio/gr-gpio/src/python/gpio_rx_sfile.py — 2

Category TODO
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
65                #TODO setting gain on basicRX only sets the I channel, use a second subdev to set gain of Q channel
66                #see gnuradio-examples/multi-antenna for possible solutions
67                subdev.set_gain(options.gain)
68        
69                #TODO check if freq has same problem as gain when trying to use complex mode on basicRX
70                r = u.tune(0, subdev, options.freq)
71                if not r:
72                    sys.stderr.write('Failed to set frequency\n')
73                    raise SystemExit, 1
				

gnuradio/gr-gpio/src/python/gpio_usrp_fft.py

Category FIXME
Committer jcorgan
Commit ID 48fefc9b6e294c0ecb3cdd826b5a2f4b008fa829
215        
216            def _build_subpanel(self, vbox_arg):
217                # build a secondary information panel (sometimes hidden)
218        
219                # FIXME figure out how to have this be a subpanel that is always
220                # created, but has its visibility controlled by foo.Show(True/False)
221                
222                def _form_set_decim(kv):
223                    return self.set_decim(kv['decim'])
				

gnuradio/gr-howto-write-a-block/config/gr_gprof.m4

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
18        dnl the Free Software Foundation, Inc., 51 Franklin Street,
19        dnl Boston, MA 02110-1301, USA.
20        dnl 
21        
22        dnl FIXME probably need to add linker flag too...
23        
24        AC_DEFUN([GR_SET_GPROF],[
25          dnl Check for --with-gprof
26          AC_MSG_CHECKING([whether user wants gprof])
				

gnuradio/gr-howto-write-a-block/python/__init__.py

PyFlakes redefinition of unused '_RTLD_GLOBAL' from line 26
Committer Johnathan Corgan
Commit ID 5d80acab66a91a6c7bc476761f857d5e876e8bcc
25        try:
26            from dl import RTLD_GLOBAL as _RTLD_GLOBAL
27        except ImportError:
28            try:
29        	from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
30            except ImportError:
31        	pass
32            
33        if _RTLD_GLOBAL != 0:
				

gnuradio/gr-howto-write-a-block/python/run_tests.in

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
17        # Where to look in the src tree for hand written python code
18        py=@abs_top_srcdir@/python
19        
20        # Where to look for installed GNU Radio python modules
21        # FIXME this is wrong on a distcheck.  We really need to ask gnuradio-core
22        # where it put its python files.
23        installed_pythondir=@pythondir@
24        installed_pyexecdir=@pyexecdir@
25        
				

gnuradio/gr-howto-write-a-block/swig/howto_square_ff.i

Category Magic
Committer Johnathan Corgan
Commit ID d462b559ef7618dcf3a61974ff4fc3fe199069a3
1        /*
2         * First arg is the package prefix.
3         * Second arg is the name of the class minus the prefix.
4         *
5         * This does some behind-the-scenes magic so we can
6         * access howto_square_ff from python as howto.square_ff
7         */
8        GR_SWIG_BLOCK_MAGIC(howto,square_ff);
9        
				

gnuradio/gr-msdd6000/src/msdd6000.cc

Category FIXME
Committer eb
Commit ID a36b922fa54458ccc432e794a47415115519bf6a
115        	}
116        
117        
118        	// SET UP SOME SYSTEM WIDE TCP SOCKET PARAMETERS
119        	// FIXME seems like kind of a big hammer.  Are you sure you need this?
120        	FILE* fd = fopen("/proc/sys/net/core/netdev_max_backlog", "w");
121        	if (fd){
122        	  fwrite("10000", 1, strlen("10000"), fd);
123        	  fclose(fd);
				

gnuradio/gr-msdd6000/src/msdd6000_rs.cc

Category FIXME
Committer Eric Blossom
Commit ID e820ce5ca1475a56ef52e7384d0cf094b0127932
121        	}
122        
123        
124        	// SET UP SOME SYSTEM WIDE TCP SOCKET PARAMETERS
125        	// FIXME seems like kind of a big hammer.  Are you sure you need this?
126        	FILE* fd = fopen("/proc/sys/net/core/netdev_max_backlog", "w");
127        	if (fd){
128        	  fwrite("10000", 1, strlen("10000"), fd);
129        	  fclose(fd);
				

gnuradio/gr-msdd6000/src/msdd_rs_source_simple.cc — 1

Category FIXME
Committer Eric Blossom
Commit ID e820ce5ca1475a56ef52e7384d0cf094b0127932
70        
71        	char type = buffer[0];
72        	//printf("Sequence %d\n",seq);
73        	
74        	// FIXME get rid of these magic 366's!
75        	if(d_lastseq == -366)
76        	{
77                if (type != 0){
78                    /* Received control packet -- parse and update locally stored parameters */
				

gnuradio/gr-msdd6000/src/msdd_rs_source_simple.cc — 2

Category Magic
Committer Eric Blossom
Commit ID e820ce5ca1475a56ef52e7384d0cf094b0127932
70        
71        	char type = buffer[0];
72        	//printf("Sequence %d\n",seq);
73        	
74        	// FIXME get rid of these magic 366's!
75        	if(d_lastseq == -366)
76        	{
77                if (type != 0){
78                    /* Received control packet -- parse and update locally stored parameters */
				

gnuradio/gr-msdd6000/src/msdd_rs_source_simple.cc — 3

Category FIXME
Committer Eric Blossom
Commit ID e820ce5ca1475a56ef52e7384d0cf094b0127932
124        }
125        
126        //bool msdd_rs_source_simple::set_decim_rate(unsigned int rate)
127        //{
128        //	// FIXME seems buggy.  How about a floor or ceil?
129        //        rcv->set_decim((int) log2(rate));
130        //	return true;
131        //}
132        
				

gnuradio/gr-msdd6000/src/python-examples/msdd_fft.py

Category FIXME
Committer n4hy
Commit ID 2b77cc7bc535618c4bba6ce1f3d6fa388e843933
186        
187            def _build_subpanel(self, vbox_arg):
188                # build a secondary information panel (sometimes hidden)
189        
190                # FIXME figure out how to have this be a subpanel that is always
191                # created, but has its visibility controlled by foo.Show(True/False)
192                
193                def _form_set_decim(kv):
194                    return self.set_decim(kv['decim'])
				

gnuradio/gr-msdd6000/src/python-examples/msdd_rs_spec_an.py

PyFlakes redefinition of unused 'qtgui' from line 27
Committer Eric Blossom
Commit ID e820ce5ca1475a56ef52e7384d0cf094b0127932
28        from optparse import OptionParser
29        import sys,time
30        
31        try:
32            from gnuradio.qtgui import qtgui
33            from PyQt4 import QtGui, QtCore
34            import sip
35        except ImportError:
36            print "Please install gr-qtgui."
				

gnuradio/gr-msdd6000/src/python-examples/msdd_spectrum_sense.py — 1

Category FIXME
Committer n4hy
Commit ID 2b77cc7bc535618c4bba6ce1f3d6fa388e843933
210                
211                norm = gr.multiply_const_cc(1.0/self.fft_size)
212                c2mag = gr.complex_to_mag_squared(self.fft_size)
213        
214                # FIXME the log10 primitive is dog slow
215                log = gr.nlog10_ff(10, self.fft_size,
216                                   -20*math.log10(self.fft_size)-10*math.log10(power/self.fft_size))
217        		
218                # Set the freq_step to % of the actual data throughput.
				

gnuradio/gr-msdd6000/src/python-examples/msdd_spectrum_sense.py — 2

Category FIXME
Committer n4hy
Commit ID 2b77cc7bc535618c4bba6ce1f3d6fa388e843933
233                self._tune_callback = tune(self)        # hang on to this to keep it from being GC'd
234                stats = gr.bin_statistics_f(self.fft_size, self.msgq,
235                                            self._tune_callback, tune_delay, dwell_delay)
236        
237                # FIXME leave out the log10 until we speed it up
238        	self.connect(self.src, s2v, fft, c2mag, log, stats)
239        
240        
241            def set_next_freq(self):
				

gnuradio/gr-msdd6000/src/python-examples/msdd_spectrum_sense.py — 3

Category FIXME
Committer n4hy
Commit ID 2b77cc7bc535618c4bba6ce1f3d6fa388e843933
276        
277                # Print center freq so we know that something is happening...
278                print msgparser.center_freq
279        
280                # FIXME do something useful with the data...
281                
282                # m.data are the mag_squared of the fft output (they are in the
283                # standard order.  I.e., bin 0 == DC.)
284                # You'll probably want to do the equivalent of "fftshift" on them
				

gnuradio/gr-msdd6000/src/python-examples/msdd_spectrum_waterfall.py — 1

Category FIXME
Committer n4hy
Commit ID 2b77cc7bc535618c4bba6ce1f3d6fa388e843933
219                
220                # calculate magnitude squared of output of FFT
221                c2mag = gr.complex_to_mag_squared(self.fft_size)
222        
223                # FIXME the log10 primitive is dog slow
224                log = gr.nlog10_ff(10, self.fft_size,
225                                   -20*math.log10(self.fft_size)-10*math.log10(power/self.fft_size))
226        		
227                # Set the freq_step to % of the actual data throughput.
				

gnuradio/gr-msdd6000/src/python-examples/msdd_spectrum_waterfall.py — 2

Category FIXME
Committer n4hy
Commit ID 2b77cc7bc535618c4bba6ce1f3d6fa388e843933
244                # set up message callback routine to get data from bin_statistics_f block
245                self.msgq = gr.msg_queue(16)
246                self._tune_callback = tune(self)        # hang on to this to keep it from being GC'd
247        
248                # FIXME this block doesn't like to work with negatives because of the "d_max[i]=0" on line
249                # 151 of gr_bin_statistics_f.cc file. Set this to -10000 or something to get it to work.
250                stats = gr.bin_statistics_f(self.fft_size, self.msgq,
251                                            self._tune_callback, tune_delay, dwell_delay)
252        
				

gnuradio/gr-msdd6000/src/python-examples/msdd_spectrum_waterfall.py — 3

Category FIXME
Committer n4hy
Commit ID 2b77cc7bc535618c4bba6ce1f3d6fa388e843933
249                # 151 of gr_bin_statistics_f.cc file. Set this to -10000 or something to get it to work.
250                stats = gr.bin_statistics_f(self.fft_size, self.msgq,
251                                            self._tune_callback, tune_delay, dwell_delay)
252        
253                # FIXME there's a concern over the speed of the log calculation
254                # We can probably calculate the log inside the stats block
255        	self.connect(self.src, self.conv, s2v, fft, c2mag, log, stats)
256        
257        
				

gnuradio/gr-msdd6000/src/python-examples/new_msdd_fft.py

Category FIXME
Committer n4hy
Commit ID 2b77cc7bc535618c4bba6ce1f3d6fa388e843933
180        
181            def _build_subpanel(self, vbox_arg):
182                # build a secondary information panel (sometimes hidden)
183        
184                # FIXME figure out how to have this be a subpanel that is always
185                # created, but has its visibility controlled by foo.Show(True/False)
186                
187                def _form_set_decim(kv):
188                    return self.set_decim(kv['decim'])
				

gnuradio/gr-qtgui/apps/usrp2_display.py

PyFlakes redefinition of unused 'qtgui' from line 27
Committer trondeau
Commit ID 103361f6898960e80f042e019369c59fef842c66
28        from optparse import OptionParser
29        import sys
30        
31        try:
32            from gnuradio.qtgui import qtgui
33            from PyQt4 import QtGui, QtCore
34            import sip
35        except ImportError:
36            print "Please install gr-qtgui."
				

gnuradio/gr-qtgui/apps/usrp_display.py

PyFlakes redefinition of unused 'qtgui' from line 27
Committer trondeau
Commit ID 471ebf621da0426fefda870dfe29d75cd9ef2da6
28        from optparse import OptionParser
29        import sys
30        
31        try:
32            from gnuradio.qtgui import qtgui
33            from PyQt4 import QtGui, QtCore
34            import sip
35        except ImportError:
36            print "Please install gr-qtgui."
				

gnuradio/gr-qtgui/lib/Makefile.am

Category Magic
Committer trondeau
Commit ID 144fa44ed2e0378e2ec585c3991108926d9449be
89        
90        %.ui.h : %.ui
91        	$(QT_UIC_EXEC) $< -o $@
92        
93        # magic flags
94        libgnuradio_qtgui_la_LDFLAGS = $(NO_UNDEFINED) $(BOOST_LDFLAGS) $(LTVERSIONFLAGS)
95        
96        libgnuradio_qtgui_la_LIBADD = 		\
97        	$(GNURADIO_CORE_LA)		\
				

gnuradio/gr-radio-astronomy/src/lib/ra.i

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
30        /*
31         * First arg is the package prefix.
32         * Second arg is the name of the class minus the prefix.
33         *
34         * This does some behind-the-scenes magic so we can
35         * access ra_square_ff from python as ra.square_ff
36         */
37        // GR_SWIG_BLOCK_MAGIC(ra,square_ff);
38        
				

gnuradio/gr-radio-astronomy/src/python/ra_waterfallsink.py — 1

PyFlakes redefinition of function 'const_list' from line 300
Committer mleech
Commit ID 42fde01ca6704b0ab721e35a7225daadb6cbefc0
379                            break
380                        dc.DrawLine( t - x, e[1] + 1, t - x, self.h_scale )
381                    f += self.ax_spec[1]
382        
383            def const_list(self,const,len):
384                a = [const]
385                for i in range(1,len):
386                    a.append(const)
387                return a
				

gnuradio/gr-radio-astronomy/src/python/ra_waterfallsink.py — 2

PyFlakes redefinition of function 'make_colormap' from line 303
Committer mleech
Commit ID 42fde01ca6704b0ab721e35a7225daadb6cbefc0
385                for i in range(1,len):
386                    a.append(const)
387                return a
388        
389            def make_colormap(self):
390                r = []
391                r.extend(self.const_list(0,96))
392                r.extend(range(0,255,4))
393                r.extend(self.const_list(255,64))
				

gnuradio/gr-radio-astronomy/src/python/ra_waterfallsink.py — 3

PyFlakes undefined name 'dc1'
Committer mleech
Commit ID deb2f30daebaeb9c5e2aa64278bdd8cc7e28ed61
421                    #         wx.COPY,False,-1,-1)
422                    pass
423                else:
424                    for i in range( self.bm_size[1]-1, 0, -1 ):
425                        dc1.Blit( 0, i, self.bm_size[0], 1, dc1, 0, i-1 )
426        
427                x = max(abs(self.fftsink.sample_rate), abs(self.fftsink.baseband_freq))
428                if x >= 1e9:
429                    sf = 1e-9
				

gnuradio/gr-radio-astronomy/src/python/ra_waterfallsink.py — 4

PyFlakes undefined name 'dc1'
Committer mleech
Commit ID deb2f30daebaeb9c5e2aa64278bdd8cc7e28ed61
421                    #         wx.COPY,False,-1,-1)
422                    pass
423                else:
424                    for i in range( self.bm_size[1]-1, 0, -1 ):
425                        dc1.Blit( 0, i, self.bm_size[0], 1, dc1, 0, i-1 )
426        
427                x = max(abs(self.fftsink.sample_rate), abs(self.fftsink.baseband_freq))
428                if x >= 1e9:
429                    sf = 1e-9
				

gnuradio/gr-radio-astronomy/src/python/usrp_psr_receiver.py

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
572        
573            def _build_subpanel(self, vbox_arg):
574                # build a secondary information panel (sometimes hidden)
575        
576                # FIXME figure out how to have this be a subpanel that is always
577                # created, but has its visibility controlled by foo.Show(True/False)
578                
579                if not(self.show_debug_info):
580                    return
				

gnuradio/gr-radio-astronomy/src/python/usrp_ra_receiver.py — 1

PyFlakes undefined name 'usrp2'
Committer mleech
Commit ID 6a6eb191a0aa6f36aa40a38bfaf360f6e993339b
1371        		else:
1372        			if (self.dual_mode == True or self.interferometer == True):
1373        				print "Cannot use dual_mode or interferometer with single USRP2"
1374        				sys.exit(1)
1375        			self.u = usrp2.source_32fc(self.interface, self.mac_addr)
1376        			self.u.set_decim (self.decim)
1377        			self.cardtype = self.u.daughterboard_id()
1378        
1379        def main ():
				

gnuradio/gr-radio-astronomy/src/python/usrp_ra_receiver.py — 2

Category FIXME
Committer mleech
Commit ID c500829e18e017e53ebcf57d0a9b85b6b1cd6ffa
554        
555        	def _build_subpanel(self, vbox_arg):
556        		# build a secondary information panel (sometimes hidden)
557        
558        		# FIXME figure out how to have this be a subpanel that is always
559        		# created, but has its visibility controlled by foo.Show(True/False)
560        		
561        		if not(self.show_debug_info):
562        			return
				

gnuradio/gr-run-waveform/test_xyzzy.cc — 1

Category Magic
Committer Rob Savoye
Commit ID aef7d16d8752f3e97a6d1d5e64399c498bce5123
199            } else {
200                cout << "FAILED: xyzzy_init()" << endl;
201            }
202             
203            // Does a file with name 'filename' exist in magic filesystem?
204            if (xyzzy_file_exists("srfi/srfi-35.scm")) {
205                cout << "FAILED: xyzzy_file_exists(shouldn't exist)" << endl;
206            } else {
207                cout << "PASSED: xyzzy_file_exists(shouldn't exist)" << endl;
				

gnuradio/gr-run-waveform/test_xyzzy.cc — 2

Category Magic
Committer Rob Savoye
Commit ID b68acf9988c51bc8afb91ab80569aad89b70d4dc
206            } else {
207                cout << "PASSED: xyzzy_file_exists(shouldn't exist)" << endl;
208            }
209            
210            // Does a file with name 'filename' exist in magic filesystem?
211            if (xyzzy_file_exists("/-xyzzy-/srfi/srfi-35.scm")) {
212                cout << "PASSED: xyzzy_file_exists(should exist)" << endl;
213            } else {
214                cout << "FAILED: xyzzy_file_exists(should exist)" << endl;
				

gnuradio/gr-run-waveform/test_xyzzy.cc — 3

Category Magic
Committer Rob Savoye
Commit ID c5acc6ed14484d010453209895b2bd8ee63a634d
213            } else {
214                cout << "FAILED: xyzzy_file_exists(should exist)" << endl;
215            }
216            
217            // Does a file with name 'filename' exist in magic filesystem?
218            if (xyzzy_file_exists("/-xyzzy-/srfi/srfi-99.scm")) {
219                cout << "FAILED: xyzzy_file_exists(shouldn't exist)" << endl;
220            } else {
221                cout << "PASSED: xyzzy_file_exists(shouldn't exist)" << endl;
				

gnuradio/gr-run-waveform/xyzzy.cc — 1

Category Magic
Committer Rob Savoye
Commit ID 9b7e9228428e3179f866fe73b088d85a2ecc2222
73            in.read(head, length);
74        
75            boost::shared_ptr<struct header> header = read_header(reinterpret_cast<boost::uint8_t *>(&head));
76        
77            // Check the magic number to make sure it's the right type of file.
78            if (strncmp(header->magic, "-XyZzY-", 8) != 0) {
79                cerr << "ERROR: bad magic number" << endl;
80                return false;
81            }
				

gnuradio/gr-run-waveform/xyzzy.cc — 2

Category Magic
Committer Rob Savoye
Commit ID 9b7e9228428e3179f866fe73b088d85a2ecc2222
75            boost::shared_ptr<struct header> header = read_header(reinterpret_cast<boost::uint8_t *>(&head));
76        
77            // Check the magic number to make sure it's the right type of file.
78            if (strncmp(header->magic, "-XyZzY-", 8) != 0) {
79                cerr << "ERROR: bad magic number" << endl;
80                return false;
81            }
82        
83            // Read in the Directory table
				

gnuradio/gr-run-waveform/xyzzy.cc — 3

Category Magic
Committer Rob Savoye
Commit ID e8a3f5bacd2d7b662e43be4bee0189d91465281b
108        
109            return true;
110        };
111        
112        // Does a file with name 'filename' exist in magic filesystem?
113        //    bool file_exists(handle, const std::string &filespec);
114        bool
115        XYZZY::file_exists(const std::string &filespec)
116        {
				

gnuradio/gr-run-waveform/xyzzy.cc — 4

Category Magic
Committer Rob Savoye
Commit ID 712e2a1b1235b9f1272b56ae90afbc776c884f7b
224          else
225            return datafile.init(filespec);
226        }
227        
228        // Does a file with name 'filename' exist in magic filesystem?
229        int
230        xyzzy_file_exists(const char *filespec)
231        {
232            return datafile.file_exists(filespec);
				

gnuradio/gr-run-waveform/xyzzy.h — 1

Category Magic
Committer Rob Savoye
Commit ID 712e2a1b1235b9f1272b56ae90afbc776c884f7b
85            // Initialize with the data file produced by gen-xyzzy.
86            bool init();
87            bool init(const std::string &filespec);
88            
89            // Does a file with name 'filename' exist in magic filesystem?
90            bool file_exists(const std::string &filespec);
91        
92            /// Parse a string data structure
93            static std::string read_string(boost::uint8_t *entry, size_t length);
				

gnuradio/gr-run-waveform/xyzzy.h — 2

Category Magic
Committer Rob Savoye
Commit ID e8a3f5bacd2d7b662e43be4bee0189d91465281b
114            
115        // Initialize with the data file produced by gen-xyzzy.
116        int xyzzy_init(const char *filename);
117        
118        // Does a file with name 'filename' exist in magic filesystem?
119        int xyzzy_file_exists(const char *filename);
120        
121        // Return a readonly port that accesses filename.
122        SCM xyzzy_open_file (SCM filename);
				

gnuradio/gr-trellis/src/examples/test_cpm.py

PyFlakes redefinition of unused 'trellis' from line 11
Committer anastas
Commit ID 436f3744f211b396b68fd58699063047899b7281
14        import math
15        import numpy
16        import scipy.stats
17        import fsm_utils
18        from gnuradio import trellis
19        
20        def run_test(seed,blocksize):
21                tb = gr.top_block()
22        
				

gnuradio/gr-uhd/apps/uhd_fft.py

Category FIXME
Committer Tom Rondeau
Commit ID 6736e9623fe35bfac53886c41766f166331fd4ca
156        
157            def _build_subpanel(self, vbox_arg):
158                # build a secondary information panel (sometimes hidden)
159        
160                # FIXME figure out how to have this be a subpanel that is always
161                # created, but has its visibility controlled by foo.Show(True/False)
162                
163                def _form_set_samp_rate(kv):
164                    return self.set_samp_rate(kv['samprate'])
				

gnuradio/gr-uhd/lib/gr_uhd_usrp_source.cc — 1

Category TODO
Committer Josh Blum
Commit ID 081497e75e89ab1343ee020013f5fd05275b6188
201        
202                //handle possible errors conditions
203                switch(_metadata.error_code){
204                case uhd::rx_metadata_t::ERROR_CODE_NONE:
205                    //TODO insert tag for time stamp
206                    break;
207        
208                case uhd::rx_metadata_t::ERROR_CODE_TIMEOUT:
209                    //Assume that the user called stop() on the flow graph.
				

gnuradio/gr-uhd/lib/gr_uhd_usrp_source.cc — 2

Category TODO
Committer Josh Blum
Commit ID 081497e75e89ab1343ee020013f5fd05275b6188
211                    return WORK_DONE;
212        
213                case uhd::rx_metadata_t::ERROR_CODE_OVERFLOW:
214                    //ignore overflows and try work again
215                    //TODO insert tag for overflow
216                    return work(noutput_items, input_items, output_items);
217        
218                default:
219                    std::cout << boost::format(
				

gnuradio/gr-uhd/swig/uhd_swig.i

Category Magic
Committer Josh Blum
Commit ID 343cba5663d0eefdd3ee3918bef812dc1bd75508
105        
106        %template(dboard_iface_sptr) boost::shared_ptr<uhd::usrp::dboard_iface>;
107        
108        ////////////////////////////////////////////////////////////////////////
109        // block magic
110        ////////////////////////////////////////////////////////////////////////
111        GR_SWIG_BLOCK_MAGIC(uhd,usrp_source)
112        %include <gr_uhd_usrp_source.h>
113        
				

gnuradio/gr-usrp/src/tx_debug_gui.py

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
87                    dac_offset = kv['dac_offset']
88                    print "drive_positive =", drive_positive
89                    print "dac_offset[%d] = %4d" % (i_or_q, dac_offset)
90                    
91                    # FIXME signed magnitude??
92                    # dac_offset = signed_mag10(dac_offset)
93                    return self._set_dac_offset(i_or_q, dac_offset, int(drive_positive))
94                
95                def signed_mag10(x):
				

gnuradio/gr-usrp/src/usrp_base.h

Category Magic
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
110          void set_fpga_master_clock_freq (long master_clock);
111        
112          void set_verbose (bool on);
113        
114          //! magic value used on alternate register read interfaces
115          static const int READ_FAILED = -99999;
116        
117          /*!
118           * \brief Write EEPROM on motherboard or any daughterboard.
				

gnuradio/gr-usrp/src/usrp_sink_c.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
95          int nitems = std::min (input_items_available,
96        			 usrp_buffer_length / usrp_bytes_per_input_item);
97        
98          for (int i = 0; i < nitems; i++){
99            dst[2*i + 0] = host_to_usrp_short((short) real(in[i]));	// FIXME saturate?
100            dst[2*i + 1] = host_to_usrp_short((short) imag(in[i])); 	// FIXME saturate?
101          }
102        
103          input_items_consumed = nitems;
				

gnuradio/gr-usrp/src/usrp_sink_c.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
96        			 usrp_buffer_length / usrp_bytes_per_input_item);
97        
98          for (int i = 0; i < nitems; i++){
99            dst[2*i + 0] = host_to_usrp_short((short) real(in[i]));	// FIXME saturate?
100            dst[2*i + 1] = host_to_usrp_short((short) imag(in[i])); 	// FIXME saturate?
101          }
102        
103          input_items_consumed = nitems;
104          bytes_written = nitems * usrp_bytes_per_input_item;
				

gnuradio/gr-usrp/src/usrp_sink_s.cc

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
95        
96          int nitems = std::min (input_items_available,
97        			 usrp_buffer_length / usrp_bytes_per_input_item);
98        
99          for (int i = 0; i < nitems; i++){	// FIXME unroll
100            dst[i] = host_to_usrp_short(in[i]);
101          }
102        
103          input_items_consumed = nitems;
				

gnuradio/gr-usrp2/src/usrp2_sink_16sc.cc

Category FIXME
Committer jcorgan
Commit ID 06260e16099c61b70e48ed999ca12b8a82cc0a10
28        #include <usrp2/metadata.h>
29        #include <gr_io_signature.h>
30        #include <iostream>
31        
32        // FIXME hack until VRT replaces libusrp2
33        #define U2_MIN_SAMPLES 9
34        
35        usrp2_sink_16sc_sptr
36        usrp2_make_sink_16sc(const std::string &ifc, const std::string &mac_addr) 
				

gnuradio/gr-usrp2/src/usrp2_sink_32fc.cc

Category FIXME
Committer jcorgan
Commit ID 06260e16099c61b70e48ed999ca12b8a82cc0a10
28        #include <usrp2/metadata.h>
29        #include <gr_io_signature.h>
30        #include <iostream>
31        
32        // FIXME hack until VRT replaces libusrp2
33        #define U2_MIN_SAMPLES 9
34        
35        usrp2_sink_32fc_sptr
36        usrp2_make_sink_32fc(const std::string &ifc, const std::string &mac_addr) 
				

gnuradio/gr-utils/src/python/usrp2_fft.py

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
154        
155            def _build_subpanel(self, vbox_arg):
156                # build a secondary information panel (sometimes hidden)
157        
158                # FIXME figure out how to have this be a subpanel that is always
159                # created, but has its visibility controlled by foo.Show(True/False)
160                
161                def _form_set_decim(kv):
162                    return self.set_decim(kv['decim'])
				

gnuradio/gr-utils/src/python/usrp_fft.py

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
191        
192            def _build_subpanel(self, vbox_arg):
193                # build a secondary information panel (sometimes hidden)
194        
195                # FIXME figure out how to have this be a subpanel that is always
196                # created, but has its visibility controlled by foo.Show(True/False)
197                
198                def _form_set_decim(kv):
199                    return self.set_decim(kv['decim'])
				

gnuradio/gr-utils/src/python/usrp_oscope.py

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
229        
230            def _build_subpanel(self, vbox_arg):
231                # build a secondary information panel (sometimes hidden)
232        
233                # FIXME figure out how to have this be a subpanel that is always
234                # created, but has its visibility controlled by foo.Show(True/False)
235                
236                def _form_set_decim(kv):
237                    return self.set_decim(kv['decim'])
				

gnuradio/gr-wxgui/src/python/fftsink2.py — 1

PyFlakes redefinition of unused 'fft_sink_f' from line 31
Committer jcorgan
Commit ID 2cd2d8f3ab6971ececbb44ddb2e2a4c7fc3bf1a5
33                if style == 'gl':
34                    raise RuntimeError("Unable to import OpenGL.  Are Python wrappers for OpenGL installed?")
35                else:
36                    # Fall backto non-gl sinks
37                    from fftsink_nongl import fft_sink_f, fft_sink_c
38        elif style == 'nongl':
39            from fftsink_nongl import fft_sink_f, fft_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/fftsink2.py — 2

PyFlakes redefinition of unused 'fft_sink_c' from line 31
Committer jcorgan
Commit ID 2cd2d8f3ab6971ececbb44ddb2e2a4c7fc3bf1a5
33                if style == 'gl':
34                    raise RuntimeError("Unable to import OpenGL.  Are Python wrappers for OpenGL installed?")
35                else:
36                    # Fall backto non-gl sinks
37                    from fftsink_nongl import fft_sink_f, fft_sink_c
38        elif style == 'nongl':
39            from fftsink_nongl import fft_sink_f, fft_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/fftsink2.py — 3

PyFlakes redefinition of unused 'fft_sink_f' from line 37
Committer jcorgan
Commit ID e92e82dd65a5c91a6b3a9e098e8f58948c779fa5
35                else:
36                    # Fall backto non-gl sinks
37                    from fftsink_nongl import fft_sink_f, fft_sink_c
38        elif style == 'nongl':
39            from fftsink_nongl import fft_sink_f, fft_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/fftsink2.py — 4

PyFlakes redefinition of unused 'fft_sink_c' from line 37
Committer jcorgan
Commit ID e92e82dd65a5c91a6b3a9e098e8f58948c779fa5
35                else:
36                    # Fall backto non-gl sinks
37                    from fftsink_nongl import fft_sink_f, fft_sink_c
38        elif style == 'nongl':
39            from fftsink_nongl import fft_sink_f, fft_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/fftsink_nongl.py — 1

Category FIXME
Committer jcorgan
Commit ID 36649d4e472172fe840444ac0268c7b6b4da94b4
129                    
130                self.c2mag = gr.complex_to_mag(self.fft_size)
131                self.avg = gr.single_pole_iir_filter_ff(1.0, self.fft_size)
132        
133                # FIXME  We need to add 3dB to all bins but the DC bin
134                self.log = gr.nlog10_ff(20, self.fft_size,
135                                       -10*math.log10(self.fft_size)                # Adjust for number of bins
136                                       -10*math.log10(power/self.fft_size)        # Adjust for windowing loss
137                                       -20*math.log10(ref_scale/2))                # Adjust for reference scale
				

gnuradio/gr-wxgui/src/python/fftsink_nongl.py — 2

Category FIXME
Committer jcorgan
Commit ID 36649d4e472172fe840444ac0268c7b6b4da94b4
174                    
175                self.c2mag = gr.complex_to_mag(self.fft_size)
176                self.avg = gr.single_pole_iir_filter_ff(1.0, self.fft_size)
177        
178                # FIXME  We need to add 3dB to all bins but the DC bin
179                self.log = gr.nlog10_ff(20, self.fft_size,
180                                        -10*math.log10(self.fft_size)                # Adjust for number of bins
181                                        -10*math.log10(power/self.fft_size)        # Adjust for windowing loss
182                                        -20*math.log10(ref_scale/2))                # Adjust for reference scale
				

gnuradio/gr-wxgui/src/python/gui.py — 1

Category FIXME
Committer jcorgan
Commit ID f92986d6ff10330ee4608510f7baaa895e6772e0
73                self.SetMenuBar(mainmenu)
74        
75                menu = wx.Menu()
76        
77                item = menu.Append(200, 'E&xit', 'Exit Application') # FIXME magic ID
78                self.Bind(wx.EVT_MENU, self.OnCloseWindow, item)
79                mainmenu.Append(menu, "&File")
80                self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
81        
				

gnuradio/gr-wxgui/src/python/gui.py — 2

Category Magic
Committer jcorgan
Commit ID f92986d6ff10330ee4608510f7baaa895e6772e0
73                self.SetMenuBar(mainmenu)
74        
75                menu = wx.Menu()
76        
77                item = menu.Append(200, 'E&xit', 'Exit Application') # FIXME magic ID
78                self.Bind(wx.EVT_MENU, self.OnCloseWindow, item)
79                mainmenu.Append(menu, "&File")
80                self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
81        
				

gnuradio/gr-wxgui/src/python/plot.py

PyFlakes redefinition of unused '_numpy' from line 101
Committer jcorgan
Commit ID 9880e7bb383054aa43681b52ebd33c8fd4cb8fcb
100        try:
101            import numpy as _numpy
102        except:
103            try:
104                import numarray as _numpy  #if numarray is used it is renamed numpy
105            except:
106                msg= """
107                This module requires the numpy or numarray module,
108                which could not be imported.  It probably is not installed
				

gnuradio/gr-wxgui/src/python/plotter/gltext.py

PyFlakes redefinition of unused 'psyco' from line 32
Committer jcorgan
Commit ID 36649d4e472172fe840444ac0268c7b6b4da94b4
31        try:
32            import psyco
33            psyco_optimized = False
34        except ImportError:
35            psyco = None

36            
37        #Disable psyco
38        #psyco = None
39                  
				

gnuradio/gr-wxgui/src/python/powermate.py — 1

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
83        #   shuttle position (absolute_position)  # -7,-6,...,0,...,6,7
84        
85        # ----------------------------------------------------------------
86        # Our ID's for the devices:
87        # Not to be confused with anything related to magic hardware numbers.
88        
89        ID_POWERMATE         = 'powermate'
90        ID_SHUTTLE_XPRESS    = 'shuttle xpress'
91        ID_SHUTTLE_PRO       = 'shuttle pro'
				

gnuradio/gr-wxgui/src/python/powermate.py — 2

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
234        
235            def set_led_state(self, static_brightness, pulse_speed=0,
236                              pulse_table=0, pulse_on_sleep=0, pulse_on_wake=0):
237                """
238                What do these magic values mean...
239                """
240                if self.id != ID_POWERMATE:
241                    return False
242                
				

gnuradio/gr-wxgui/src/python/powermate.py — 3

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
250                if pulse_table > 2:
251                    pulse_table = 2
252                pulse_on_sleep = not not pulse_on_sleep # not not = convert to 0/1
253                pulse_on_wake  = not not pulse_on_wake
254                magic = (static_brightness
255                         | (pulse_speed << 8)
256                         | (pulse_table << 17)
257                         | (pulse_on_sleep << 19)
258                         | (pulse_on_wake << 20))
				

gnuradio/gr-wxgui/src/python/powermate.py — 4

Category Kludge
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
312                    # === Shuttle ring ===
313                    # First off, this really ought to be IET_ABS, not IET_REL!
314                    # They never generate a zero value so you can't
315                    # tell when the shuttle ring is back in the center.
316                    # We kludge around this by calling both -1 and 1 zero.
317                    if val == -1 or val == 1:
318                        return (sec, usec, type, code, 0)
319                    return event
320        
				

gnuradio/gr-wxgui/src/python/scopesink2.py — 1

PyFlakes redefinition of unused 'scope_sink_f' from line 31
Committer jcorgan
Commit ID 2cd2d8f3ab6971ececbb44ddb2e2a4c7fc3bf1a5
33                if style == 'gl':
34                    raise RuntimeError("Unable to import OpenGL.  Are Python wrappers for OpenGL installed?")
35                else:
36                    # Fall backto non-gl sinks
37                    from scopesink_nongl import scope_sink_f, scope_sink_c
38        elif style == 'nongl':
39            from scopesink_nongl import scope_sink_f, scope_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/scopesink2.py — 2

PyFlakes redefinition of unused 'scope_sink_c' from line 31
Committer jcorgan
Commit ID 2cd2d8f3ab6971ececbb44ddb2e2a4c7fc3bf1a5
33                if style == 'gl':
34                    raise RuntimeError("Unable to import OpenGL.  Are Python wrappers for OpenGL installed?")
35                else:
36                    # Fall backto non-gl sinks
37                    from scopesink_nongl import scope_sink_f, scope_sink_c
38        elif style == 'nongl':
39            from scopesink_nongl import scope_sink_f, scope_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/scopesink2.py — 3

PyFlakes redefinition of unused 'scope_sink_f' from line 37
Committer jcorgan
Commit ID d9744799b7df6c09180778540bf55eb9dc84281b
35                else:
36                    # Fall backto non-gl sinks
37                    from scopesink_nongl import scope_sink_f, scope_sink_c
38        elif style == 'nongl':
39            from scopesink_nongl import scope_sink_f, scope_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/scopesink2.py — 4

PyFlakes redefinition of unused 'scope_sink_c' from line 37
Committer jcorgan
Commit ID d9744799b7df6c09180778540bf55eb9dc84281b
35                else:
36                    # Fall backto non-gl sinks
37                    from scopesink_nongl import scope_sink_f, scope_sink_c
38        elif style == 'nongl':
39            from scopesink_nongl import scope_sink_f, scope_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/waterfallsink2.py — 1

PyFlakes redefinition of unused 'waterfall_sink_f' from line 31
Committer jcorgan
Commit ID 2cd2d8f3ab6971ececbb44ddb2e2a4c7fc3bf1a5
33                if style == 'gl':
34                    raise RuntimeError("Unable to import OpenGL.  Are Python wrappers for OpenGL installed?")
35                else:
36                    # Fall backto non-gl sinks
37                    from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
38        elif style == 'nongl':
39            from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/waterfallsink2.py — 2

PyFlakes redefinition of unused 'waterfall_sink_c' from line 31
Committer jcorgan
Commit ID 2cd2d8f3ab6971ececbb44ddb2e2a4c7fc3bf1a5
33                if style == 'gl':
34                    raise RuntimeError("Unable to import OpenGL.  Are Python wrappers for OpenGL installed?")
35                else:
36                    # Fall backto non-gl sinks
37                    from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
38        elif style == 'nongl':
39            from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/waterfallsink2.py — 3

PyFlakes redefinition of unused 'waterfall_sink_f' from line 37
Committer jcorgan
Commit ID e92e82dd65a5c91a6b3a9e098e8f58948c779fa5
35                else:
36                    # Fall backto non-gl sinks
37                    from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
38        elif style == 'nongl':
39            from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/waterfallsink2.py — 4

PyFlakes redefinition of unused 'waterfall_sink_c' from line 37
Committer jcorgan
Commit ID e92e82dd65a5c91a6b3a9e098e8f58948c779fa5
35                else:
36                    # Fall backto non-gl sinks
37                    from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
38        elif style == 'nongl':
39            from waterfallsink_nongl import waterfall_sink_f, waterfall_sink_c
40        else:
41            raise RuntimeError("Unknown wxgui style")
				

gnuradio/gr-wxgui/src/python/waterfallsink_nongl.py — 1

PyFlakes redefinition of function 'const_list' from line 207
Committer jcorgan
Commit ID 36649d4e472172fe840444ac0268c7b6b4da94b4
244                    dc = wx.ClientDC(self)
245                dc.DrawBitmap(self.bm, 0, 0, False )
246            
247        
248            def const_list(self,const,len):
249                a = [const]
250                for i in range(1,len):
251                    a.append(const)
252                return a
				

gnuradio/gr-wxgui/src/python/waterfallsink_nongl.py — 2

Category FIXME
Committer jcorgan
Commit ID 36649d4e472172fe840444ac0268c7b6b4da94b4
179                self.set_baseband_freq = fftsink.set_baseband_freq
180                self.fftsink = fftsink
181                self.bm = wx.EmptyBitmap(self.fftsink.fft_size, 300, -1)
182        
183                self.scale_factor = 5.0           # FIXME should autoscale, or set this
184                
185                dc1 = wx.MemoryDC()
186                dc1.SelectObject(self.bm)
187                dc1.Clear()
				

gnuradio/grc/gui/Connection.py

Category FIXME
Committer Josh Blum
Commit ID fa465d160b0c53fae3ad7876cf429263157dd60a
74        		else: self._arrow_color = Colors.CONNECTION_ENABLED_COLOR
75        
76        	def _update_after_move(self):
77        		"""Calculate coordinates."""
78        		self.clear() #FIXME do i want this here?
79        		#source connector
80        		source = self.get_source()
81        		X, Y = source.get_connector_coordinate()
82        		x1, y1 = self.x1 + X, self.y1 + Y
				

gnuradio/grc/python/expr_utils.py

Category TODO
Committer jcorgan
Commit ID d52c462e5fd3eae7d00505a64a013e811d43234c
52        def expr_split(expr):
53        	"""
54        	Split up an expression by non alphanumeric characters, including underscore.
55        	Leave strings in-tact.
56        	#TODO ignore escaped quotes, use raw strings.
57        	@param expr an expression string
58        	@return a list of string tokens that form expr
59        	"""
60        	toks = list()
				

gnuradio/gruel/src/include/gruel/pmt_pool.h

Category FIXME
Committer eb
Commit ID 0bf2128a621ae84099f43744e1b81800f2b9d2d7
29        
30        /*!
31         * \brief very simple thread-safe fixed-size allocation pool
32         *
33         * FIXME may want to go to global allocation with per-thread free list.
34         * This would eliminate virtually all lock contention.
35         */
36        class pmt_pool {
37        
				

gnuradio/gruel/src/lib/Makefile.am

Category Magic
Committer eb
Commit ID 2c8ea58e4d76f54c98d71d3fcc64bc29da490908
32        
33        
34        lib_LTLIBRARIES = libgruel.la
35        
36        # magic flags
37        libgruel_la_LDFLAGS = $(NO_UNDEFINED) $(BOOST_LDFLAGS) $(LTVERSIONFLAGS)
38        
39        # ----------------------------------------------------------------
40        
				

gnuradio/gruel/src/lib/pmt/Makefile.am

Category Magic
Committer jcorgan
Commit ID 2bf2a8f2d2a4477818bfa91cae64fb663fdf88c3
80        	qa_pmt.cc			\
81        	qa_pmt_prims.cc			\
82        	qa_pmt_unv.cc			
83        
84        # magic flags
85        libpmt_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid version
86        
87        libpmt_qa_la_LIBADD = 			\
88        	libpmt.la			\
				

gnuradio/gruel/src/lib/pmt/pmt.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
1051        
1052            return true;
1053          }
1054        
1055          // FIXME add other cases here...
1056        
1057          return false;
1058        }
1059        
				

gnuradio/gruel/src/lib/pmt/pmt.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
1085            // not a proper list
1086            throw pmt_wrong_type("pmt_length", x);
1087          }
1088        
1089          // FIXME dictionary length (number of entries)
1090        
1091          throw pmt_wrong_type("pmt_length", x);
1092        }
1093        
				

gnuradio/gruel/src/lib/pmt/pmt.cc — 3

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
1202        
1203        pmt_t
1204        pmt_reverse_x(pmt_t list)
1205        {
1206          // FIXME do it destructively
1207          return pmt_reverse(list);
1208        }
1209        
1210        pmt_t
				

gnuradio/gruel/src/lib/pmt/pmt_io.cc — 1

Category FIXME
Committer Eric Blossom
Commit ID f8f85dcf9de45cbb42ee46b6f6e3d1e685b0103a
103            }
104            port << ")";
105          }
106          else if (pmt_is_dict(obj)){
107            // FIXME
108            // port << "#<dict " << obj << ">";
109            port << "#<dict>";
110          }
111          else if (pmt_is_uniform_vector(obj)){
				

gnuradio/gruel/src/lib/pmt/pmt_io.cc — 2

Category FIXME
Committer eb
Commit ID 29c73e79ef50525b56d8e9f89808baace75fae82
108            // port << "#<dict " << obj << ">";
109            port << "#<dict>";
110          }
111          else if (pmt_is_uniform_vector(obj)){
112            // FIXME
113            // port << "#<uniform-vector " << obj << ">";
114            port << "#<uniform-vector>";
115          }
116          else {
				

gnuradio/gruel/src/lib/pmt/pmt_io.cc — 3

Category FIXME
Committer eb
Commit ID 29c73e79ef50525b56d8e9f89808baace75fae82
114            port << "#<uniform-vector>";
115          }
116          else {
117          error:
118            // FIXME
119            // port << "#<" << obj << ">";
120            port << "#<unknown>";
121          }
122        }
				

gnuradio/gruel/src/lib/pmt/qa_pmt_prims.cc — 1

Category FIXME
Committer eb
Commit ID 0bf2128a621ae84099f43744e1b81800f2b9d2d7
546        
547          CPPUNIT_ASSERT(pmt_equal(pmt_deserialize(sb), PMT_EOF));	// last item
548        
549        
550          // FIXME add tests for real, complex, vector, uniform-vector, dict
551          // FIXME add tests for malformed input too.
552        
553        }
554        
				

gnuradio/gruel/src/lib/pmt/qa_pmt_prims.cc — 2

Category FIXME
Committer eb
Commit ID 0bf2128a621ae84099f43744e1b81800f2b9d2d7
547          CPPUNIT_ASSERT(pmt_equal(pmt_deserialize(sb), PMT_EOF));	// last item
548        
549        
550          // FIXME add tests for real, complex, vector, uniform-vector, dict
551          // FIXME add tests for malformed input too.
552        
553        }
554        
555        void
				

gnuradio/gruel/src/lib/realtime.cc — 1

Category FIXME
Committer eb
Commit ID 801b22a99512ed3dfd2b92bfc597bfc3451ccbc9
72            int min_real_pri = sched_get_priority_min(policy);
73            int max_real_pri = sched_get_priority_max(policy);
74            int pri = rescale_virtual_pri(p.priority, min_real_pri, max_real_pri);
75        
76            // FIXME check hard and soft limits with getrlimit, and limit the value we ask for.
77            // fprintf(stderr, "pthread_setschedparam: policy = %d, pri = %d\n", policy, pri);
78        
79            struct sched_param param;
80            memset (&param, 0, sizeof (param));
				

gnuradio/gruel/src/lib/realtime.cc — 2

Category FIXME
Committer eb
Commit ID 801b22a99512ed3dfd2b92bfc597bfc3451ccbc9
108            int min_real_pri = sched_get_priority_min(policy);
109            int max_real_pri = sched_get_priority_max(policy);
110            int pri = rescale_virtual_pri(p.priority, min_real_pri, max_real_pri);
111        
112            // FIXME check hard and soft limits with getrlimit, and limit the value we ask for.
113            // fprintf(stderr, "sched_setscheduler: policy = %d, pri = %d\n", policy, pri);
114        
115            int pid = 0;  // this process
116            struct sched_param param;
				

gnuradio/gruel/src/scheme/gnuradio/Makefile.am

Category FIXME
Committer Eric Blossom
Commit ID d692a41f98e7b888c745efbb9fcbbb0400f39025
24        
25        EXTRA_DIST += \
26        	gen-serial-tags.py
27        
28        # really scheme source files FIXME wrong location
29        dist_pkgdata_DATA =			\
30        	pmt-serial-tags.scm		\
31        	pmt-serialize.scm		\
32        	macros-etc.scm
				

gnuradio/setup_guile_test_env.in

Category FIXME
Committer Eric Blossom
Commit ID d1d804742ac2cfcc31240c6d74d764e5784831d4
132        }
133        
134        # ------------------------------------------------------------------------
135        # Everybody gets gruel and gnuradio-core for free.
136        # FIXME Eventually this should be gruel and gnuradio-runtime.
137        # ------------------------------------------------------------------------
138        
139        # Where to search for not yet installed C++ shared libraries
140        prepend_to_libpath $abs_top_builddir/gruel/src/lib/.libs
				

gnuradio/usrp/doc/Doxyfile.in

Category TODO
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
325        
326        SORT_BY_SCOPE_NAME     = NO
327        
328        # The GENERATE_TODOLIST tag can be used to enable (YES) or 
329        # disable (NO) the todo list. This list is created by putting \todo 
330        # commands in the documentation.
331        
332        GENERATE_TODOLIST      = YES
333        
				

gnuradio/usrp/firmware/include/fpga_regs_standard.h — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
181        // Possible future values of WIDTH = {4, 2, 1}
182        // 12 takes a bit more work, since we need to know packet alignment.
183        
184        // ------------------------------------------------------------------------
185        // FIXME register numbers 50 to 63 are available
186        
187        // ------------------------------------------------------------------------
188        // Registers 64 to 95 are reserved for user custom FPGA builds.
189        // The standard USRP software will not touch these.
				

gnuradio/usrp/firmware/include/fpga_regs_standard.h — 2

Category TODO
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
265        // still has the refclk function if you use the master/slave setup (it is not touched by the master/slave settings).
266        // The master/slave circuitry will only use io pin 15 and does not touch any of the other io pins.
267        #define bitnoFR_RX_SYNC_INPUT_IOPIN		15
268        #define bmFR_RX_SYNC_INPUT_IOPIN		(1<<bitnoFR_RX_SYNC_INPUT_IOPIN)
269        //TODO the output pin is still hardcoded in the verilog code, make it listen to the following define
270        #define bitnoFR_RX_SYNC_OUTPUT_IOPIN	15
271        #define bmFR_RX_SYNC_OUTPUT_IOPIN	(1<<bitnoFR_RX_SYNC_OUTPUT_IOPIN)
272        // =======================================================================
273        // READBACK Registers
				

gnuradio/usrp/firmware/include/fpga_regs_standard.v — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
153        // Possible future values of WIDTH = {4, 2, 1}
154        // 12 takes a bit more work, since we need to know packet alignment.
155        
156        // ------------------------------------------------------------------------
157        // FIXME register numbers 50 to 63 are available
158        
159        // ------------------------------------------------------------------------
160        // Registers 64 to 95 are reserved for user custom FPGA builds.
161        // The standard USRP software will not touch these.
				

gnuradio/usrp/firmware/include/fpga_regs_standard.v — 2

Category TODO
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
228        // still has the refclk function if you use the master/slave setup (it is not touched by the master/slave settings).
229        // The master/slave circuitry will only use io pin 15 and does not touch any of the other io pins.
230        `define bitnoFR_RX_SYNC_INPUT_IOPIN 15
231        `define bmFR_RX_SYNC_INPUT_IOPIN  (1<<bitnoFR_RX_SYNC_INPUT_IOPIN)
232        //TODO the output pin is still hardcoded in the verilog code, make it listen to the following define
233        `define bitnoFR_RX_SYNC_OUTPUT_IOPIN 15
234        `define bmFR_RX_SYNC_OUTPUT_IOPIN (1<<bitnoFR_RX_SYNC_OUTPUT_IOPIN)
235        // =======================================================================
236        // READBACK Registers
				

gnuradio/usrp/firmware/include/syncdelay.h — 1

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
22        #ifndef _SYNCDELAY_H_
23        #define _SYNCDELAY_H_
24        
25        /*
26         * Magic delay required between access to certain xdata registers (TRM page 15-106).
27         * For our configuration, 48 MHz FX2 / 48 MHz IFCLK, we need three cycles.  Each
28         * NOP is a single cycle....
29         *
30         * From TRM page 15-105:
				

gnuradio/usrp/firmware/include/syncdelay.h — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
55         *	GPIFTCB1			GPIFTCB0
56         */
57        
58        /*
59         * FIXME ensure that the peep hole optimizer isn't screwing us
60         */
61        #define	SYNCDELAY	_asm nop; nop; nop; _endasm
62        #define	NOP		_asm nop; _endasm
63        
				

gnuradio/usrp/firmware/lib/fx2utils.c — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
41        fx2_renumerate (void)
42        {
43          USBCS |= bmDISCON | bmRENUM;
44        
45          // mdelay (1500);		// FIXME why 1.5 seconds?
46          mdelay (250);			// FIXME why 1.5 seconds?
47          
48          USBIRQ = 0xff;		// clear any pending USB irqs...
49          EPIRQ =  0xff;		//   they're from before the renumeration
				

gnuradio/usrp/firmware/lib/fx2utils.c — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
42        {
43          USBCS |= bmDISCON | bmRENUM;
44        
45          // mdelay (1500);		// FIXME why 1.5 seconds?
46          mdelay (250);			// FIXME why 1.5 seconds?
47          
48          USBIRQ = 0xff;		// clear any pending USB irqs...
49          EPIRQ =  0xff;		//   they're from before the renumeration
50        
				

gnuradio/usrp/firmware/lib/usb_common.c — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
50        
51        volatile bit _usb_got_SUDAV;
52        
53        unsigned char	_usb_config = 0;
54        unsigned char	_usb_alt_setting = 0;	// FIXME really 1/interface
55        
56        xdata unsigned char *current_device_descr;
57        xdata unsigned char *current_devqual_descr;
58        xdata unsigned char *current_config_descr;
				

gnuradio/usrp/firmware/lib/usb_common.c — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
183        
184              switch (bRequest){
185        
186              case RQ_GET_CONFIG:
187        	EP0BUF[0] = _usb_config;	// FIXME app should handle
188        	EP0BCH = 0;
189        	EP0BCL = 1;
190        	break;
191        	
				

gnuradio/usrp/firmware/lib/usb_common.c — 3

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
191        	
192              // --------------------------------
193        
194              case RQ_GET_INTERFACE:
195        	EP0BUF[0] = _usb_alt_setting;	// FIXME app should handle
196        	EP0BCH = 0;
197        	EP0BCL = 1;
198        	break;
199        
				

gnuradio/usrp/firmware/lib/usb_common.c — 4

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
212        	  SUDPTRL = LSB (current_devqual_descr);
213        	  break;
214        
215        	case DT_CONFIG:
216        	  if (0 && wValueL != 1)	// FIXME only a single configuration
217        	    fx2_stall_ep0 ();
218        	  else {
219        	    SUDPTRH = MSB (current_config_descr);
220        	    SUDPTRL = LSB (current_config_descr);
				

gnuradio/usrp/firmware/lib/usb_common.c — 5

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
221        	  }
222        	  break;
223        
224        	case DT_OTHER_SPEED:
225        	  if (0 && wValueL != 1)	// FIXME only a single configuration
226        	    fx2_stall_ep0 ();
227        	  else {
228        	    SUDPTRH = MSB (other_config_descr);
229        	    SUDPTRL = LSB (other_config_descr);
				

gnuradio/usrp/firmware/lib/usb_common.c — 6

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
250        
251              case RQ_GET_STATUS:
252        	switch (bRequestType & bmRT_RECIP_MASK){
253        	case bmRT_RECIP_DEVICE:
254        	  EP0BUF[0] = bmGSDA_SELF_POWERED;	// FIXME app should handle
255        	  EP0BUF[1] = 0;
256        	  EP0BCH = 0;
257        	  EP0BCL = 2;
258        	  break;
				

gnuradio/usrp/firmware/lib/usb_common.c — 7

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
298        
299              switch (bRequest){
300        
301              case RQ_SET_CONFIG:
302        	_usb_config = wValueL;		// FIXME app should handle
303        	break;
304        
305              case RQ_SET_INTERFACE:
306        	_usb_alt_setting = wValueL;	// FIXME app should handle
				

gnuradio/usrp/firmware/lib/usb_common.c — 8

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
302        	_usb_config = wValueL;		// FIXME app should handle
303        	break;
304        
305              case RQ_SET_INTERFACE:
306        	_usb_alt_setting = wValueL;	// FIXME app should handle
307        	break;
308        
309              // --------------------------------
310        
				

gnuradio/usrp/firmware/src/common/fpga_load.c

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
40          udelay (40);					// wait 40 us
41          USRP_ALTERA_CONFIG |= bmALTERA_NCONFIG;	// set NCONFIG high
42        
43          if (UC_BOARD_HAS_FPGA){
44            // FIXME should really cap this loop with a counter so we
45            //   don't hang forever on a hardware failure.
46            while ((USRP_ALTERA_CONFIG & bmALTERA_NSTATUS) == 0) // wait for NSTATUS to go high
47              ;
48          }
				

gnuradio/usrp/firmware/src/common/usrp_common.c

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
98          EP2GPIFFLGSEL = 0x01;		SYNCDELAY; // For EP2OUT, GPIF uses EF flag
99          EP6GPIFFLGSEL = 0x02;		SYNCDELAY; // For EP6IN,  GPIF uses FF flag
100        
101          // set autoin length for EP6
102          // FIXME should be f(enumeration)
103        
104          EP6AUTOINLENH = (512) >> 8;	SYNCDELAY;  // this is the length for high speed
105          EP6AUTOINLENL = (512) & 0xff; SYNCDELAY;
106        
				

gnuradio/usrp/firmware/src/usrp2/usrp_main.c — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
329        
330          eeprom_read(I2C_ADDR_BOOT, HW_REV_OFFSET, &hw_rev, 1);	// LSB of device id
331          usb_desc_hw_rev_binary_patch_location_0[0] = hw_rev;
332          usb_desc_hw_rev_binary_patch_location_1[0] = hw_rev;
333          usb_desc_hw_rev_ascii_patch_location_0[0] = hw_rev + '0';     // FIXME if we get > 9
334        
335          eeprom_read(I2C_ADDR_BOOT, SERIAL_NO_OFFSET, serial_no, SERIAL_NO_LEN);
336        
337          for (i = 0; i < SERIAL_NO_LEN; i++){
				

gnuradio/usrp/firmware/src/usrp2/usrp_main.c — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
345        void
346        main (void)
347        {
348        #if 0
349          g_rx_enable = 0;	// FIXME (work around initialization bug)
350          g_tx_enable = 0;
351          g_rx_overrun = 0;
352          g_tx_underrun = 0;
353        #endif
				

gnuradio/usrp/firmware/src/usrp2/usrp_main.c — 3

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
370          setup_autovectors ();
371          usb_install_handlers ();
372          hook_timer_tick ((unsigned short) isr_tick);
373        
374          EIEX4 = 1;		// disable INT4 FIXME
375          EA = 1;		// global interrupt enable
376        
377          fx2_renumerate ();	// simulates disconnect / reconnect
378        
				

gnuradio/usrp/host/apps/test_usrp_standard_tx.cc — 1

Category FIXME
Committer eb
Commit ID 1910719ec29a12be380b9fa3dcd3ab893ce87ce2
232          printf("nsamples: %g\n", nsamples);
233        
234        
235          if (realtime_p){
236            // FIXME
237          }
238        
239          usrp_standard_tx_sptr utx;
240        
				

gnuradio/usrp/host/apps/test_usrp_standard_tx.cc — 2

Category FIXME
Committer eb
Commit ID 1910719ec29a12be380b9fa3dcd3ab893ce87ce2
247        
248          if (utx == 0)
249            die ("usrp_standard_tx::make");
250        
251          // FIXME
252        
253          db_base_sptr subdev = utx->selected_subdev(spec);
254          printf("Subdevice name is %s\n", subdev->name().c_str());
255          printf("Subdevice freq range: (%g, %g)\n", 
				

gnuradio/usrp/host/apps/time_stuff.c

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
48            return 0;
49        
50          return timeval_to_secs (&ru.ru_utime) + timeval_to_secs (&ru.ru_stime);
51        #else
52          return 0;	/* FIXME */
53        #endif
54        }
55        
56        /*
				

gnuradio/usrp/host/include/usrp/usrp_basic.h

Category Magic
Committer Johnathan Corgan
Commit ID df4edacd55663aecee58a9b3f95cbc08bceaab81
197          int usb_data_rate () const { return d_usb_data_rate; }
198        
199          void set_verbose (bool on) { d_verbose = on; }
200        
201          //! magic value used on alternate register read interfaces
202          static const int READ_FAILED = -99999;
203        
204          /*!
205           * \brief Write EEPROM on motherboard or any daughterboard.
				

gnuradio/usrp/host/lib/db_boards.cc

Category FIXME
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
186          case(USRP_DBID_XCVR2450_RX):
187            db.push_back(db_base_sptr(new db_xcvr2450_rx(usrp, which_side)));
188            break;
189        
190        #if 0	// FIXME wbx doesn't compile
191          case(USRP_DBID_WBX_LO_TX):
192            db.push_back(db_base_sptr(new db_wbx_lo_tx(usrp, which_side)));
193            break;
194          case(USRP_DBID_WBX_LO_RX):
				

gnuradio/usrp/host/lib/db_dbs_rx.cc — 1

Category FIXME
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
100        {
101          // starting_regno is in [0,5],
102          // vals is a seq of integers to write to consecutive registers"""
103        
104          //FIXME
105          std::vector<int> args;
106          args.push_back(starting_regno);
107          args.insert(args.end(), vals.begin(), vals.end());
108          usrp()->write_i2c (d_i2c_addr, int_seq_to_str (args));
				

gnuradio/usrp/host/lib/db_dbs_rx.cc — 2

Category FIXME
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
343          d_r_int = static_cast<int>(round(log10(r)/log10(2)) - 1);
344          _send_reg(2);
345        }
346        
347        // FIXME  How do we handle ADE and ADL properly?
348        void
349        db_dbs_rx::_set_ade(int ade)
350        {
351          assert(ade == 0 || ade == 1);
				

gnuradio/usrp/host/lib/db_dtt754.cc

Category FIXME
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
286        void
287        db_dtt754::_set_rfagc(float gain)
288        {
289          assert(gain <= 60 && gain >= 0);
290          // FIXME this has a 0.5V step between gain = 60 and gain = 59.
291          // Why are there two cases instead of a single linear case?
292          float voltage;
293          if(gain == 60) {
294            voltage = 4;
				

gnuradio/usrp/host/lib/db_dtt768.cc

Category FIXME
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
259        void
260        db_dtt768::_set_rfagc(float gain)
261        {
262          assert(gain <= 60 && gain >= 0);
263          // FIXME this has a 0.5V step between gain = 60 and gain = 59.
264          // Why are there two cases instead of a single linear case?
265          float voltage;
266          if(gain == 60) {
267            voltage = 4;
				

gnuradio/usrp/host/lib/db_tv_rx.cc — 1

Category FIXME
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
95          d_first_IF = first_IF;
96          d_second_IF = second_IF;
97          d_reference_divisor = 640;
98          d_fast_tuning = false;
99          d_inverted = false;                     // FIXME get rid of this
100          
101          set_gain((gain_min() + gain_max()) / 2.0);       // initialize gain
102        
103          bypass_adc_buffers(false);
				

gnuradio/usrp/host/lib/db_tv_rx.cc — 2

Category FIXME
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
113        {
114          float voltage;
115        
116          assert(gain <= 60 && gain >= 0);
117          // FIXME this has a 0.5V step between gain = 60 and gain = 59.
118          // Why are there two cases instead of a single linear case?
119          if(gain == 60) {
120            voltage = 4;
121          }
				

gnuradio/usrp/host/lib/db_wbxng.cc

Category FIXME
Committer Johnathan Corgan
Commit ID 69caa7dce5a58b39614b1aba99c2dd71b38af322
113        
114          //fprintf(stderr,"Setting WBXNG frequency, requested %d, obtained %f, lock_detect %d\n",
115          //        int_freq, freq_result, d_common->_get_locked());
116        
117          // FIXME
118          // Offsetting the LO helps get the Tx carrier leakage out of the way.
119          // This also ensures that on Rx, we're not getting hosed by the
120          // FPGA's DC removal loop's time constant.  We were seeing a
121          // problem when running with discontinuous transmission.
				

gnuradio/usrp/host/lib/db_xcvr2450.cc

Category FIXME
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
311             
312        void
313        xcvr2450::set_reg_cal()
314        {
315          // FIXME do calibration
316          d_reg_cal = (1<<14)|6;
317          send_reg(d_reg_cal);
318        }
319        
				

gnuradio/usrp/host/lib/fusb_darwin.h — 1

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
123        /*!
124         * \brief darwin implementation of fusb_devhandle
125         *
126         * This is currently identical to the generic implementation
127         * and is intended as a starting point for whatever magic is
128         * required to make usb fly.
129         */
130        class fusb_devhandle_darwin : public fusb_devhandle
131        {
				

gnuradio/usrp/host/lib/fusb_darwin.h — 2

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
142        /*!
143         * \brief darwin implementation of fusb_ephandle
144         *
145         * This is currently identical to the generic implementation
146         * and is intended as a starting point for whatever magic is
147         * required to make usb fly.
148         */
149        class fusb_ephandle_darwin : public fusb_ephandle
150        {
				

gnuradio/usrp/host/lib/fusb_linux.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
50        // Totally evil and fragile extraction of file descriptor from
51        // guts of libusb.  They don't install usbi.h, which is what we'd need
52        // to do this nicely.
53        //
54        // FIXME if everything breaks someday in the future, look here...
55        
56        static int
57        fd_from_usb_dev_handle (usb_dev_handle *udh)
58        {
				

gnuradio/usrp/host/lib/fusb_linux.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
682         */
683        bool
684        fusb_ephandle_linux::submit_urb (usbdevfs_urb *urb)
685        {
686          if (!d_devhandle->_submit_urb (urb)){    // FIXME record the problem somewhere
687            fprintf (stderr, "_submit_urb failed\n");
688            free_list_add (urb);
689            return false;
690          }
				

gnuradio/usrp/host/lib/fusb_ra_wb.cc

Category FIXME
Committer eb
Commit ID c8ed035413582319e606104d00ab69f919ab6038
41        // Totally evil and fragile extraction of file descriptor from
42        // guts of libusb.  They don't install usbi.h, which is what we'd need
43        // to do this nicely.
44        //
45        // FIXME if everything breaks someday in the future, look here...
46        
47        static int
48        fd_from_usb_dev_handle (usb_dev_handle *udh)
49        {
				

gnuradio/usrp/host/lib/limbo/db_wbx.cc

Category FIXME
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
61        
62          d_first = true;
63          d_spi_format = SPI_FMT_MSB | SPI_FMT_HDR_0;
64        
65          // FIXME -- the write reg functions don't work with 0xffff for masks
66          _rx_write_oe(int(PLL_ENABLE|MReset|SELA0|SELA1|SELB0|SELB1|RX2_RX1N|RXENABLE), 0x7fff);
67          _rx_write_io((PLL_ENABLE|MReset|0|RXENABLE), (PLL_ENABLE|MReset|RX2_RX1N|RXENABLE));
68        
69          _tx_write_oe((TX_POWER|RX_TXN|TX_ENB_MIX|TX_ENB_VGA), 0x7fff);
				

gnuradio/usrp/host/lib/usrp_basic.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
425        bool
426        usrp_basic::_write_9862 (int which_codec, int regno, unsigned char value)
427        {
428          if (0 && d_verbose){
429            // FIXME really want to enable logging in usrp_prims:usrp_9862_write
430            fprintf(stdout, "_write_9862(codec = %d, regno = %2d, val = 0x%02x)\n", which_codec, regno, value);
431            fflush(stdout);
432          }
433        
				

gnuradio/usrp/host/lib/usrp_basic.cc — 2

Category Magic
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
661          if (! (0 <= which_side && which_side <= 1))
662            return false;
663        
664          int t;
665          int reg = which_side + 1;	// FIXME, *very* magic number (fix in serial_io.v)
666          bool ok = _read_fpga_reg(reg, &t);
667          if (!ok)
668            return false;
669        
				

gnuradio/usrp/host/lib/usrp_basic.cc — 3

Category Magic
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
667          if (!ok)
668            return false;
669        
670          if (txrx == C_TX){
671            *value = t & 0xffff;		// FIXME, more magic
672            return true;
673          }
674          else {
675            *value = (t >> 16) & 0xffff;	// FIXME, more magic
				

gnuradio/usrp/host/lib/usrp_basic.cc — 4

Category Magic
Committer jcorgan
Commit ID 72c625f7e50b65dc3b642112762e9eb1d633bd42
671            *value = t & 0xffff;		// FIXME, more magic
672            return true;
673          }
674          else {
675            *value = (t >> 16) & 0xffff;	// FIXME, more magic
676            return true;
677          }
678        }
679        
				

gnuradio/usrp/host/lib/usrp_basic.cc — 5

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
778            throw std::runtime_error ("usrp_basic_rx/init_9862");
779          }
780        
781          if (0){
782            // FIXME power down 2nd codec rx path
783            usrp_9862_write (d_udh, 1, REG_RX_PWR_DN, 0x1);	// power down everything
784          }
785        
786          // Reset the rx path and leave it disabled.
				

gnuradio/usrp/host/lib/usrp_basic.cc — 6

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
940           * In many cases, the FPGA reports an rx overrun right after we
941           * enable the Rx path.  If this is our first read, check for the
942           * overrun to clear the condition, then ignore the result.
943           */
944          if (0 && d_first_read){	// FIXME
945            d_first_read = false;
946            bool bogus_overrun;
947            usrp_check_rx_overrun (d_udh, &bogus_overrun);
948          }
				

gnuradio/usrp/host/lib/usrp_basic.cc — 7

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
1181            throw std::runtime_error ("usrp_basic_tx/init_9862");
1182          }
1183        
1184          if (0){
1185            // FIXME power down 2nd codec tx path
1186            usrp_9862_write (d_udh, 1, REG_TX_PWR_DN,
1187        		     (TX_PWR_DN_TX_DIGITAL
1188        		      | TX_PWR_DN_TX_ANALOG_BOTH));
1189          }
				

gnuradio/usrp/host/lib/usrp_prims_common.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
35        #include <unistd.h>
36        #include <stdlib.h>
37        #include <string.h>
38        #include <ctype.h>
39        #include <time.h>		// FIXME should check with autoconf (nanosleep)
40        #include <algorithm>
41        #include <ad9862.h>
42        #include <assert.h>
43        #include "std_paths.h"
				

gnuradio/usrp/host/lib/usrp_prims_common.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
380          if (!ok)
381            fprintf (stderr, "usrp: failed to reset tx and/or rx path\n");
382        
383          // Manually reset all regs except master control to zero.
384          // FIXME may want to remove this when we rework FPGA reset strategy.
385          // In the mean while, this gets us reproducible behavior.
386          for (int i = 0; i < FR_USER_0; i++){
387            if (i == FR_MASTER_CTRL)
388              continue;
				

gnuradio/usrp/host/lib/usrp_prims_common.cc — 3

Category FIXME
Committer ttsou
Commit ID e67bd8ae9773731c00d2636833a9120ed3cc2ec1
628          libusb_device_handle *udh;
629        
630          udh = usrp_open_cmd_interface (udev);
631          if (udh == 0){
632            // FIXME this could be because somebody else has it open.
633            // We should delay and retry...
634            fprintf (stderr, "open_nth_cmd_interface: open_cmd_interface failed\n");
635            return 0;
636          }
				

gnuradio/usrp/host/lib/usrp_prims_common.cc — 4

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
925        bool
926        usrp_9862_write_many_all (libusb_device_handle *udh,
927        			   const unsigned char *buf, int len)
928        {
929          // FIXME handle 2/2 and 4/4 versions
930        
931          bool result;
932          result  = usrp_9862_write_many (udh, 0, buf, len);
933          result &= usrp_9862_write_many (udh, 1, buf, len);
				

gnuradio/usrp/host/lib/usrp_standard.cc — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
701        {
702          int width =  usrp_standard_rx::format_width(format);
703          int want_q = usrp_standard_rx::format_want_q(format);
704        
705          if (!(width == 8 || width == 16))	// FIXME add other widths when valid
706            return false;
707        
708          if (!want_q)		// FIXME remove check when the rest of the code can handle I only
709            return false;
				

gnuradio/usrp/host/lib/usrp_standard.cc — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
704        
705          if (!(width == 8 || width == 16))	// FIXME add other widths when valid
706            return false;
707        
708          if (!want_q)		// FIXME remove check when the rest of the code can handle I only
709            return false;
710        
711          return true;
712        }
				

gnuradio/usrp/host/misc/getopt.c

Category Magic
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
176        
177        #ifdef	__GNU_LIBRARY__
178        /* We want to avoid inclusion of string.h with non-GNU libraries
179           because there are many ways it can cause trouble.
180           On some systems, it contains special magic macros that don't work
181           in GCC.  */
182        #include <string.h>
183        #define	my_index	strchr
184        #define	my_bcopy(src, dst, n)	memcpy ((dst), (src), (n))
				

gnuradio/usrp/host/swig/util.py — 1

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
11            u = usrp_open_cmd_interface (dev)
12            if not u:
13                raise RuntimeError, "usrp_open_cmd_interface"
14        
15            # FIXME setup high speed paths, Aux ADC Clock, ...
16        
17            # usrp_9862_write (u, 0, 35, 0x1)     # aux ADC clock = CLK/4
18            # usrp_9862_write (u, 1, 35, 0x1)
19        
				

gnuradio/usrp/host/swig/util.py — 2

Category FIXME
Committer jcorgan
Commit ID 5d69a524f81f234b3fbc41d49ba18d6f6886baba
50            counter = 0
51            while True:
52                usrp_9862_write (u, which_codec, 43, counter >> 4)
53                usrp_9862_write (u, which_codec, 42, (counter & 0xf) << 4)
54                # counter += 1 FIXME
55                counter += 4
56                if counter > 0xfff:
57                    counter = 0
58        
				

gnuradio/usrp2/firmware/apps/app_common_v2.c — 1

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
133          r->len = sizeof(op_id_reply_t);
134          r->rid = p->rid;
135          r->addr = *ethernet_mac_addr();
136          r->hw_rev = (u2_hw_rev_major << 8) | u2_hw_rev_minor;
137          // r->fpga_md5sum = ;	// FIXME
138          // r->sw_md5sum = ;	// FIXME
139        
140          return r->len;
141        }
				

gnuradio/usrp2/firmware/apps/app_common_v2.c — 2

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
134          r->rid = p->rid;
135          r->addr = *ethernet_mac_addr();
136          r->hw_rev = (u2_hw_rev_major << 8) | u2_hw_rev_minor;
137          // r->fpga_md5sum = ;	// FIXME
138          // r->sw_md5sum = ;	// FIXME
139        
140          return r->len;
141        }
142        
				

gnuradio/usrp2/firmware/apps/app_common_v2.c — 3

Category FIXME
Committer jcorgan
Commit ID 297479844e3d9a6eea54fa69147e6a20c0bfc412
352        
353          if ((reply_payload_space < (sizeof(*r) + p->bytes)) ||
354              p->bytes > MAX_SUBPKT_LEN - sizeof(op_generic_t)) {
355            putstr("peek: insufficient reply packet space\n");
356            return 0;			// FIXME do partial read?
357          }
358        
359          r->opcode = OP_PEEK_REPLY;
360          r->len = sizeof(*r)+p->bytes;
				

gnuradio/usrp2/firmware/apps/app_passthru_v2.c — 1

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
98          r->opcode = OP_ID_REPLY;
99          r->len = sizeof(op_id_reply_t);
100          r->rid = p->rid;
101          r->addr = *ethernet_mac_addr();
102          r->hw_rev = 0x0000;	// FIXME
103          // r->fpga_md5sum = ;	// FIXME
104          // r->sw_md5sum = ;	// FIXME
105        
106          // FIXME Add d'board info, including dbid, min/max gain, min/max freq
				

gnuradio/usrp2/firmware/apps/app_passthru_v2.c — 2

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
99          r->len = sizeof(op_id_reply_t);
100          r->rid = p->rid;
101          r->addr = *ethernet_mac_addr();
102          r->hw_rev = 0x0000;	// FIXME
103          // r->fpga_md5sum = ;	// FIXME
104          // r->sw_md5sum = ;	// FIXME
105        
106          // FIXME Add d'board info, including dbid, min/max gain, min/max freq
107        
				

gnuradio/usrp2/firmware/apps/app_passthru_v2.c — 3

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
100          r->rid = p->rid;
101          r->addr = *ethernet_mac_addr();
102          r->hw_rev = 0x0000;	// FIXME
103          // r->fpga_md5sum = ;	// FIXME
104          // r->sw_md5sum = ;	// FIXME
105        
106          // FIXME Add d'board info, including dbid, min/max gain, min/max freq
107        
108          return r->len;
				

gnuradio/usrp2/firmware/apps/app_passthru_v2.c — 4

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
102          r->hw_rev = 0x0000;	// FIXME
103          // r->fpga_md5sum = ;	// FIXME
104          // r->sw_md5sum = ;	// FIXME
105        
106          // FIXME Add d'board info, including dbid, min/max gain, min/max freq
107        
108          return r->len;
109        }
110        
				

gnuradio/usrp2/firmware/apps/bitrot/tx_drop.c

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
158        {
159          uint32_t  status = buffer_pool_status->status;
160        
161          if (status & BPS_ERROR_ALL){
162            // FIXME rare path, handle error conditions
163            putstr("Errors! status = ");
164            puthex32_nl(status);
165        
166            printf("total_rx_pkts  = %d\n", total_rx_pkts);
				

gnuradio/usrp2/firmware/apps/bitrot/tx_drop2.c

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
188        {
189          uint32_t  status = buffer_pool_status->status;
190        
191          if (status & BPS_ERROR_ALL){
192            // FIXME rare path, handle error conditions
193            putstr("Errors! status = ");
194            puthex32_nl(status);
195        
196            printf("total_rx_pkts  = %d\n", total_rx_pkts);
				

gnuradio/usrp2/firmware/apps/eth_serdes.c — 1

Category Kludge
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
117         * Debugging ONLY.  This will be handled by the tx_protocol_engine.
118         *
119         * This is called when the DSP Rx chain has filled in a packet.
120         * We set and increment the seqno, then return false, indicating
121         * that we didn't handle the packet.  A bit of a kludge
122         * but it should work.
123         */
124        
125        bool 
				

gnuradio/usrp2/firmware/apps/eth_serdes.c — 2

Category Magic
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
137        #if 0
138          uint32_t *p = buffer_ram(buf_this);
139          uint32_t seqno = fw_seqno++;
140        
141          // KLUDGE all kinds of nasty magic numbers and embedded knowledge
142          uint32_t t = p[4];
143          t = (t & 0xffff00ff) | ((seqno & 0xff) << 8);
144          p[4] = t;
145        #endif
				

gnuradio/usrp2/firmware/apps/eth_serdes.c — 3

Category Kludge
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
137        #if 0
138          uint32_t *p = buffer_ram(buf_this);
139          uint32_t seqno = fw_seqno++;
140        
141          // KLUDGE all kinds of nasty magic numbers and embedded knowledge
142          uint32_t t = p[4];
143          t = (t & 0xffff00ff) | ((seqno & 0xff) << 8);
144          p[4] = t;
145        #endif
				

gnuradio/usrp2/firmware/apps/factory_test.c — 1

Category Kludge
Committer matt
Commit ID 05b1edb08373dad4fe483d2b4a4c398e1f099042
225         * Debugging ONLY.  This will be handled by the tx_protocol_engine.
226         *
227         * This is called when the DSP Rx chain has filled in a packet.
228         * We set and increment the seqno, then return false, indicating
229         * that we didn't handle the packet.  A bit of a kludge
230         * but it should work.
231         */
232        bool
233        fw_sets_seqno_inspector(dbsm_t *sm, int buf_this)	// returns false
				

gnuradio/usrp2/firmware/apps/factory_test.c — 2

Category Magic
Committer matt
Commit ID 05b1edb08373dad4fe483d2b4a4c398e1f099042
234        {
235          uint32_t *p = buffer_ram(buf_this);
236          uint32_t seqno = fw_seqno++;
237        
238          // KLUDGE all kinds of nasty magic numbers and embedded knowledge
239          uint32_t t = p[4];
240          t = (t & 0xffff00ff) | ((seqno & 0xff) << 8);
241          p[4] = t;
242        
				

gnuradio/usrp2/firmware/apps/factory_test.c — 3

Category Kludge
Committer matt
Commit ID 05b1edb08373dad4fe483d2b4a4c398e1f099042
234        {
235          uint32_t *p = buffer_ram(buf_this);
236          uint32_t seqno = fw_seqno++;
237        
238          // KLUDGE all kinds of nasty magic numbers and embedded knowledge
239          uint32_t t = p[4];
240          t = (t & 0xffff00ff) | ((seqno & 0xff) << 8);
241          p[4] = t;
242        
				

gnuradio/usrp2/firmware/apps/factory_test.c — 4

Category FIXME
Committer matt
Commit ID 05b1edb08373dad4fe483d2b4a4c398e1f099042
426            if (pending & PIC_OVERRUN_INT){
427              dbsm_handle_rx_overrun(&dsp_rx_sm);
428              pic_regs->pending = PIC_OVERRUN_INT;	// clear pending interrupt
429        
430              // FIXME Figure out how to handle this robustly.
431              // Any buffers that are emptying should be allowed to drain...
432        
433              if (streaming_p){
434        	// restart_streaming();
				

gnuradio/usrp2/firmware/apps/factory_test.c — 5

Category FIXME
Committer matt
Commit ID 05b1edb08373dad4fe483d2b4a4c398e1f099042
431              // Any buffers that are emptying should be allowed to drain...
432        
433              if (streaming_p){
434        	// restart_streaming();
435        	// FIXME report error
436              }
437              else {
438        	// FIXME report error
439              }
				

gnuradio/usrp2/firmware/apps/factory_test.c — 6

Category FIXME
Committer matt
Commit ID 05b1edb08373dad4fe483d2b4a4c398e1f099042
434        	// restart_streaming();
435        	// FIXME report error
436              }
437              else {
438        	// FIXME report error
439              }
440              putchar('O');
441            }
442          }
				

gnuradio/usrp2/firmware/apps/gen_eth_packets.c

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
174            if (link_is_up && send_packet_now && (status & BPS_IDLE(CPU_TX_BUF))){
175              send_packet_now = false;
176        
177              // kick off the next packet
178              // FIXME set packet number in packet
179        
180              bp_send_from_buf(CPU_TX_BUF, PORT_ETH, 1, 0, 255);	// 1KB total
181              hal_toggle_leds(0x1);
182            }
				

gnuradio/usrp2/firmware/apps/gen_pause_frames.c — 1

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
105        
106        void
107        buffer_irq_handler(unsigned irq)
108        {
109          // FIXME
110        }
111        
112        static void
113        init_packet(int *buf, const u2_eth_packet_t *pkt, int bufnum)
				

gnuradio/usrp2/firmware/apps/gen_pause_frames.c — 2

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
172        
173          eth_mac->pause_frame_send_en = 1;
174          eth_mac->pause_quanta_set = 16384 / 512;
175        
176          // eth_mac->speed = 4;	// FIXME hardcode mac speed to 1000
177        
178          while(1){
179            if (link_is_up && send_packet_now){
180              send_packet_now = false;
				

gnuradio/usrp2/firmware/apps/gen_pause_frames.c — 3

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
187        
188              send_pause ^= 1;
189        
190              // kick off the next packet
191              // FIXME set packet number in packet
192        
193        #if 0
194              bp_send_from_buf(0, PORT_ETH, 1, 0, 255);	// 1KB total
195        
				

gnuradio/usrp2/firmware/apps/mimo_app_common_v2.c — 1

Category FIXME
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
129          r->len = sizeof(op_id_reply_t);
130          r->rid = p->rid;
131          r->addr = *ethernet_mac_addr();
132          r->hw_rev = (u2_hw_rev_major << 8) | u2_hw_rev_minor;
133          // r->fpga_md5sum = ;	// FIXME
134          // r->sw_md5sum = ;	// FIXME
135        
136          return r->len;
137        }
				

gnuradio/usrp2/firmware/apps/mimo_app_common_v2.c — 2

Category FIXME
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
130          r->rid = p->rid;
131          r->addr = *ethernet_mac_addr();
132          r->hw_rev = (u2_hw_rev_major << 8) | u2_hw_rev_minor;
133          // r->fpga_md5sum = ;	// FIXME
134          // r->sw_md5sum = ;	// FIXME
135        
136          return r->len;
137        }
138        
				

gnuradio/usrp2/firmware/apps/mimo_app_common_v2.c — 3

Category FIXME
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
347        
348          if ((reply_payload_space < (sizeof(*r) + p->bytes)) ||
349              p->bytes > MAX_SUBPKT_LEN - sizeof(op_generic_t)) {
350            putstr("peek: insufficient reply packet space\n");
351            return 0;			// FIXME do partial read?
352          }
353        
354          r->opcode = OP_PEEK_REPLY;
355          r->len = sizeof(*r)+p->bytes;
				

gnuradio/usrp2/firmware/apps/mimo_tx.c — 1

Category Kludge
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
231         * Debugging ONLY.  This will be handled by the tx_protocol_engine.
232         *
233         * This is called when the DSP Rx chain has filled in a packet.
234         * We set and increment the seqno, then return false, indicating
235         * that we didn't handle the packet.  A bit of a kludge
236         * but it should work.
237         */
238        int
239        fw_sets_seqno_inspector(bsm12_t *sm, int buf_this)
				

gnuradio/usrp2/firmware/apps/mimo_tx.c — 2

Category Magic
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
240        {
241          uint32_t *p = buffer_ram(buf_this);
242          uint32_t seqno = fw_seqno++;
243        
244          // KLUDGE all kinds of nasty magic numbers and embedded knowledge
245          uint32_t t = p[4];
246          t = (t & 0xffff00ff) | ((seqno & 0xff) << 8);
247          p[4] = t;
248        
				

gnuradio/usrp2/firmware/apps/mimo_tx.c — 3

Category Kludge
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
240        {
241          uint32_t *p = buffer_ram(buf_this);
242          uint32_t seqno = fw_seqno++;
243        
244          // KLUDGE all kinds of nasty magic numbers and embedded knowledge
245          uint32_t t = p[4];
246          t = (t & 0xffff00ff) | ((seqno & 0xff) << 8);
247          p[4] = t;
248        
				

gnuradio/usrp2/firmware/apps/mimo_tx.c — 4

Category FIXME
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
346            if (pending & PIC_OVERRUN_INT){
347              // dbsm_handle_rx_overrun(&dsp_rx_sm);
348              pic_regs->pending = PIC_OVERRUN_INT;	// clear pending interrupt
349        
350              // FIXME Figure out how to handle this robustly.
351              // Any buffers that are emptying should be allowed to drain...
352        
353              if (streaming_p){
354        	// restart_streaming();
				

gnuradio/usrp2/firmware/apps/mimo_tx.c — 5

Category FIXME
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
351              // Any buffers that are emptying should be allowed to drain...
352        
353              if (streaming_p){
354        	// restart_streaming();
355        	// FIXME report error
356              }
357              else {
358        	// FIXME report error
359              }
				

gnuradio/usrp2/firmware/apps/mimo_tx.c — 6

Category FIXME
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
354        	// restart_streaming();
355        	// FIXME report error
356              }
357              else {
358        	// FIXME report error
359              }
360              putchar('O');
361            }
362          }
				

gnuradio/usrp2/firmware/apps/mimo_tx_slave.c — 1

Category Kludge
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
230         * Debugging ONLY.  This will be handled by the tx_protocol_engine.
231         *
232         * This is called when the DSP Rx chain has filled in a packet.
233         * We set and increment the seqno, then return false, indicating
234         * that we didn't handle the packet.  A bit of a kludge
235         * but it should work.
236         */
237        bool
238        fw_sets_seqno_inspector(dbsm_t *sm, int buf_this)	// returns false
				

gnuradio/usrp2/firmware/apps/mimo_tx_slave.c — 2

Category Magic
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
239        {
240          uint32_t *p = buffer_ram(buf_this);
241          uint32_t seqno = fw_seqno++;
242        
243          // KLUDGE all kinds of nasty magic numbers and embedded knowledge
244          uint32_t t = p[4];
245          t = (t & 0xffff00ff) | ((seqno & 0xff) << 8);
246          p[4] = t;
247        
				

gnuradio/usrp2/firmware/apps/mimo_tx_slave.c — 3

Category Kludge
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
239        {
240          uint32_t *p = buffer_ram(buf_this);
241          uint32_t seqno = fw_seqno++;
242        
243          // KLUDGE all kinds of nasty magic numbers and embedded knowledge
244          uint32_t t = p[4];
245          t = (t & 0xffff00ff) | ((seqno & 0xff) << 8);
246          p[4] = t;
247        
				

gnuradio/usrp2/firmware/apps/mimo_tx_slave.c — 4

Category FIXME
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
363            if (pending & PIC_OVERRUN_INT){
364              dbsm_handle_rx_overrun(&dsp_rx_sm);
365              pic_regs->pending = PIC_OVERRUN_INT;	// clear pending interrupt
366        
367              // FIXME Figure out how to handle this robustly.
368              // Any buffers that are emptying should be allowed to drain...
369        
370              if (streaming_p){
371        	// restart_streaming();
				

gnuradio/usrp2/firmware/apps/mimo_tx_slave.c — 5

Category FIXME
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
368              // Any buffers that are emptying should be allowed to drain...
369        
370              if (streaming_p){
371        	// restart_streaming();
372        	// FIXME report error
373              }
374              else {
375        	// FIXME report error
376              }
				

gnuradio/usrp2/firmware/apps/mimo_tx_slave.c — 6

Category FIXME
Committer eb
Commit ID b37c7375faf0ee227276ce9cc35344d5e00dc4c6
371        	// restart_streaming();
372        	// FIXME report error
373              }
374              else {
375        	// FIXME report error
376              }
377              putchar('O');
378            }
379          }
				

gnuradio/usrp2/firmware/apps/rcv_eth_packets.c — 1

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
108        
109        void
110        buffer_irq_handler(unsigned irq)
111        {
112          // FIXME
113        }
114        
115        static void
116        init_packet(int *buf, const u2_eth_packet_t *pkt, int bufnum)
				

gnuradio/usrp2/firmware/apps/rcv_eth_packets.c — 2

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
163          init_packets();
164        
165          // pic_register_handler(IRQ_BUFFER, buffer_irq_handler);  // poll for now
166        
167          // FIXME turn off timer since I don't think MTS and MFS instructions are implemented
168          // pic_register_handler(IRQ_TIMER, timer_irq_handler);
169          // hal_set_timeout(timer_delta);
170        
171          ethernet_register_link_changed_callback(link_changed_callback);
				

gnuradio/usrp2/firmware/apps/rcv_eth_packets.c — 3

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
171          ethernet_register_link_changed_callback(link_changed_callback);
172        
173          ethernet_init();
174        
175          //eth_mac->speed = 4;	// FIXME hardcode mac speed to 1000
176        
177          // kick off a receive
178          bp_receive_to_buf(2, PORT_ETH, 1, 0, 511);
179        
				

gnuradio/usrp2/firmware/apps/serdes_txrx.c — 1

Category Kludge
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
222         * Debugging ONLY.  This will be handled by the tx_protocol_engine.
223         *
224         * This is called when the DSP Rx chain has filled in a packet.
225         * We set and increment the seqno, then return false, indicating
226         * that we didn't handle the packet.  A bit of a kludge
227         * but it should work.
228         */
229        bool
230        fw_sets_seqno_inspector(dbsm_t *sm, int buf_this)	// returns false
				

gnuradio/usrp2/firmware/apps/serdes_txrx.c — 2

Category Magic
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
231        {
232          uint32_t *p = buffer_ram(buf_this);
233          uint32_t seqno = fw_seqno++;
234        
235          // KLUDGE all kinds of nasty magic numbers and embedded knowledge
236          uint32_t t = p[4];
237          t = (t & 0xffff00ff) | ((seqno & 0xff) << 8);
238          p[4] = t;
239        
				

gnuradio/usrp2/firmware/apps/serdes_txrx.c — 3

Category Kludge
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
231        {
232          uint32_t *p = buffer_ram(buf_this);
233          uint32_t seqno = fw_seqno++;
234        
235          // KLUDGE all kinds of nasty magic numbers and embedded knowledge
236          uint32_t t = p[4];
237          t = (t & 0xffff00ff) | ((seqno & 0xff) << 8);
238          p[4] = t;
239        
				

gnuradio/usrp2/firmware/apps/serdes_txrx.c — 4

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
355            if (pending & PIC_OVERRUN_INT){
356              dbsm_handle_rx_overrun(&dsp_rx_sm);
357              pic_regs->pending = PIC_OVERRUN_INT;	// clear pending interrupt
358        
359              // FIXME Figure out how to handle this robustly.
360              // Any buffers that are emptying should be allowed to drain...
361        
362              if (streaming_p){
363        	// restart_streaming();
				

gnuradio/usrp2/firmware/apps/serdes_txrx.c — 5

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
360              // Any buffers that are emptying should be allowed to drain...
361        
362              if (streaming_p){
363        	// restart_streaming();
364        	// FIXME report error
365              }
366              else {
367        	// FIXME report error
368              }
				

gnuradio/usrp2/firmware/apps/serdes_txrx.c — 6

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
363        	// restart_streaming();
364        	// FIXME report error
365              }
366              else {
367        	// FIXME report error
368              }
369              putchar('O');
370            }
371          }
				

gnuradio/usrp2/firmware/apps/test_i2c.c

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
16         */
17        
18        #include <stdio.h>
19        #include <stdint.h>
20        #include <u2_init.h>		/* FIXME */
21        #include <i2c.h>
22        #include <usrp2_i2c_addr.h>
23        #include <string.h>
24        #include <hal_io.h>
				

gnuradio/usrp2/firmware/apps/test_ram.c

Category FIXME
Committer matt
Commit ID 430e7eb03892bea70bb93f8cd8b2edcef38f71c2
16         */
17        
18        #include <stdio.h>
19        #include <stdint.h>
20        #include <u2_init.h>		/* FIXME */
21        #include <sd.h>
22        #include <string.h>
23        #include <hal_io.h>
24        #include <nonstdio.h>
				

gnuradio/usrp2/firmware/apps/test_sd.c

Category FIXME
Committer matt
Commit ID ad482436a7c9e97f4bc1f7407dccd85a4cade6c5
16         */
17        
18        #include <stdio.h>
19        #include <stdint.h>
20        #include <u2_init.h>		/* FIXME */
21        #include <sd.h>
22        #include <string.h>
23        #include <hal_io.h>
24        #include <nonstdio.h>
				

gnuradio/usrp2/firmware/apps/tx_standalone.c — 1

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
154          bp_clear_buf(DSP_TX_BUF_0);
155          bp_clear_buf(DSP_TX_BUF_1);
156          dbsm_stop(&dsp_tx_sm);
157        
158          // FIXME anything else?
159        
160          putstr("\nirq: underrun\n");
161        }
162        
				

gnuradio/usrp2/firmware/apps/tx_standalone.c — 2

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
168          bp_clear_buf(DSP_RX_BUF_0);
169          bp_clear_buf(DSP_RX_BUF_1);
170          dbsm_stop(&dsp_rx_sm);
171        
172          // FIXME anything else?
173        
174          putstr("\nirq: overrun\n");
175        }
176        
				

gnuradio/usrp2/firmware/apps/tx_standalone.c — 3

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
231            putchar('\n');
232          }
233        
234          if (status & BPS_ERROR_ALL){
235            // FIXME rare path, handle error conditions
236          }
237        
238          if (status & BPS_DONE(DSP_TX_BUF_0)){
239            bp_clear_buf(DSP_TX_BUF_0);
				

gnuradio/usrp2/firmware/apps/txrx.c — 1

Category Kludge
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
273         * Debugging ONLY.  This will be handled by the tx_protocol_engine.
274         *
275         * This is called when the DSP Rx chain has filled in a packet.
276         * We set and increment the seqno, then return false, indicating
277         * that we didn't handle the packet.  A bit of a kludge
278         * but it should work.
279         */
280        bool
281        fw_sets_seqno_inspector(dbsm_t *sm, int buf_this)	// returns false
				

gnuradio/usrp2/firmware/apps/txrx.c — 2

Category Magic
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
282        {
283          uint32_t *p = buffer_ram(buf_this);
284          uint32_t seqno = fw_seqno++;
285        
286          // KLUDGE all kinds of nasty magic numbers and embedded knowledge
287          uint32_t t = p[4];
288          t = (t & 0xffff00ff) | ((seqno & 0xff) << 8);
289          p[4] = t;
290        
				

gnuradio/usrp2/firmware/apps/txrx.c — 3

Category Kludge
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
282        {
283          uint32_t *p = buffer_ram(buf_this);
284          uint32_t seqno = fw_seqno++;
285        
286          // KLUDGE all kinds of nasty magic numbers and embedded knowledge
287          uint32_t t = p[4];
288          t = (t & 0xffff00ff) | ((seqno & 0xff) << 8);
289          p[4] = t;
290        
				

gnuradio/usrp2/firmware/apps/txrx.c — 4

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
384            if (pending & PIC_OVERRUN_INT){
385              dbsm_handle_rx_overrun(&dsp_rx_sm);
386              pic_regs->pending = PIC_OVERRUN_INT;	// clear pending interrupt
387        
388              // FIXME Figure out how to handle this robustly.
389              // Any buffers that are emptying should be allowed to drain...
390        
391              if (streaming_p){
392        	// restart_streaming();
				

gnuradio/usrp2/firmware/apps/txrx.c — 5

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
389              // Any buffers that are emptying should be allowed to drain...
390        
391              if (streaming_p){
392        	// restart_streaming();
393        	// FIXME report error
394              }
395              else {
396        	// FIXME report error
397              }
				

gnuradio/usrp2/firmware/apps/txrx.c — 6

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
392        	// restart_streaming();
393        	// FIXME report error
394              }
395              else {
396        	// FIXME report error
397              }
398              putchar('O');
399            }
400          }
				

gnuradio/usrp2/firmware/include/usrp2_eth_packet.h

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
32        /*
33         * All these data structures are BIG-ENDIAN on the wire
34         */
35        
36        // FIXME gcc specific.  Really ought to come from compiler.h
37        #define _AL4   __attribute__((aligned (4)))
38        
39        /*
40         * \brief The classic 14-byte ethernet header
				

gnuradio/usrp2/firmware/lib/abort.c

Category FIXME
Committer eb
Commit ID 94981131edbe7bb7cc4261d73de0d476f386b6fa
26        void 
27        abort(void)
28        {
29          putstr("\n\nabort\n");
30          // FIXME loop blinking leds
31          _exit(-1);
32        }
				

gnuradio/usrp2/firmware/lib/ad9777_regs.h

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
64        #define	R9_Q_FINE_GAIN(g)    (g)		// 8-bits
65        #define	R10_Q_COARSE_GAIN(g) ((g) & 0xf)	// low 4-bits
66        
67        
68        // FIXME more registers for offset and gain control...
69        
70        
71        #endif /* INCLUDED_AD9777_REGS_H */
				

gnuradio/usrp2/firmware/lib/db_bitshark_rx.c — 1

Category Magic
Committer JohnOrlando
Commit ID 22a3ed8955a9d40796d58e83993b5f56f117a27a
230               way out...too long (say, 500 mS) and higher-level apps such as
231               usrp2_fft.py seem to choke because the init sequence is taking
232               too long.  So 5 mS was tested repeatedly without error, and deemed
233               reasonable. Not sure if this is an issue with the I2C master
234               code in the microblaze or some place else, and I hate magic
235               delays too, but this seems to be stable. */
236            mdelay(5);
237        
238            /* shift the value up so that it is represented properly in the fixed
				

gnuradio/usrp2/firmware/lib/db_bitshark_rx.c — 2

Category Magic
Committer JohnOrlando
Commit ID 22a3ed8955a9d40796d58e83993b5f56f117a27a
272               way out...too long (say, 500 mS) and higher-level apps such as
273               usrp2_fft.py seem to choke because the init sequence is taking
274               too long.  So 5 mS was tested repeatedly without error, and deemed
275               reasonable. Not sure if this is an issue with the I2C master
276               code in the microblaze or some place else, and I hate magic
277               delays too, but this seems to be stable. */
278            mdelay(5);
279        
280            return true;
				

gnuradio/usrp2/firmware/lib/db_bitshark_rx.c — 3

Category Magic
Committer JohnOrlando
Commit ID 22a3ed8955a9d40796d58e83993b5f56f117a27a
308               way out...too long (say, 500 mS) and higher-level apps such as
309               usrp2_fft.py seem to choke because the init sequence is taking
310               too long.  So 5 mS was tested repeatedly without error, and deemed
311               reasonable. Not sure if this is an issue with the I2C master
312               code in the microblaze or some place else, and I hate magic
313               delays too, but this seems to be stable. */
314            mdelay(5);
315        
316            return true;
				

gnuradio/usrp2/firmware/lib/db_bitshark_rx.c — 4

Category Magic
Committer JohnOrlando
Commit ID 22a3ed8955a9d40796d58e83993b5f56f117a27a
357               way out...too long (say, 500 mS) and higher-level apps such as
358               usrp2_fft.py seem to choke because the init sequence is taking
359               too long.  So 5 mS was tested repeatedly without error, and deemed
360               reasonable. Not sure if this is an issue with the I2C master
361               code in the microblaze or some place else, and I hate magic
362               delays too, but this seems to be stable. */
363            mdelay(5);
364        
365            return true;
				

gnuradio/usrp2/firmware/lib/db_dbsrx.c

Category FIXME
Committer matt
Commit ID 94f824d5313e2354f74deea9333063daa3998571
170          db->common.d_div2 = div2;
171          _send_reg_0(db);
172        }
173        
174        // FIXME  How do we handle ADE and ADL properly?
175        static void
176        _set_ade(struct db_dbsrx_dummy *db, int ade){
177          db->common.d_ade = ade;
178          _send_reg_4(db);
				

gnuradio/usrp2/firmware/lib/db_init.c — 1

Category FIXME
Committer eb
Commit ID a538f5aa702bb3ee2a9e6bb9ac3ef1a2988ed36b
147        {
148          struct db_base *db;
149          int dbid = read_dboard_eeprom(i2c_addr);
150        
151          // FIXME removing this printf has the system hang if there are two d'boards
152          // installed.  (I think the problem is in i2c_read/write or the way
153          // I kludge the zero-byte write to set the read address in eeprom_read.)
154          printf("%s dbid: 0x%x\n", msg, dbid);
155        
				

gnuradio/usrp2/firmware/lib/db_init.c — 2

Category Kludge
Committer eb
Commit ID a538f5aa702bb3ee2a9e6bb9ac3ef1a2988ed36b
149          int dbid = read_dboard_eeprom(i2c_addr);
150        
151          // FIXME removing this printf has the system hang if there are two d'boards
152          // installed.  (I think the problem is in i2c_read/write or the way
153          // I kludge the zero-byte write to set the read address in eeprom_read.)
154          printf("%s dbid: 0x%x\n", msg, dbid);
155        
156          if (dbid < 0){	// there was some kind of problem.  Treat as Basic Tx
157            return default_db;
				

gnuradio/usrp2/firmware/lib/db_init.c — 3

Category FIXME
Committer eb
Commit ID cf964adcd7fde2e30c01d0c09cc05656ce1a157d
244            subdev0_uses = 0x3;		// uses A/D 0 and 1
245          else
246            subdev0_uses = 0x1;		// uses A/D 0 only
247        
248          // FIXME second subdev on Basic Rx, LF RX
249          // if subdev2 exists
250          // subdev1_uses = 0x2;
251          subdev1_uses = 0;
252        
				

gnuradio/usrp2/firmware/lib/db_init_wbx.c — 1

Category FIXME
Committer Jason Abele
Commit ID ab207bece948af27e4772cb482ba9a7973b9565e
117        {
118          struct db_base *db;
119          int dbid = read_dboard_eeprom(i2c_addr);
120        
121          // FIXME removing this printf has the system hang if there are two d'boards
122          // installed.  (I think the problem is in i2c_read/write or the way
123          // I kludge the zero-byte write to set the read address in eeprom_read.)
124          printf("%s dbid: 0x%x\n", msg, dbid);
125        
				

gnuradio/usrp2/firmware/lib/db_init_wbx.c — 2

Category Kludge
Committer Jason Abele
Commit ID ab207bece948af27e4772cb482ba9a7973b9565e
119          int dbid = read_dboard_eeprom(i2c_addr);
120        
121          // FIXME removing this printf has the system hang if there are two d'boards
122          // installed.  (I think the problem is in i2c_read/write or the way
123          // I kludge the zero-byte write to set the read address in eeprom_read.)
124          printf("%s dbid: 0x%x\n", msg, dbid);
125        
126          if (dbid < 0){	// there was some kind of problem.  Treat as Basic Tx
127            return default_db;
				

gnuradio/usrp2/firmware/lib/db_init_wbx.c — 3

Category FIXME
Committer Jason Abele
Commit ID ab207bece948af27e4772cb482ba9a7973b9565e
214            subdev0_uses = 0x3;		// uses A/D 0 and 1
215          else
216            subdev0_uses = 0x1;		// uses A/D 0 only
217        
218          // FIXME second subdev on Basic Rx, LF RX
219          // if subdev2 exists
220          // subdev1_uses = 0x2;
221          subdev1_uses = 0;
222        
				

gnuradio/usrp2/firmware/lib/db_init_xcvr.c — 1

Category FIXME
Committer Josh Blum
Commit ID 803cb1d7974ed7d419550cc66480c107c2f0d454
117        {
118          struct db_base *db;
119          int dbid = read_dboard_eeprom(i2c_addr);
120        
121          // FIXME removing this printf has the system hang if there are two d'boards
122          // installed.  (I think the problem is in i2c_read/write or the way
123          // I kludge the zero-byte write to set the read address in eeprom_read.)
124          printf("%s dbid: 0x%x\n", msg, dbid);
125        
				

gnuradio/usrp2/firmware/lib/db_init_xcvr.c — 2

Category Kludge
Committer Josh Blum
Commit ID 803cb1d7974ed7d419550cc66480c107c2f0d454
119          int dbid = read_dboard_eeprom(i2c_addr);
120        
121          // FIXME removing this printf has the system hang if there are two d'boards
122          // installed.  (I think the problem is in i2c_read/write or the way
123          // I kludge the zero-byte write to set the read address in eeprom_read.)
124          printf("%s dbid: 0x%x\n", msg, dbid);
125        
126          if (dbid < 0){	// there was some kind of problem.  Treat as Basic Tx
127            return default_db;
				

gnuradio/usrp2/firmware/lib/db_init_xcvr.c — 3

Category FIXME
Committer Josh Blum
Commit ID 803cb1d7974ed7d419550cc66480c107c2f0d454
214            subdev0_uses = 0x3;		// uses A/D 0 and 1
215          else
216            subdev0_uses = 0x1;		// uses A/D 0 only
217        
218          // FIXME second subdev on Basic Rx, LF RX
219          // if subdev2 exists
220          // subdev1_uses = 0x2;
221          subdev1_uses = 0;
222        
				

gnuradio/usrp2/firmware/lib/db_rfx.c

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
613        rfx_set_tx_enable(struct db_base *dbb, bool on)
614        {
615          struct db_rfx_dummy *db = (struct db_rfx_dummy *) dbb;
616        
617          // FIXME
618        
619          return false;
620        }
621        
				

gnuradio/usrp2/firmware/lib/db_wbxng.c

Category FIXME
Committer Jason Abele
Commit ID ab207bece948af27e4772cb482ba9a7973b9565e
199        wbxng_set_tx_enable(struct db_base *dbb, bool on)
200        {
201          struct db_wbxng_dummy *db = (struct db_wbxng_dummy *) dbb;
202        
203          // FIXME
204        
205          return false;
206        }
207        
				

gnuradio/usrp2/firmware/lib/db_xcvr2450.c — 1

Category FIXME
Committer matt
Commit ID 1a550a92d5b10fcc2537aa8a80366c74494430b8
22        #include <hal_io.h>
23        #include <clocks.h>
24        #include <mdelay.h>
25        
26        void set_atr_regs(int bank, struct db_base *db); //FIXME I need to be in a header
27        
28        // RX IO Pins
29        #define LOCKDET (1 << 15)           // This is an INPUT!!!
30        #define EN      (1 << 14)
				

gnuradio/usrp2/firmware/lib/db_xcvr2450.c — 2

Category FIXME
Committer jblum
Commit ID d19334349914e06a4112e13b79ac3af0004dd9d0
243        }
244        
245        static void
246        set_reg_cal(struct db_xcvr2450_dummy *db){
247          // FIXME do calibration
248          int reg_cal = (
249            (1<<14) | 6);
250          send_reg(reg_cal);
251        }
				

gnuradio/usrp2/firmware/lib/db_xcvr2450.c — 3

Category FIXME
Committer matt
Commit ID 1a550a92d5b10fcc2537aa8a80366c74494430b8
319          int tx_antsel = (db->common->d_tx_ant)? ANTSEL_TX2_RX1:ANTSEL_TX1_RX2;
320          int rx_antsel = (db->common->d_rx_ant)? ANTSEL_TX2_RX1:ANTSEL_TX1_RX2;
321          int tx_pa_sel = (db->common->d_five_gig)? LB_PA_OFF:HB_PA_OFF;
322        
323          /* FIXME better way to set rx and tx val for RX and TX banks */
324          /* set rx bank */
325          db->base.atr_rxval = EN|rx_hp|RX_EN;
326          db->base.atr_txval = EN|rx_hp;
327          set_atr_regs(GPIO_RX_BANK, (struct db_base *)db);
				

gnuradio/usrp2/firmware/lib/hal_uart.c — 1

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
47        
48        void
49        hal_uart_putc(int ch)
50        {
51          if (ch == '\n')		// FIXME for now map \n -> \r\n
52            hal_uart_putc('\r');
53        
54          while (u->txlevel == 0)	 // wait for fifo to have space
55            ;
				

gnuradio/usrp2/firmware/lib/hal_uart.c — 2

Category FIXME
Committer matt
Commit ID 4ef65a60c4cf79a11a097cac312d86803fbbd202
59        
60        void
61        hal_uart_putc_nowait(int ch)
62        {
63          if (ch == '\n')		// FIXME for now map \n -> \r\n
64            hal_uart_putc('\r');
65        
66          if(u->txlevel)   // If fifo has space
67            u->txchar = ch;
				

gnuradio/usrp2/firmware/lib/i2c.c

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
48          i2c_regs->prescaler_hi = (prescaler_values[wb_div] >> 8) & 0xff;
49        
50          i2c_regs->ctrl = I2C_CTRL_EN;	// enable core
51        
52          // FIXME interrupt driven?
53        }
54        
55        static inline void
56        wait_for_xfer(void)
				

gnuradio/usrp2/firmware/lib/memory_map.h — 1

Category FIXME
Committer matt
Commit ID 430e7eb03892bea70bb93f8cd8b2edcef38f71c2
356          volatile uint32_t	adc_ctrl;
357          volatile uint32_t	leds;
358          volatile uint32_t	phy_ctrl;	// LSB is reset line to eth phy
359          volatile uint32_t	debug_mux_ctrl;
360          volatile uint32_t     ram_page;       // FIXME should go somewhere else...
361          volatile uint32_t     flush_icache;   // Flush the icache
362          volatile uint32_t     led_src;        // HW or SW control for LEDs
363        } output_regs_t;
364        
				

gnuradio/usrp2/firmware/lib/memory_map.h — 2

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
520         * All outgoing packets have their fifo_status field set to the number
521         * of 32-bit lines of fifo available in the ethernet Rx fifo (see
522         * usrp2_eth_packet.h).  Seqno's are set if FIXME, else 0.
523         *
524         * FIXME clean this up once we know how it's supposed to behave.
525         */
526        
527        typedef struct {
528          volatile uint32_t  flags;	     // not yet fully defined (channel?)
				

gnuradio/usrp2/firmware/lib/pic.c — 1

Category Magic
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
49          pic_regs->pending = ~0;			       // clear all pending ints
50        }
51        
52        /*
53         * This magic gets pic_interrupt_handler wired into the
54         * system interrupt handler with the appropriate prologue and
55         * epilogue.
56         */
57        void pic_interrupt_handler() __attribute__ ((interrupt_handler));
				

gnuradio/usrp2/firmware/lib/pic.c — 2

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
60        {
61          // pending and not masked interrupts
62          int live = pic_regs->pending & ~pic_regs->mask;
63        
64          // FIXME loop while there are interrupts to service.
65          //   That will reduce our overhead.
66        
67          // handle the first one set
68          int i;
				

gnuradio/usrp2/firmware/lib/pic.h

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
25        void pic_register_handler(unsigned irq, irq_handler_t handler);
26        
27        void nop_handler(unsigned irq);	// default handler does nothing
28        
29        // FIXME inline assembler
30        int  pic_disable_interrupts();
31        int  pic_enable_interrupts();
32        void pic_restore_interrupts(int prev_status);
33        
				

gnuradio/usrp2/firmware/lib/printf.c

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
127          *pInto++ = '\0';
128        
129          va_end(va);
130        
131          // FIXME wrong return value
132          return 0;
133        }
134        #endif
				

gnuradio/usrp2/firmware/lib/sd.c

Category FIXME
Committer matt
Commit ID ad482436a7c9e97f4bc1f7407dccd85a4cade6c5
191        
192        int
193        sd_write_block(unsigned int blockaddr, const unsigned char *buf)
194        {
195          // FIXME not implemented yet
196          return 0;
197        }
				

gnuradio/usrp2/host/apps/rx_streaming_samples.cc — 1

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
60        }
61        
62        // ------------------------------------------------------------------------
63        
64        // FIXME make this a template
65        
66        class file_writer_16sc : public usrp2::rx_nop_handler
67        {
68          FILE	       *d_fp;
				

gnuradio/usrp2/host/apps/rx_streaming_samples.cc — 2

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
291            std::cerr << "Failed to enable realtime scheduling" << std::endl;
292        
293          usrp2::usrp2::sptr u2 = usrp2::usrp2::make(interface, mac_addr_str);
294          
295          // FIXME in case it was left running...
296          if (!u2->stop_rx_streaming()){
297            fprintf(stderr, "stop_rx_streaming failed\n");
298          }
299        
				

gnuradio/usrp2/host/apps/stdin_int32_fft.py — 1

PyFlakes undefined name 'ok'
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
164                input_rate = 100e6 / self.options.decim
165                self.scope.set_sample_rate(input_rate)
166                if self.show_debug_info:  # update displayed values
167                    self.myform['decim'].set_value(self.u.decim_rate())
168                return ok
169        
170            def _setup_events(self):
171        	if not self.options.waterfall and not self.options.oscilloscope:
172        	    self.scope.win.Bind(wx.EVT_LEFT_DCLICK, self.evt_left_dclick)
				

gnuradio/usrp2/host/apps/stdin_int32_fft.py — 2

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
108        
109            def _build_subpanel(self, vbox_arg):
110                # build a secondary information panel (sometimes hidden)
111        
112                # FIXME figure out how to have this be a subpanel that is always
113                # created, but has its visibility controlled by foo.Show(True/False)
114                
115                def _form_set_decim(kv):
116                    return self.set_decim(kv['decim'])
				

gnuradio/usrp2/host/apps/tx_samples.cc

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
256              if (fseek(fp, 0, SEEK_SET) == -1)
257        	break;
258            }
259        
260            // FIXME if r < 9, pad to 9 for minimum packet size constraint
261        
262            if (!u2->tx_16sc(0, samples, r, &md)){
263              fprintf(stderr, "tx_complex_int16 failed\n");
264              break;
				

gnuradio/usrp2/host/include/usrp2/copiers.h

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
23        #include <stdint.h>
24        
25        namespace usrp2 {
26        
27          // FIXME we may want to rework this, but this will get us on the air
28        
29          /*
30           * ----------------------------------------------------------------
31           * Copy and convert from USRP2 wire format to host format
				

gnuradio/usrp2/host/lib/copiers.cc — 1

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
29        #include <stdexcept>
30        #include <assert.h>
31        #include <string.h>
32        
33        // FIXME need gruel::not_implemented
34        
35        namespace usrp2 {
36        
37          /*
				

gnuradio/usrp2/host/lib/copiers.cc — 2

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
35        namespace usrp2 {
36        
37          /*
38           * N.B., in all of these, uint32_t *items is NOT 32-bit aligned!
39           * FIXME Needs fix for non-x86 machines.
40           */
41        
42          /*
43           * ----------------------------------------------------------------
				

gnuradio/usrp2/host/lib/copiers.cc — 3

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
55            memcpy(host_items, items, nitems * sizeof(items[0]));
56        
57        #else
58        
59            // FIXME SIMD welcome here
60        
61            for (size_t i = 0; i < nitems; i++){
62              uint32_t t = ntohx(items[i]);
63              //printf("%9d\n", items[i]);
				

gnuradio/usrp2/host/lib/copiers.cc — 4

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
100            memcpy(items, host_items, nitems * sizeof(items[0]));
101        
102        #else
103        
104            // FIXME SIMD welcome here
105        
106            for (size_t i = 0; i < nitems; i++){
107              items[i] = htonl((host_items[i].real() << 16) | (host_items[i].imag() & 0xffff));
108            }
				

gnuradio/usrp2/host/lib/eth_common.h — 1

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
21        
22        #ifndef INCLUDED_USRP2_ETH_COMMON_H
23        #define INCLUDED_USRP2_ETH_COMMON_H
24        
25        #include <sys/uio.h>			// FIXME autoconf this
26        
27        namespace usrp2 {
28          
29          enum eth_flags {
				

gnuradio/usrp2/host/lib/eth_common.h — 2

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
29          enum eth_flags {
30            EF_DONTWAIT	= 0x0001,
31          };
32          
33          typedef struct iovec eth_iovec;	// FIXME autoconf this
34          
35        }  // namespace usrp2
36        
37        
				

gnuradio/usrp2/host/lib/find.cc

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
33        
34        #define FIND_DEBUG 0
35        
36        
37        // FIXME move to gruel
38        
39        static struct timeval
40        time_duration_to_timeval(boost::posix_time::time_duration delta)
41        {
				

gnuradio/usrp2/host/lib/strtod_si.c

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
41          case 'M': r *= 1e6;   break;
42          case 'G': r *= 1e9;   break;
43          case 'T': r *= 1e12;  break;
44          default:
45            // ignore. FIXME could be more robust
46            break;
47          }
48        
49          *result = r;
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 1

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
102          {
103            if (payload_len_in_bytes < sizeof(u2_fixed_hdr_t))	// invalid format
104              return false;
105        
106            // FIXME deal with the fact that (p % 4) == 2
107            //assert((((uintptr_t) p) % 4) == 0);		// must be 4-byte aligned
108        
109            u2_fixed_hdr_t *fh = static_cast<u2_fixed_hdr_t *>(p);
110        
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 2

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
107            //assert((((uintptr_t) p) % 4) == 0);		// must be 4-byte aligned
108        
109            u2_fixed_hdr_t *fh = static_cast<u2_fixed_hdr_t *>(p);
110        
111            // FIXME unaligned loads!
112            md->word0 = u2p_word0(fh);
113            md->timestamp = u2p_timestamp(fh);
114        
115            // FIXME when we've got more info
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 3

Category FIXME
Committer eb
Commit ID bfe79d23738f24562dc7612049a90e8b20b53f79
111            // FIXME unaligned loads!
112            md->word0 = u2p_word0(fh);
113            md->timestamp = u2p_timestamp(fh);
114        
115            // FIXME when we've got more info
116            // md->start_of_burst = (md->word0 & XXX) != 0;
117            // md->end_of_burst =   (md->word0 & XXX) != 0;
118            // md->rx_overrun =     (md->word0 & XXX) != 0;
119            md->start_of_burst = 0;
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 4

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
254          {
255            p->ehdr.ethertype = htons(U2_ETHERTYPE);
256            parse_mac_addr(dst, &p->ehdr.dst);
257            memcpy(&p->ehdr.src, d_eth_buf->mac(), 6);
258            p->thdr.flags = 0; // FIXME transport header values?
259            p->thdr.seqno = d_tx_seqno++;
260            p->thdr.ack = 0;
261          }
262        
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 5

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
359              DEBUG_LOG(":");
360              // Receive available frames from ethernet buffer.  Handler will
361              // process control frames, enqueue data packets in channel
362              // rings, and signal blocked API threads
363              int res = d_eth_buf->rx_frames(this, 100); // FIXME magic timeout
364              if (res == eth_buffer::EB_ERROR)
365        	break;
366        
367              // Wait for user API thread(s) to process all enqueued packets.
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 6

Category Magic
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
359              DEBUG_LOG(":");
360              // Receive available frames from ethernet buffer.  Handler will
361              // process control frames, enqueue data packets in channel
362              // rings, and signal blocked API threads
363              int res = d_eth_buf->rx_frames(this, 100); // FIXME magic timeout
364              if (res == eth_buffer::EB_ERROR)
365        	break;
366        
367              // Wait for user API thread(s) to process all enqueued packets.
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 7

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
383          usrp2::impl::operator()(const void *base, size_t len)
384          {
385            u2_eth_samples_t *pkt = (u2_eth_samples_t *)base;
386        
387            // FIXME unaligned load!
388            int chan = u2p_chan(&pkt->hdrs.fixed);
389        
390            if (chan == CONTROL_CHAN) {	        // control packets
391              DEBUG_LOG("c");
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 8

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
407          {
408            // point to beginning of payload (subpackets)
409            unsigned char *p = (unsigned char *)base + sizeof(u2_eth_packet_t);
410        
411            // FIXME (p % 4) == 2.  Not good.  Must watch for unaligned loads.
412        
413            // FIXME iterate over payload, handling more than a single subpacket.
414        
415            int opcode = p[0];
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 9

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
409            unsigned char *p = (unsigned char *)base + sizeof(u2_eth_packet_t);
410        
411            // FIXME (p % 4) == 2.  Not good.  Must watch for unaligned loads.
412        
413            // FIXME iterate over payload, handling more than a single subpacket.
414        
415            int opcode = p[0];
416            unsigned int oplen = p[1];
417            unsigned int rid = p[2];
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 10

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
443            u2_eth_samples_t *pkt = (u2_eth_samples_t *)base;
444            d_num_rx_frames++;
445            d_num_rx_bytes += len;
446        
447            /* --- FIXME start of fake transport layer handler --- */
448        
449            if (d_rx_seqno != -1) {
450              int expected_seqno = (d_rx_seqno + 1) & 0xFF;
451              int seqno = pkt->hdrs.thdr.seqno;
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 11

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
464            d_rx_seqno = pkt->hdrs.thdr.seqno;
465        
466            /* --- end of fake transport layer handler --- */
467        
468            // FIXME unaligned load!
469            unsigned int chan = u2p_chan(&pkt->hdrs.fixed);
470        
471            {
472              gruel::scoped_lock l(d_channel_rings_mutex);
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 12

Category FIXME
Committer eb
Commit ID cfdc2e80d867777a405b3f1ba8ae6278b4f29f97
1145          {
1146            if (nitems == 0)
1147              return true;
1148        
1149            // FIXME can't deal with nitems < U2_MIN_SAMPLES (will be fixed in VRT)
1150            // FIXME need to check the MTU instead of assuming 1500 bytes
1151        
1152            // fragment as necessary then fire away
1153        
				

gnuradio/usrp2/host/lib/usrp2_impl.cc — 13

Category FIXME
Committer eb
Commit ID cfdc2e80d867777a405b3f1ba8ae6278b4f29f97
1146            if (nitems == 0)
1147              return true;
1148        
1149            // FIXME can't deal with nitems < U2_MIN_SAMPLES (will be fixed in VRT)
1150            // FIXME need to check the MTU instead of assuming 1500 bytes
1151        
1152            // fragment as necessary then fire away
1153        
1154            size_t nframes = (nitems + U2_MAX_SAMPLES - 1) / U2_MAX_SAMPLES;
				

gnuradio/usrp2/host/lib/usrp2_socket_opener.cc

Category FIXME
Committer jcorgan
Commit ID e0fcbaee124d3e8c4c11bdda662f88e082352058
111          int unix_domain_fd = strtol(argv[1], &endptr, 0);
112          if (*endptr != 0)
113            usage();
114        
115          // FIXME get client credentials from unix_domain_fd using SCM_CREDENTIALS
116        
117          // open the raw socket
118          int socket_fd = socket(PF_PACKET, SOCK_RAW, htons(0xBEEF));
119          if (socket_fd == -1){
				

gnuradio/volk/gen/make_c.py

Category TODO
Committer Nick Foster
Commit ID 8608fc3ae5f891eb5c11345a9b6102fdc8ae2393
17        
18        from volk_regexp import *
19        import string
20        
21        #ok todo list:
22        #put n_archs into the info struct so it doesn't have to be arch_defs[0].
23        
24        def make_c(machines, archs, functions, arched_arglist, my_arglist):
25            tempstring = r"""
				

gnuradio/volk/python/__init__.py

PyFlakes redefinition of unused '_RTLD_GLOBAL' from line 28
Committer Tom Rondeau
Commit ID 239144659b29c0a5ecd83a34e0e57387a1060ed7
27        try:
28            from dl import RTLD_GLOBAL as _RTLD_GLOBAL
29        except ImportError:
30            try:
31        	from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
32            except ImportError:
33        	pass
34            
35        if _RTLD_GLOBAL != 0:
				

gnuradio/volk/python/run_tests.in

Category FIXME
Committer Tom Rondeau
Commit ID 239144659b29c0a5ecd83a34e0e57387a1060ed7
17        # Where to look in the src tree for hand written python code
18        py=@abs_top_srcdir@/python
19        
20        # Where to look for installed GNU Radio python modules
21        # FIXME this is wrong on a distcheck.  We really need to ask gnuradio-core
22        # where it put its python files.
23        installed_pythondir=@pythondir@
24        installed_pyexecdir=@pyexecdir@
25        
				

gnuradio/volk/python/volk_square_ff.i

Category Magic
Committer Tom Rondeau
Commit ID 239144659b29c0a5ecd83a34e0e57387a1060ed7
22        /*
23         * First arg is the package prefix.
24         * Second arg is the name of the class minus the prefix.
25         *
26         * This does some behind-the-scenes magic so we can
27         * access gr_example_square_ff from python as howto.square_ff
28         */
29        GR_SWIG_BLOCK_MAGIC(volk,square_ff);
30