Gareth McMullin
8d190cdbb9
Renamed platforms to 'native' and 'libftdi' and moved into 'platforms' dir.
2012-06-10 16:40:07 +12:00
Gareth McMullin
6030ff6f26
Separated USB UART interface into separate file.
2012-05-26 22:53:29 +12:00
Gareth McMullin
3dcdc5b26f
Improve USB UART handling. Fix interrupt priorities.
2012-05-26 20:57:47 +12:00
Gareth McMullin
e533812c32
Use our new USB VID/PID. Thanks OpenMoko, Inc.
...
DFU now uses the same short serial number as application.
2012-05-26 15:20:23 +12:00
Gareth McMullin
40bb74cc81
Detect hardware version. Disable UART on mini h/w under debug.
2012-05-23 20:25:45 +12:00
Gareth McMullin
86626085d8
Fixed TRACESWO capture.
...
'mon traceswo' reports serial number and interface/endpoint no for libusb.
Interrupt priorities set so TIM3 for trace is highest priority.
Increased trace endpoint packet size to 64.
Buffer many trace packets into a single usb packet. Stall on overflow.
Fixed stop bit detection in TIM3 interrupt handler.
2012-04-22 12:27:18 +12:00
Gareth McMullin
21ecbd23ea
Added capture of SWO, passed to host over a vendor specific USB interface.
2012-04-18 19:15:44 +12:00
Gareth McMullin
c0493ee0e8
Monitor USB VBUS to control D+ pull-up resistor.
2012-03-24 19:25:16 +13:00
Gareth McMullin
f5d8bda6e6
Support DFU GET_STATUS request when in application mode.
2012-01-19 21:51:42 +13:00
Piotr Esden-Tempski
a7f14e3cc0
Changed the unique id generation to be 8 characters long. This is so Mac OS X uses the the unique id for naming the device file instead of the location.
2012-01-16 22:54:37 -08:00
Gareth McMullin
53ebc6770e
Configure CDC ACM packet size in a #define for easy access.
...
This doesn't work for >64 bytes. Suspect bug in libopencm3.
2012-01-09 23:15:10 +13:00
Gareth McMullin
9663274572
Advertise that we accept SET_LINE_CODING and ignore it on GDB interface.
...
This fixes SetCommState failure on Windows.
2012-01-07 18:46:17 +13:00
Gareth McMullin
edaae3957a
Use USB Interface Association Descriptors.
...
This allows windows to see it as a composite device and load different
driver for each interface.
2011-12-29 12:49:47 +13:00
Gareth McMullin
c5b4022ed8
Default to DTR=1 if no request received.
...
This is needed on Mac where opening the port doesn't assert DTR.
Thanks to Mike Smith.
2011-12-07 20:57:10 +13:00
Gareth McMullin
33e1352c34
Merge branch 'master' of github.com:gsmcmullin/blackmagic
2011-10-30 13:43:33 +13:00
Gareth McMullin
d85a399559
Updated to build with new libopenstm32 with f1/f2 split.
2011-10-30 13:42:27 +13:00
Gareth McMullin
adabaa7592
Halt and detach target if host releases DTR.
...
Port reads 0x04 (EOF) when DTR is released. GDB loop detaches from
target if EOF is read.
Fixes bug 3307433.
2011-07-02 20:47:39 +12:00
Gareth McMullin
b36242d021
CDC-ACM now asserts DCD to allow opening tty devs in BSD/MacOS.
...
Cleaned up compiler warnings.
2011-02-17 15:06:27 +13:00
Gareth McMullin
f08914ec1f
Fixed DFU_DETACH request handling when usb-uart is excluded.
2011-02-16 09:04:06 +13:00
Gareth McMullin
f9a7cd9c6e
Fixed interface number of DFU when UART isn't included.
2011-02-12 22:24:37 +13:00
Gareth McMullin
df5c3d06d5
Added extra ACM interface for serial emulation using USART1.
2011-02-12 22:06:53 +13:00
Gareth McMullin
406617a2a4
Import of working source tree.
2011-02-04 20:23:52 +13:00