Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Open sourcing Intel Arduino Tools #8

Merged
merged 7 commits into from
Oct 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions clupload/cluploadArduino101_osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/sh
echo "starting download script"
echo "Args to shell:" $*
#
# ARG 1: Path to lsz executable.
# ARG 2: Elf File to download
# ARG 3: TTY port to use.
#
#path may contain \ need to change all to /
path_to_exe=$1
fixed_path=${path_to_exe//\\/\/}
tty_port_id=$3

#Download the file.
host_file_name=$2
bin_file_name=${host_file_name/elf/bin}
echo "BIN FILE" $bin_file_name

#DFU=DYNLD_LIBRARY_PATH=$fixed_path $fixed_path/dfu-util
DYLD_LIBRARY_PATH=$fixed_path
DFU="$fixed_path/dfu-util -d8087:0ABA"

echo "wating for device... "
COUNTER=0
f=`DYLD_LIBRARY_PATH=$fixed_path $DFU -l | grep sensor_core | cut -f 1 -d ' '`
while [ "x$f" = "x" ] && [ $COUNTER -lt 10 ]
do
let COUNTER=COUNTER+1
sleep 1
echo $DFU
f=`DYLD_LIBRARY_PATH=$fixed_path $DFU -l | grep sensor_core | cut -f 1 -d ' '`
done

if [ "x$f" != "x" ] ; then
echo "Using dfu-util to send " $bin_file_name
DYLD_LIBRARY_PATH=$fixed_path $DFU -D $bin_file_name -v --alt 7 -R
else
echo "ERROR: Timed out waiting for Arduino 101."
fi
Empty file modified clupload/cluploadEdison_osx.sh
100644 → 100755
Empty file.
Empty file modified clupload/cluploadGalileo_osx.sh
100644 → 100755
Empty file.
340 changes: 340 additions & 0 deletions x86/bin/LICENSE.dfu-util

Large diffs are not rendered by default.

504 changes: 504 additions & 0 deletions x86/bin/LICENSE.libusb

Large diffs are not rendered by default.

Binary file added x86/bin/dfu-prefix
Binary file not shown.
Binary file added x86/bin/dfu-suffix
Binary file not shown.
Binary file added x86/bin/dfu-util
Binary file not shown.
Binary file added x86/bin/libusb-1.0.0.dylib
Binary file not shown.
Binary file added x86/bin/libusb-1.0.a
Binary file not shown.
Binary file added x86/bin/libusb-1.0.dylib
Binary file not shown.
41 changes: 41 additions & 0 deletions x86/bin/libusb-1.0.la
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# libusb-1.0.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.2
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libusb-1.0.0.dylib'

# Names of this library.
library_names='libusb-1.0.0.dylib libusb-1.0.dylib'

# The name of the static archive.
old_library='libusb-1.0.a'

# Linker flags that can not go in dependency_libs.
inherited_linker_flags=' '

# Libraries that this one depends upon.
dependency_libs=' -lobjc'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for libusb-1.0.
current=1
age=1
revision=0

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/tmp/dfu-util-macos/lib'
11 changes: 11 additions & 0 deletions x86/bin/pkgconfig/libusb-1.0.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=/tmp/dfu-util-macos
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libusb-1.0
Description: C API for USB device access from Linux, Mac OS X, Windows and OpenBSD/NetBSD userspace
Version: 1.0.19
Libs: -L${libdir} -lusb-1.0
Libs.private: -lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation
Cflags: -I${includedir}/libusb-1.0