1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-27 04:42:25 +02:00
Commit Graph

1070 Commits

Author SHA1 Message Date
Werner Almesberger
1d069a1019 README: replace obsolete hardware description with the hardware history 2013-02-04 19:33:17 -03:00
Werner Almesberger
ee870b57d0 prod/doc/test.hmac: fix unterminated IMG tag 2013-01-30 10:22:40 -03:00
Werner Almesberger
3800125a27 prod/doc/Makefile: add missing dependencies on at{ben,usb}-{front,back}.png 2013-01-30 10:19:43 -03:00
Werner Almesberger
5733b60721 prod/doc/figfilt: script to filter portions of a FIG file based on keys in comments
This file is part of the production documentation build process but was
never committed.
2013-01-30 10:13:14 -03:00
Werner Almesberger
63a6ad22bf ants/meander.fpd: comment out zero-sized tail (hack)
Note that this is just a stopgap measure. For a correct solution, use
kicad-libs/modules/meander-2450MHz.fpd
2012-11-11 09:42:54 -03:00
Werner Almesberger
269b78f23f makefiles/Makefile.kicad: use variable TOP instead of hard-coding ../../ path
This allows inclusion also in places that don't follow the <project>/dir/
convention. Note that we still need a single directory under which all Qi
project directories are located.
2012-11-11 09:30:25 -03:00
Werner Almesberger
155886ddcb tools/lib/atusb-common.c (atusb_tx): fix compiler warning
Tried to return value in void function.
2012-11-11 09:30:21 -03:00
Werner Almesberger
42f1a78807 atben/atben.sch, atusb/atrf.sch: correct and clarify ESR of X1 (reported by Wolfgang Spraul)
The maximum ESR is 100 Ohm, not 80 Ohm. Also changes "=" to "<=" to
make it clear that this is a maximum value.
2012-05-29 02:48:31 -03:00
Werner Almesberger
65f1454d87 atusb/usb.sch: bring back USB_A_PLUG (was lost for an unknown reason)
The symbol/component name got changed to USB_A_PLUG~ and the component
was no longer found. Re-inserting it seem to have solved that problem.
2012-05-23 23:49:31 -03:00
Werner Almesberger
9ae2eb877b makefiles/Makefile.kicad: updated for "new" command-line option names 2012-04-01 19:26:02 -03:00
Werner Almesberger
762d33cf5d Merge branch 'master' of projects.qi-hardware.com:ben-wpan 2012-01-27 14:13:48 -03:00
Werner Almesberger
a642bfa5d5 web/Makefile: also upload zoom.html (reported by Peter Zotov) 2012-01-27 14:12:26 -03:00
Xiangfu
ac76df901d INSTALL-Ben: dirtpan also included in upstream. small cleanup 2011-10-25 15:51:16 +08:00
Xiangfu
0e351780cb INSTALL-Ben: libnl-1 include in upstream packages 2011-10-25 15:37:43 +08:00
Xiangfu
d7bd1b97b5 INSTALL-PC: fix typo, install libnl-dev for zigbee 2011-10-25 14:50:44 +08:00
Xiangfu
153b9e3af8 INSTALL-Ben: update 2011-10-25 14:26:04 +08:00
Werner Almesberger
89fdfc94e4 Moved sot-323.fpd from ben-wpan to kicad-libs (deletion) 2011-08-14 04:51:33 -03:00
Werner Almesberger
2b21cd2fe1 cntr/cntr.pro: removed no longer used footprint sot-323 2011-08-14 04:51:33 -03:00
Werner Almesberger
f06306f4f8 Moved mini_usb_b and usb_a_plug symbol from ben-wpan to kicad-libs (deletions) 2011-08-14 04:43:13 -03:00
Werner Almesberger
b401a53bf5 Updated profiles (atusb, atusb-sil, cntr) for move of USB symbols 2011-08-14 04:43:12 -03:00
Werner Almesberger
0f26c57240 Moved mini-usb.fpd and usb_a_plug_smt.fpd from ben-wpan to kicad-libs (deletion) 2011-08-14 03:09:00 -03:00
Werner Almesberger
c699a921c1 Updated profiles (atusb, atusb-sil, cntr) for move of usb_a_plug_smt.fpd 2011-08-14 03:09:00 -03:00
Werner Almesberger
42bf0f5e52 Moved atmega8u2, c8051f320, c8051f326 symbol from ben-wpan to kicad-libs (deletion) 2011-08-14 01:25:53 -03:00
Werner Almesberger
e87ad08097 Updated profiles (atusb, atusb-sil, cntr) for move of MCU symbols 2011-08-14 01:25:53 -03:00
Werner Almesberger
71aacb1cb7 BOOKSHELF (AN068, pcbcng): "Adapting TI LPRF Reference Designs for Layer Stacking" 2011-08-14 00:47:17 -03:00
Werner Almesberger
f21fdf62c4 Moved qfn.fpd and qfp.fpd from ben-wpan to kicad-libs (deletion) 2011-08-14 00:47:17 -03:00
Werner Almesberger
7a8ca1b50b Updated profiles (atben, atusb, atusb-sil, cntr) for move of qfn.fpd and qfp.fpd 2011-08-14 00:47:17 -03:00
Werner Almesberger
7605d8c9c8 tools/atrf-txrx/atrf-txrx.c (main): removed endless loop in mode_hmac
That was for debugging. Oops.
2011-07-13 15:34:28 -03:00
Werner Almesberger
8f8c4140ac tools/lib/atusb-common.c (atusb_tx): wait for and receive the TX completion 2011-07-13 15:03:28 -03:00
Werner Almesberger
eeeb5599f8 atusb/fw/mac.c: reserved code 0 and added notification of TX completion
- mac.c (queued_tx_ack, rx_done, handle_irq): on TX completion, send a
  a zero byte on EP 1
