Exemple #1
0
void init_radio() {
  char *res;
  char wisdom_directory[1024];
  char wisdom_file[1024];

  fprintf(stderr,"init radioberry \n");

  fprintf(stderr,"checking wisdom file exists \n");
  res=getcwd(wisdom_directory, sizeof(wisdom_directory));
  strcpy(&wisdom_directory[strlen(wisdom_directory)],"/");
  strcpy(wisdom_file,wisdom_directory);
  strcpy(&wisdom_file[strlen(wisdom_file)],"wdspWisdom");
  
   if(access(wisdom_file,F_OK)<0) {
		fprintf(stderr,"creating wsdp (fftw3) wisdom files..........\n");
		WDSPwisdom (wisdom_directory);
	} else fprintf(stderr,"wisdom files already exist \n");

	createReceiveChannel();
	createRXAnalyzer();	
	initReceiveChannel();
}
Exemple #2
0
static void* wisdom_thread(void *arg) {
  splash_status("Creating FFTW Wisdom file ...");
  WDSPwisdom ((char *)arg);
  sem_post(&wisdom_sem);
}