Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
SOURCE=$1
DEST=$2
if [ ! -e "$SOURCE" -o ! -e "$DEST" ] ; then
echo "USAGE: dialogcp file dest"
exit 0
fi
diff --git a/Makefile b/Makefile
index b15036b..cef3392 100644
--- a/Makefile
+++ b/Makefile
@@ -335,15 +335,6 @@ endif
export KBUILD_MODULES KBUILD_BUILTIN
export KBUILD_CHECKSRC KBUILD_SRC KBUILD_EXTMOD
-ifneq ($(CC),)
-ifeq ($(shell $(CC) -v 2>&1 | grep -c "clang version"), 1)
From 53a73c65fca89f8fc830c1e210b2c9bb032fa816 Mon Sep 17 00:00:00 2001
From: Paul Cercueil <paul.cercueil@analog.com>
Date: Fri, 17 Apr 2015 15:27:45 +0200
Subject: [PATCH] OSC: Handle lines in INI that start with a "debug" token
Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
---
osc.c | 26 ++++++++++++++++++++++----
osc.h | 2 +-
2 files changed, 23 insertions(+), 5 deletions(-)
@pcercuei
pcercuei / gist:ba24928665588c9ad725
Created July 2, 2015 09:29
IIO oscilloscope build fails
CLEAN .
CC oscmain.o
GEN oscicon.o
CC osc.o
CC oscplot.o
CC datatypes.o
CC int_fft.o
CC iio_widget.o
CC fru.o
CC dialogs.o
From 745887e8484999b89d3983e89e0d53444485736a Mon Sep 17 00:00:00 2001
From: Paul Cercueil <paul.cercueil@analog.com>
Date: Wed, 16 Dec 2015 14:51:05 +0100
Subject: [PATCH] Add support for channels sharing the same index
Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
---
buffer.c | 8 +++++++-
device.c | 2 ++
2 files changed, 9 insertions(+), 1 deletion(-)
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.8.git'?>
<flow_graph>
<timestamp>Wed Feb 24 11:50:31 2016</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
#include <iio.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
static void scan_cb(const char *uri, const char *description,
bool connected, void *user_data)
{
bool *found = user_data;
//============================================================================
// Name : test_test.cpp
// Author : Marcin
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <cstdio>
#include <gnuradio/top_block.h>
#include <gnuradio/analog/sig_source_f.h>
#include <gnuradio/blocks/stream_to_tagged_stream.h>
#include <gnuradio/blocks/tag_debug.h>
#include <gnuradio/blocks/throttle.h>
#define SAMP_RATE 1e6
diff --git a/bindings/matlab/iio-wrapper.h b/bindings/matlab/iio-wrapper.h
index 69a5747..6b5970c 100644
--- a/bindings/matlab/iio-wrapper.h
+++ b/bindings/matlab/iio-wrapper.h
@@ -2,15 +2,7 @@
#define MATLAB_LOADLIBRARY
#include <iio.h>
-#ifdef _WIN32
-# ifdef LIBIIO_EXPORTS