- mac.c (handle_irq): don't receive zero-sized frames (they're
  malformed anyway), so that size zero can be used to signal TX
  completion
2011-07-13 14:22:49 -03:00
Werner Almesberger
23c24f65aa Merge branch 'master' of projects.qi-hardware.com:ben-wpan
Conflicts:
	atusb/fw/board_app.c
2011-07-12 17:50:48 -03:00
Werner Almesberger
da7803a746 atusb/fw/: some small "HardMAC" fixes 2011-07-12 17:48:17 -03:00
Werner Almesberger
5621282eb8 tools/atrf-txrx/: added option -H to enter simple HardMAC mode
- atrf-txrx.c (receive_hmac, transmit_hmac): HardMAC send/receive
  functions
- atrf-txrx.c (usage, main): new option -H to use HardMAC
2011-07-12 17:46:24 -03:00
Werner Almesberger
49d6067e88 tools/lib/: added HardMAC functions to the atusb drivers 2011-07-12 17:46:11 -03:00
Werner Almesberger
862b554e2d libatrf: added HardMAC functions
This function set isn't really usable for real communication. Its main
purpose is to help with testing the firmware.

- tools/lib/driver.h (struct atrf_driver): added driver functions for
  HardMAC access
- tools/include/atrf.h (atrf_rx_mode, atrf_rx, atrf_tx),
  tools/lib/atrf.c: functions to enable/disable HardMAC mode and to
  send/receive frames
