Commit graph

33 commits

Author SHA1 Message Date
Marti Bolivar c98111eb25 reset.py: Not every Unix is Linux.
Move the sysfs tests for Maple out of unix_get_maple_path() and into a
new linux_get_maple_path(). This prevents unnecessary probing for a
nonexistent /sys on e.g. OS X.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-08-22 12:48:37 -04:00
David Kiliani 74266c88d6 Improve Maple device detection in reset.py on Linux
Adds a function to lookup the USB vendor & product id from
the udev info in the sysfs tree. This removes invalid choices
and reduces user queries for the correct ttyACM device.

Signed-off-by: David Kiliani <mail@davidkiliani.de>
2012-08-22 16:24:32 +02:00
Marti Bolivar 82500d7813 reset.py fixups for OS X 10.8.
As discussed on this forum thread:

http://forums.leaflabs.com/topic.php?id=2451

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-08-20 17:06:34 -04:00
Marti Bolivar 4cd72bbd5c reset.py: Remove advisory for 64-bit Linux.
We test on that platform now, and it does work.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-07-20 17:00:15 -04:00
Marti Bolivar 8237222309 Add win-list-com-ports.py.
Utility for listing COM ports available on the system. Taken from Eli
Bendersky.

Signed-off-by: Marti Bolivar <mbolivar@lozenge.(none)>
2012-07-13 02:15:45 -04:00
Marti Bolivar 1c512b39ba reset.py: Use the real print function (requires Python 2.6+).
Use "from __future__ import print_function" so the recent py3k
compatibility patches to reset.py preserve the old output in Python 2.
This increases our minimum Python version to 2.6, but avoids ugly
output Python 2, where print statements with a tuple argument print
the tuple with parentheses etc.

Python 2.6 came out almost four years ago, and it's widely available:

- even on older Linux distros (e.g. Ubuntu 10.04 and Debian Squeeze
  have 2.6 default at time of writing),

- on OS X since 10.6,

- and Windows users will probably be installing from python.org
  anyway, so they've likely got a reasonably recent vintage.

Dropping 2.5 support thus doesn't seem likely to cause problems.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-28 12:02:48 -04:00
ventosus 8f4d11a2a1 Make the reset script work for both python2 and python3
Make the reset script work for both python2 and python3 by putting brackets around print statements and properly encoding the string sent with ser.write

Signed-off-by: Hanspeter Portner <agenthp@users.sf.net>
2012-06-28 11:42:20 +03:00
Marti Bolivar 0d8f8e058d Move OpenOCD stuff into contrib/.
This has gone unmaintained for long enough.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-07 03:40:11 -04:00
Marti Bolivar 9fe08b689a copy-to-ide: Remove references to libcs3_stm32_*_density.a.
These no longer exist.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-04-11 16:52:17 -04:00
Marti Bolivar ad153c3265 reset.py: Hackishly silence DeprecationWarning.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2011-10-07 14:39:07 -04:00
Marti Bolivar dcddff677c Add Windows support to DFU installation tools.
Tweak Makefile further for cs-make on Windows.  Add Windows support
to support/scripts/reset.py

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2011-09-26 15:50:12 -04:00
Marti Bolivar 0ae1bcb110 Update support/scripts/copy-to-ide.
Oh, copy-to-ide.  I long for your death.
2011-09-13 05:56:29 -04:00
Marti Bolivar f36a1d9849 Remove reST documentation, attendant updates.
The documentation covers topics not specifically relevant to libmaple,
so it doesn't make sense for it to be part of the libmaple source
distribution.

Delete the docs/ tree, and prepare libmaple for use with the new
leaflabs-docs repo, which will contain the docs from now on.

* README: update to reflect this change

* support/doxygen/Doxyfile: This is the old docs/Doxyfile

* Makefile: Add a doxygen target

* wirish/comm/HardwareSerial.h: fix reference to docs/.  The comment
  informing maintainers that the HardwareSerial interface is
  documented by hand refers to the docs/ tree, which no longer exists.
  Update it to refer to the separate leaflabs-docs repository.

* support/scripts/copy-to-ide: No longer build the documentation
2011-06-11 20:05:33 -04:00
Perry Hung 949927dbb0 openocd: Add missing file
Forgot openocd support script in
0e5eb75c80.
2011-05-27 06:55:10 -04:00
Marti Bolivar b20009eddd Hacks to get things to compile in the IDE. 2011-03-30 13:57:33 -04:00
Marti Bolivar 580f0b6965 Maple RET6 edition support 2011-03-16 17:56:54 -04:00
Marti Bolivar f06d137957 updating copy-to-ide script for more convenient IDE compilation 2011-01-13 00:10:06 -05:00
Marti Bolivar 8c4f52b5ab 0.0.9 release.
Made some changes to Servo to get it to compile from within the IDE.

Also fixed a lurking broken link in the docs.
2010-12-15 19:17:55 -05:00
Marti Bolivar 88cb23747e Finalized 0.0.9 documentation. 2010-12-15 16:16:31 -05:00
Perry Hung bdb85a4549 Improve reset reliability on OS X.
The USB reset scheme on OS X is unreliable. Adding a little bit of sleep
seems to make it much more reliable. This will probably do until we get
a chance to rewrite the USB stack and redo the whole auto-reset
scheme...
2010-09-17 01:48:52 -04:00
bnewbold 3b2cca3d37 changes to copy-to-ide for portable branch 2010-09-02 20:03:32 -04:00
Marti Bolivar 42fd9fdf2d Toolchain improvements
Updated Makefile to read the directory where libmaple is from the
environment variable LIBMAPLE_PATH, if it exists, defaulting to the
current working directory otherwise.

Updated reset.py to look around in /dev for the Maple serial port,
prompting the user if there appear to be multiple possibilities and
complaining if there aren't any.
2010-08-29 20:29:31 -04:00
Marti Bolivar b10ef4875f fix reset.py to work on OS X,; .gitignore leaves out ~ files; cleanup
support/make/build-rules.mk
2010-08-29 02:07:32 -04:00
bnewbold 36b1c5e1ea latest greatest udev rule 2010-07-09 21:14:27 -04:00
bnewbold 57662f99c4 osx reset script changes 2010-06-10 13:32:29 -04:00
bnewbold d349b13258 new reset scheme, compatbile with old 2010-06-10 13:07:53 -04:00
AJM be55939829 added a somewhat broken version of the reset magic number scheme.
current version gets stuck in the isr somewhere. not sure why or where. must debug.
2010-06-09 22:25:14 -04:00
AJM 8afc89be1d first approach at modding the reset scheme
now we reset from recv bytes. After receiving the DTR/RTS toggle the next byte in from usb is parsed as the program_delay. For now, this just delays the reset for a period to close the serial port gracefully. Later, this delay will perhaps inform the bootloader of how long to live for...
2010-06-09 15:52:29 -04:00
bnewbold 7824df10c4 fixed copy-to-ide linker stuff 2010-06-04 19:58:36 -04:00
bnewbold 3b11433f36 updated TODO, copy-to-ide 2010-06-04 19:05:10 -04:00
Perry Hung 1a908d88b8 fix botched merge from linker-refactor 2010-05-28 22:52:53 -04:00
Perry Hung 6434610803 Moved reset script to support directory
For kicks.
2010-05-28 05:24:21 -04:00
Perry Hung acf8b5476f udev rule symlink
new udev rule, adds a symlink to /dev/maple
2010-05-28 03:08:36 -04:00