Daniel Beer
e4a189f177
Add --embedded option and embedded output mode.
2012-10-09 15:41:06 +13:00
Daniel Beer
61fdfd22ff
Better threading functions.
...
Change prefix to "thread_" and add functions for thread creation and
condition variables.
2012-10-09 15:28:49 +13:00
Daniel Beer
c7e05fd9fc
Rewrite output filtering.
...
The old code was messy and difficult to understand. This implementation
better separates ANSI parsing from output and is easier to modify.
2012-10-09 12:01:00 +13:00
Daniel Beer
41cf65d880
Move namelist function to output_util.
2012-10-09 10:03:10 +13:00
Daniel Beer
18cf2a561f
Separate and clean up break handling.
...
Ctrl+C handling is done in ctrlc.c, and a break condition now persists
until the interactive reader begins to process the next command. The
condition is cleared by calling ctrlc_clear().
2012-10-09 09:55:48 +13:00
Daniel Beer
6455164138
MinGW: treat Ctrl+Break as Ctrl+C.
2012-10-04 14:50:25 +12:00
Daniel Beer
e4f582b0d7
Fix Ctrl+C handling under Cygwin.
2012-10-04 14:45:57 +12:00
Daniel Beer
8a70a931bb
Fixed bug in power buffer allocation.
2012-10-04 14:39:21 +12:00
Daniel Beer
56ffd537b6
Fixed long long formatting for MinGW.
...
MinGW uses %I64d instead of %lld.
2012-10-04 14:33:05 +12:00
Daniel Beer
ca6a30b2e7
dis: power consumption annotations.
2012-10-04 12:47:25 +13:00
Daniel Beer
cc5aed4c6d
Power history support.
...
This adds a "power" command which can be used to dump power history
samples gathered by the device driver.
2012-10-03 16:29:55 +13:00
Daniel Beer
1de9e43187
Better Olimex compatibility.
...
Timeouts have been increased to 30 seconds. Reset is not sent until
after enabling power.
2012-09-28 06:37:32 +12:00
Daniel Beer
498ee0ff83
Miscellaneous documentation updates.
...
Clarify behaviour of -d for tilib driver, correct names of Olimex
products.
2012-09-18 11:27:35 +12:00
Daniel Beer
f9d271cd64
tilib: fix calling convention for Cygwin.
...
WINAPI wasn't getting defined with gcc-3.
2012-08-23 14:27:27 +12:00
Daniel Beer
ff42788071
printc: add printf attribute.
2012-08-17 07:37:56 +12:00
Daniel Beer
29dfb4da84
Stop using usleep().
...
Use nanosleep() on Unix-like systems, and Sleep() on Windows.
2012-08-14 15:51:22 +12:00
Daniel Beer
65d15ef680
Added "verify" command.
2012-07-18 14:03:55 +12:00
Ingo van Lil
3cc5f47304
Support for demangling of C++ symbol names.
2012-07-16 10:02:06 +12:00
Peter A. Bigot
fc336e78d0
Correct source bits shift offset for non-register extension word
2012-06-28 09:49:42 +12:00
Peter A. Bigot
19dfb6b64c
Correct pushm.a count/register adjustment
...
The adjustment was applied to the register instead of the count, causing
0x144b to decode as "PUSHM.A #4 , R12".
2012-06-28 09:49:42 +12:00
Peter A. Bigot
25f6df0d0f
fix disassembly of 20-bit calla operands
2012-06-05 12:01:53 +12:00
Peter A. Bigot
8fe14ca1da
Correct counts in disassembled rxxm/pushm/popm
2012-06-05 12:01:50 +12:00
Daniel Beer
31e8dabd09
Fix delay_s for Windows.
2012-05-10 11:41:00 +12:00
Daniel Beer
6fd161faa7
Add delay_s() for portable sleep() substitute.
2012-05-10 10:00:12 +12:00
Daniel Beer
a914bc732d
Add support for building on Cygwin.
...
The symbol __Windows__ is defined when building a native (non-Cygwin)
binary.
2012-04-25 11:02:22 +12:00
Daniel Beer
94abe88bb1
Non-standard baud rates for FreeBSD, NetBSD.
...
This appears to work the same as it does for OpenBSD.
2012-03-03 09:57:48 +13:00
Daniel Beer
9cbe59d3e8
sport: add support for non-standard baud rates on OpenBSD.
2012-03-02 14:29:47 +13:00
Jolan
a7a71b993f
Flush output buffer at each line
2012-03-02 11:20:56 -08:00
Daniel Beer
cf5b7f3399
Handle non-standard baud rates in sport_open().
...
This should allow the use of the Olimex MSP430-JTAG-ISO on Windows (and
other platforms, if handling is implemented).
2012-02-29 16:59:41 +13:00
Daniel Beer
68f968a637
sport: accept baud rates as a plain integer instead of a B* constant.
...
Integer baud rates are converted to B* constants in the implementation.
2012-02-29 16:29:00 +13:00
Wayne Uroda
ceaad88279
Added missing define for B115200 on WIN32 platform
2012-01-04 15:24:51 +13:00
Daniel Beer
f4de94bd46
Show summary after successful programming.
...
Also, treat failure to reset afterwards as a warning, rather than a
fatal error.
2011-12-27 12:58:28 +13:00
Tamas TEVESZ
e014e4c6d5
Modernise decl styles
2011-11-16 08:42:45 +13:00
Tamas TEVESZ
d98d990752
Kill unused variables
...
Mark those that are unused but can't be killed accordingly.
2011-11-15 09:26:35 +13:00
Tamas TEVESZ
b77a482d7d
Kill unneeded include.
2011-11-14 11:47:14 +13:00
Tamas TEVESZ
2fe1580843
Kill "unsigned op 0" comparisons
...
- simio/simio.c, simio/simio_gpio.c, simio_timer.c, simio_tracer.c, util/dis.c
Kill unused variables
- util/expr.c, util/output_util.c
2011-11-13 16:46:33 +13:00
Daniel Beer
8e4df67ff5
dynload: fix Win32 build warning.
2011-10-18 00:42:01 +13:00
Daniel Beer
69a5593fe4
Added portable dynamic loader interface.
...
Not yet tested on Win32.
2011-10-14 12:12:14 +13:00
Daniel Beer
57999b3790
Added portable mutex wrapper.
2011-10-14 12:10:48 +13:00
Daniel Beer
18e3fbac74
Display section names when programming.
...
The binfile extraction and programming code is now aware of section
names when dealing with ELF32 files. The names are displayed when
programming, and chunks in different sections aren't combined, even if
they're contiguous.
2011-10-12 13:52:56 +13:00
Daniel Beer
2528e2a752
expand_tilde: use strdup() instead of malloc()/strcpy().
...
The OpenBSD linker complains about the reference to strcpy(). Pointed
out by Jasper Lievisse Adriaanse <jasper@openbsd.org>.
2011-10-04 10:28:24 +13:00
Daniel Beer
b3ffff5945
win32: protect access to ctrlc_flag with critical section.
...
On Windows, console handlers are run in a separate thread, without
actually interrupting the main thread.
2011-09-19 04:33:58 +12:00
Daniel Beer
a90a3ae86a
sport: allow serial reads to be interrupted with Ctrl+C.
2011-09-19 09:51:19 +12:00
Daniel Beer
7de9854661
Implemented TI3410 transport.
...
This allows direct libusb access to FET430UIF and eZ430 devices. It
doesn't yet implement the initial firmware download required to get
the 3410 working.
2011-09-16 14:40:40 +12:00
Daniel Beer
d4fee98904
Restructuring: moved low-level utility code to util/
2011-09-14 16:19:30 +12:00