2011-07-12 17:45:59 -03:00
Werner Almesberger
c1071309d8 atusb/fw/: added "HardMAC" support (not yet using the TRX's MAC)
- include/atusb/ep0.h (enum atspi_requests), ep0.c (my_setup): added
  new "HardMAC" requests ATUSB_RX_MODE and ATUSB_TX
- mac.h, mac.c: basic "HardMAC" procedure
- board_app.c (INT0_vect): call MAC-specific interrupt handler if
  provided
- Makefile (OBJS): added mac.o
2011-07-12 12:26:07 -03:00
Werner Almesberger
e700b81642 atusb/fw/Makefile (bindist): new target to upload and describe atusb.bin 2011-07-12 12:26:07 -03:00
Werner Almesberger
7cae01bc0e atusb/fw/board_app.c (INT0_vect): limit interrupt serials to 0x80-0xff
This leaves the range 0x00-0x7f for other uses.
2011-07-12 12:25:53 -03:00
Werner Almesberger
1ad8683858 atusb/fw/Makefile (bindist): new target to upload and describe atusb.bin 2011-07-12 05:39:49 -03:00
Werner Almesberger
c47f52d6ca atusb/fw/board_app.c (INT0_vect): limit interrupt serials to 0x00-0x7f
This leaves the range 0x80-0xff for other uses.
2011-07-12 04:40:03 -03:00
Werner Almesberger
97604d70f2 tools/usbperf/: measure the rate of control transfers a device can do 2011-07-09 23:14:41 -03:00
Werner Almesberger
f586be4fd6 install/INSTALL-PC: updated lists of config options to enable 2011-07-08 02:27:53 -03:00
Werner Almesberger
42483d67b4 atusb/fw/: added improved support for interrupt synchronization
At an interrupt barrier, the host must be able to ensure that no
interrupt generated before reaching the barrier is still pending and
will be delivered after crossing the barrier.

For this, we introduce the following concept:

- interrupts have a serial number. This number is sent to the host
  on EP 1 (currently bulk) to signal the interrupt, instead of the
  zero byte we used previously.

- the new request ATUSB_SPI_WRITE2_SYNC returns the interrupt
  serial number from after the register write (the register write
  itself is the interrupt barrier).

- the host can now check if the serial indicated from bulk and the
  serial from ATUSB_SPI_WRITE2_SYNC are the same. If yes, interrupts
  are synchronized. If not, it has to wait for the interrupt to be
  signaled on EP 1.

We should also consider the case that the interrupt serial has gotten
ahead of ATUSB_SPI_WRITE2_SYNC. But that seems to happen rarely. In
any case, it's something for the host driver to worry about, not for
the firmware.

- board.h (irq_serial), board_app.c (irq_serial, INT0_vect): count
  the interrupt serial number and return it when signaling the
  interrupt
- include/atusb/ep0.h (ATUSB_SPI_WRITE2_SYNC), ep0.c (my_setup):
  new request ATUSB_SPI_WRITE2_SYNC that does a register write, then
  returns the interrupt serial
2011-07-07 15:51:07 -03:00
Werner Almesberger
50595979f5 Revert "tools/atrf-id/atrf-id.c: new option -D to read atusb debug log"
This reverts commit 391c37f587.

The log isn't so useful in its present state because we may have to
unplug/replug to get out of a troublesome condition.
2011-07-05 19:40:43 -03:00
Werner Almesberger
ead7ade51e Revert "atusb/fw/: added optional debug log with request ATUSB_READ_LOG"
This reverts commit 39e3d4e61a.

The log isn't so useful in its present state because we may have to
unplug/replug to get out of a troublesome condition.
2011-07-05 19:39:25 -03:00
Werner Almesberger
391c37f587 tools/atrf-id/atrf-id.c: new option -D to read atusb debug log 2011-07-05 18:53:32 -03:00
Werner Almesberger
39e3d4e61a atusb/fw/: added optional debug log with request ATUSB_READ_LOG 2011-07-05 18:52:56 -03:00
Werner Almesberger
e610a9ec20 TODO: removed EPERM, added usb_read_bulk vs. signal, toolchain, DFU on U1010 2011-07-05 08:28:20 -03:00
Werner Almesberger
f535a80c56 tools/lib/atben.c: check if the 8:10 slot is available and fail if it isn't
- atben.c (MMC_PATH, AT86RF230_PATH, find_file, slot_in_use): check
  if the MMC or AT86RF230 kernel driver uses the 8:10 card slot and
  print a detailed error message if it is
- atben.c (atben_open): fail if the 8:10 card slot is busy
2011-07-05 07:47:56 -03:00
Werner Almesberger
17f7b66f7b install/INSTALL-Ben: switch linux-zigbee tools source from (old) tarball to git 2011-07-05 07:24:59 -03:00