Werner Almesberger
f89ce523e8
atusb/fw/usb/usb.c (handle_setup): skip non-interface descriptors when processing SET_INTERFACE
2015-04-25 23:54:02 -03:00
Werner Almesberger
428390047f
fw/atusb/ (dfu_flash_ops): make const
2015-04-21 08:11:50 -03:00
Werner Almesberger
4b6f390830
atusb/fw/usb/usb.c (handle_setup): also pass interface-level GET_DESCRIPTOR to get_descriptor
2015-04-12 04:16:23 -03:00
Werner Almesberger
f7e684bbde
atusb/fw/usb/usb.h: add endpoint types
2015-04-12 04:15:04 -03:00
Werner Almesberger
a6c639bbb3
atusb/fw/usb/usb.h: add a few common class codes
2015-04-11 14:53:52 -03:00
Werner Almesberger
88e2bde7d6
atusb/fw/usb/: fix incorrect code point for USB_CLASS_PER_INTERFACE
...
The code of USB_CLASS_PER_INTERFACE is 0 and not 0xfe.
USB_CLASS_APP_SPEC is 0xfe. Also corrected the use in dfu.c
2015-04-11 14:49:41 -03:00
Werner Almesberger
b51d442c31
atusb/fw/usb/dfu.c (config_descriptor): correct alt settings off-by-one error
2014-10-23 02:06:55 -03:00
Werner Almesberger
f1e689eaa6
atusb/fw/: support alternative interface names with DFU
2014-03-25 20:54:09 -03:00
Werner Almesberger
8f2f13c30a
atusb/fw/: DFU: support multiple sets of flash operations; support multiple alt settings
2014-03-24 17:18:02 -03:00
Werner Almesberger
8b0859486e
atusb/fw/usb/: change a few more uses of ../board.h to board.h
2014-02-24 17:59:49 -03:00
Werner Almesberger
71ad8dae76
makefiles/Makefile.kicad (GERBERS): auto-choose between old and new file names
...
Recent versions of KiCAD use names like F_Cu.gtl, B_Mask.gbs, etc., while
older versions used Front.gtl, Mask_Back.gbs
2013-11-29 09:18:33 -03:00
Werner Almesberger
a80ba86476
atusb/fw/usb/usb.h: define PID types (LS/FS)
2013-11-17 02:37:28 -03:00
Werner Almesberger
c5f9cc1259
atusb/fw/: let include path find board.h instead of using ../board.h
2013-10-28 11:17:48 -03:00
Werner Almesberger
4690466a53
tools/lib/atusb-common.c (atusb_interrupt_wait): fix embarrassing build failure
2013-09-28 14:44:00 -03:00
Werner Almesberger
bf067b3e73
atusb/fw/mac.c (RX_BUFS): increase buffer size from 2 to 3 frames
2013-07-30 20:38:13 -03:00
Werner Almesberger
08f4ac98fa
Merge branch 'buffer-frames'
2013-07-30 20:37:12 -03:00
Werner Almesberger
873f80cb4d
tools/atrf-txrx/atrf-txrx.c: option -q becomes "quick" and uses aggressive polling
...
This allows us to capture frames at full speed speed.
2013-07-30 20:16:02 -03:00
Werner Almesberger
07b1da29ec
tools/lib/: aggressive polling for wait_for_interrupt, if timeout_ms = -1
2013-07-30 20:16:02 -03:00
Werner Almesberger
7fd9044d94
atusb/fw/: add SPI block reception
...
This decreases the retrieval time for a frame of 102 bytes from
660 us to 384 us, corresponding to a speed change from about
1.26 Mbps to 2.17 Mbps (102 bytes plus 2 bytes overhead).
2013-07-30 19:52:54 -03:00
Werner Almesberger
d1b65cb058
tools/atrf-txrx/atrf-txrx.c: new option -q for quiet capture
2013-07-30 13:48:55 -03:00
Werner Almesberger
0706773e38
atusb/fw/Makefile: improve size reporting (show segment sizes)
2013-07-24 17:19:55 -03:00
Werner Almesberger
a9d502850a
atusb/fw/Makefile: improve size reporting (show segment sizes)
2013-07-24 17:18:33 -03:00
Werner Almesberger
998ac7e5c6
atusb/fw/mac.c (next_buf): dedicated function for incrementing buffer indices
2013-07-24 16:21:38 -03:00
Werner Almesberger
b73d5fc1af
atusb/fw/mac.c: remove queued_rx; buffer frames in the MCU instead
...
queued_rx held a frame in the transceiver's receive buffer until we could
transfer it. This may cause frame loss if a new reception begins.
We now retrieve frames from the transceiver immediately and buffer them
in the MCU.
2013-07-24 07:57:35 -03:00
Werner Almesberger
6416fa8d0b
atusb/fw/mac.c: add section titles
2013-07-23 12:50:42 -03:00
Werner Almesberger
172208e451
tools/atrf-txrx/atrf-txrx.c: use -x also on reception, to output message in hex
2013-06-23 02:03:26 -03:00
Werner Almesberger
a523e8d645
tools/atrf-txrx/atrf-txrx.c: new option -x to interpret messages as hex strings
2013-06-23 01:58:38 -03:00
Werner Almesberger
bb6acf15bc
tools/atrf-txrx/atrf-txrx.c (usage): separate all sections by blank line
...
The "PER" and "constant wave" sections followed their predecessors
without a blank line.
2013-06-23 01:29:56 -03:00
Werner Almesberger
570982cc48
web/index.html: update Web page (including shop change from Tuxbrain to Pulster)
...
- remove Tuxbrain shop
- add Pulster shop
- update kernel code location (now on github)
- add links to factory file packages
- clarify atusb code sizes
2013-05-07 21:25:24 -03:00
Werner Almesberger
54630e0697
atben/misc/mkpatches: script to generate mails for the ATBEN kernel patches
2013-04-29 21:12:55 -03:00
Werner Almesberger
ec6c09dd9d
atben-spi-performance.txt: clean up and describe role of referenced code
2013-04-29 20:05:54 -03:00
Werner Almesberger
ff9c7a8ce4
atben/misc/atben-spi-performance.txt: SPI performance comparison
...
This was earlier posted to the mailing lists. Updated the URLs.
2013-04-29 19:55:25 -03:00
Werner Almesberger
367c1abb0e
atusb/fw/: echo back TX ACK sequence number; don't panic if driver times out TX
2013-04-01 22:04:05 -03:00
Werner Almesberger
9b2696b848
atusb/fw/usb/: enable MCU reset on USB bus reset after config selection
...
This way the host can reset the MCU if it's hung (for example, in the
panic loop) and we don't need to unplug-replug.
2013-04-01 15:54:44 -03:00
Werner Almesberger
65722d417a
atusb/fw/mac.c: queue frame reception if USB is busy
...
This way we we make sure we retrieve the frame and thus release dynamic
buffer protection (if enabled).
2013-04-01 15:17:37 -03:00
Werner Almesberger
ad70d7c129
include/atusb/atusb.h: salvage cute explanation of 0x1540 from usb-ids.h
2013-04-01 14:43:36 -03:00
Werner Almesberger
dab0d183a2
atusb/fw/include/atusb/usb-ids.h: remove (and adapt former users)
2013-04-01 14:40:14 -03:00
Werner Almesberger
d76bdf6a82
atusb/fw/mac.c (handle_irq): move frame reception to separate function
2013-04-01 14:29:57 -03:00
Werner Almesberger
60ee82ba93
atusb/fw/mac.c (handle_irq): only handle TRX_END; never fall back to seq ints
2013-04-01 12:48:30 -03:00
Werner Almesberger
3e749c3140
fw/include/atusb/ep0.h: protect also USB_DIR_IN and USB_DIR_OUT
...
They're currently not defined by libusb, but since the kernel has them,
they may eventually also end up in user space.
2013-04-01 11:23:48 -03:00
Werner Almesberger
16dd767857
fw/include/atusb/ep0.h (USB_TYPE_VENDOR): avoid conflict with /usr/include/usb.h
2013-04-01 05:59:18 -03:00
Werner Almesberger
2d43876e4a
atusb/fw/board.h: de-duplicate USB ID definitions (now originate from atusb.h)
2013-04-01 05:54:58 -03:00
Werner Almesberger
12d3401f64
fw/include/atusb/: move shared protocol definitions from ep0.h to atusb.h
2013-04-01 05:47:53 -03:00
Werner Almesberger
647f3c0375
atusb/fw/: get rid of some more "int"s
...
No size change this time.
2013-03-29 19:19:49 -03:00
Werner Almesberger
a8db238cbb
atusb/fw/: convert functions returning "int" to "bool"
...
Firmware size is down from 5612 to 3590 bytes. Wow !
2013-03-29 19:14:11 -03:00
Werner Almesberger
c9ab070ffd
atusb/fw/mac.c (do_tx): add timeout for transition to TRX_STATUS_RX_[AACK_]ON
2013-03-29 18:50:54 -03:00
Werner Almesberger
cd566129ec
tools/lib/misctxrx.c (set_power_step): set SPI_CMD_MODE to PHY_RSSI
...
This way, we don't interfere with "hard MAC" using it for CRC checking.
2013-03-29 17:03:31 -03:00
Werner Almesberger
211280356d
atusb/fw/mac.c: check CRC and auto-discard bad frames
2013-03-29 17:02:24 -03:00
Werner Almesberger
5fc9575e4e
atusb/fw/mac.c (do_tx): pulse SLP_TR instead of sending TRX_CMD_TX_START
2013-03-29 15:03:03 -03:00
Werner Almesberger
1de233a7c7
tools/: fix artf_at86rf23[01] (should be atrf...) typo
2013-03-28 14:24:28 -03:00