1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-23 00:58:26 +02:00
Commit Graph

104 Commits

Author SHA1 Message Date
Werner Almesberger
f8fbb02bb0 atusb/fw2: further abstract board functions
- atusb.c (main), board.h (board_init), board.c (board_init): moved
  clock and I/O initialization to board file
- board.h (led), board.c (led), atusb.c (main): abstracted LED setting
  in function "led" instead of open-coding it
- spi.c (spi_init): set nSS to 1 before enabling the output, so that we
  don't generate what looks like an empty SPI transaction
2011-02-10 20:49:23 -03:00
Werner Almesberger
509542af73 atusb.brd: draw in bottom edge by 5 mil to prevent touching the connector 2011-02-10 14:40:56 -03:00
Werner Almesberger
69684413ad atusb.brd: small layout improvements, mainly for solderability
- atusb.brd: moved C14 and adjacent via 10 mil away from the transceive,
  for improved solderability
- atusb.brd: moved nRST_RF via and trace by 5 mil, for better access to
  the trace
- atusb.brd: reduced crystal front ground zone such that it does not
  creep under XTAL2 corner (where it might meet exposed metal)
2011-02-10 14:10:15 -03:00
Werner Almesberger
e8b68041a5 atusb/fw2: autonomously restore the clock output settings after an RF reset
- atusb.c (main), board.c (set_clkm): moved CLKM initialization to
  board.c
- board.c (reset_rf): initialize the CLKM after each transceiver reset
2011-02-10 10:05:38 -03:00
Werner Almesberger
3e9f9613cb atusb/fw2: added proper support for interrupt polling
- board.h (read_irq), board.c: return status of the RF IRQ
- board.h (PIN, PIN_1, PIN_2): macros to read port pins
- ep0.c (my_setup): make ATUSB_POLL_INT return the real interrupt
2011-02-10 07:42:34 -03:00
Werner Almesberger
dcfa689936 atusb/fw2/: assigned hardware revision code point; some cleanup
- fw/include/atusb/ep0.h (HW_TYPE_110131): defined hardware type 2 for
  ATmega32U2-based boards
- fw/ep0.c: define HW_TYPE as HW_TYPE_110131, not directly as 2
- fw2/atusb.c: include atusb/ep0.h instead of declaring ep0_init locally
2011-02-10 07:24:37 -03:00
Werner Almesberger
4f0af39d4d atusb/fw2/: move board-specific items to board-specific file
- io.h: renamed to board.h
- Makefile (OBJS): added board.o
- atusb.c (reset_rf): moved to board.c
- board.h (reset_rf): give reset_rf a proper declaration
- atusb.c, ep.c, spi.c: include board.h instead of io.h
2011-02-10 07:19:55 -03:00
Werner Almesberger
6969e7d689 atusb/fw2/ep0.c: make commands needed for sending work
- ep0.c (do_usb_recv, usb_recv): implemented creepy buffer reception
- ep0.c (my_setup): added dummy for ATUSB_POLL_INT (always return 0)
- ep0.c (my_setup): send a zero-length packet at the end of
  ATUSB_RF_RESET and ATUSB_REG_WRITE to indicate status stage
2011-02-10 07:01:28 -03:00
Werner Almesberger
dadc683d71 atusb/cam/mkmk: updated board parameters for latest run
This sort of data really ought to live somewhere locally ...
2011-02-10 06:50:22 -03:00
Werner Almesberger
ec21e4ba47 atusb/fw2: support device -> host side of the ATUSB EP0 protocol
- ep0.c: the ATUSB EP0 protocol engine
- Makefile (OBJS): added ep0.o
- atusb.c (main): initialize the EP0 protocol
- spi.h: whitespace cleanup

usb/patches/support-vendor-requests.patch:

- usb/ctrl.c (ctrl_handler): also pass vendor-specific requests to the
  class handler
- class/CDC/cdc.c (cdc_req_handler): reject vendor requests
2011-02-08 23:53:25 -03:00
Werner Almesberger
06f6174966 fw2/usb/patches/correct-array-size.patch: correct memset in ctrl_get_status
This caused lsusb -v to fail with
cannot read device status, Broken pipe (32)
2011-02-08 23:16:09 -03:00
Werner Almesberger
1c004ee2d2 atusb/fw2: moved board-specific functions (SPI, RF reset) out of main()
- Makefile (OBJS): added spi.o
- spi.h, spi.c, atusb.c: moved SPI functions to new file
- spi.h (spi), spi.c (spi), atusb.c (main): renamed function "spi" to
  "spi_io"
- atusb.c (reset_rf, main): moved transceiver reset to separate function
2011-02-08 21:32:24 -03:00
Werner Almesberger
259400fdb8 atusb/fw2: firmware for the AVR-based atusb (in progress)
- ./: basic framework to build a firmware that can enumerate
- usb/patches/: patches to make FreakUSB 0.7 compile cleanly and to make
  it work in our context
2011-02-08 19:32:15 -03:00
Werner Almesberger
847b3546d9 usb.sch: cleanup and track layout
- usb.sch: cleaned up programming/auxiliary/LED signals
- usb.sch: swapped LED and nRST_RF (tracking the layout)
- atusb.brd: updated for corrected netlist
2011-01-31 11:52:30 -03:00
Werner Almesberger
8e842bab8e atusb.brd: ground zone adjustments; corrected date code location
- atusb.brd: moved date code which overlapped with traces
- atusb.brd: reduced front RF and power ground zones to avoid ground
  fill between transceiver pads
- atusb.brd: added ground traces around crystal to widen ground zone
2011-01-31 11:41:07 -03:00
Werner Almesberger
ebaffb53e4 usb.sch: corrected symbol name 2011-01-31 05:08:36 -03:00
Werner Almesberger
d8dfb509ac atusb: new layout for the ATmega32U2
- atusb.pro, atusb.cmp: updated for ATmega32U2-based design
- usb.sch: rearranged LED, nRST_RF, and SLP_TR, to make layout easier
- atusb.brd: redid layout for the ATmega32U2-based design
2011-01-31 04:57:02 -03:00
Werner Almesberger
318f29c5d5 atusb: cleaned up USB schematics
- usb.sch: renumbered test points for serial programming
- usb.sch: moved everything down to make room on top
- usb.sch: moved description of pad placement near the pads
- usb.sch: added footprint of U1
2011-01-28 03:54:38 -03:00
Werner Almesberger
6aa4e30833 atusb: replaced the C8051F326 with an ATmega32U2 (still needs cleanup)
- atusb.pro (LibName5): changed from c8051f326 to atmega8u2
- atrf.sch: export CLKM and added filter for 8 MHz clock
- atusb.sch: connect CLK between RF and USB side
- usb.sch: changed design frim C8051F326 to ATmega32U2 (needs cleanup)
2011-01-28 03:42:35 -03:00
Werner Almesberger
e6b0ee5655 atusb/cam/mkmk: updated for latest board parameters 2011-01-28 02:05:52 -03:00
Werner Almesberger
50bd38c13e atusb/cam/mkmk: move project name to central NAME variable
Also prematurely updated alignment, oops.
2011-01-23 15:51:16 -03:00
Werner Almesberger
dda673e8bf atusb.brd: updated balun footprint
- atusb.brd: updated 0805-6 footprint of the balun and rearranged its
  surroundings accordingly
2011-01-23 15:23:38 -03:00
Werner Almesberger
daaac58f88 atben, atusb: set solder mask and solder paste clearances to NXP's values
Settings according to
http://www.nxp.com/documents/mounting_and_soldering/AN10365.pdf

- atben.pro, atben.brd, atusb.pro, atusb.brd: set solder mask clearance
  to 50 um (copper-defined pads)
- atben.pro, atben.brd, atusb.pro, atusb.brd: set solder paste clearance
  to 25 um
2011-01-23 11:43:08 -03:00
Werner Almesberger
b0a5a0cad7 atusb.brd: some more cleanup after checking the gerbers
- atusb.brd: enabled back solder mask layer, just in case
- atusb.brd: rearranged references and values for printing/display
2011-01-23 11:25:53 -03:00
Werner Almesberger
83b903d71b atben.brd, atusb.brd: added design name (ATBEN, ATUSB) to silk screen text 2011-01-23 01:50:49 -03:00
Werner Almesberger
bcc8ea7f2f atusb.sch, atrf.sch, usb.sch, atusb.brd: bumped version to 20110123 2011-01-23 01:48:31 -03:00
Werner Almesberger
1b5abff8ba atusb.brd: added title, origin, and license on silk screen layer 2011-01-23 01:42:03 -03:00
Werner Almesberger
1f959d9873 atusb: updated C8051F326 and AT86RF321 footprints
- usb.sch, atusb.cmp, atusb.brd: updated C8051F326 footprint
- atrf.sch, atusb.cmp, atusb.brd: updated AT86F231 footprint
- atusb.brd: redid some traces that mysteriously got disconnected
2011-01-23 01:32:14 -03:00
Werner Almesberger
1d2fdb34c6 atusb.brd: rearranged component references and values for printing/display
- atusb.brd: moved component references for proper printing on silk screen
- atusb.brd: moved component values for easy display (do not print on
  silk screen !)
2011-01-22 13:39:25 -03:00
Werner Almesberger
30aff8160b atusb: introduced optional antenna matching capacitor
- atrf.sch (C16): optional antenna matching capactor (typ. 0.5 pF)
- atben.cmp, atben.brd: added C16
2011-01-22 13:22:58 -03:00
Werner Almesberger
836c89e8fd atusb: replaced old chip components with updated ones
- atusb.brd, atusb.cmp: changed all 0402-M to the new 0402
- atusb.brd, atusb.cmp: changed 0603-M to the new 0603
- atusb.brd: updated layout for component changes
2011-01-22 12:53:47 -03:00
Werner Almesberger
478f600502 atben/Makefile (clean), atusb/Makefile (clean): remove Gerbers 2011-01-17 22:40:15 -03:00
Werner Almesberger
af4ce1f5f9 atusb.brd: removed unused Adhesive Front layer 2011-01-17 22:38:19 -03:00
Werner Almesberger
7d91ee60c6 atusb/Makefile: replaced board name by $(NAME) or pattern 2011-01-17 22:35:55 -03:00
Werner Almesberger
2c96bcb85a atben/atben.brd, atusb/atusb.brd: updated PAD_60x60 to update pad type 2011-01-17 22:29:09 -03:00
Werner Almesberger
c6532c7435 meander.fpd: use new pad type "trace" without solder paste and mask opening
- ants/meander.fpd: changed all pads from "normal" to "trace"
- atben/atben.brd, atusb/atusb.brd: updated MEANDER-110
2011-01-17 22:18:51 -03:00
Werner Almesberger
766b5759ea atusb/Makefile: removed claim that zones have to be filled in the .brd file 2011-01-08 09:46:24 -03:00
Werner Almesberger
309a5ed6d5 atusb/fw/include/at86rf230.h: make 231-centric
- at86rf230.h (TX_AUTO_CRC_ON): changed to TX_AUTO_CRC_ON_230
- at86rf230.h (TX_AUTO_CRC_ON_231): changed to TX_AUTO_CRC_ON
- tools/atrf-txrx/atrf-txrx.c: updated for above changes
2011-01-07 14:31:27 -03:00
Werner Almesberger
f67a79b04e atusb/fw/include/at86rf230.h: many corrections, some additions
- at86rf230.h (REG_BATMON): address is 0x11, not 0x10
- at86rf230.h (TRX_CMD_MASK): width is 5 bits, not 3
- at86rf230.h (CLKM_CTRL_MASK): width is 3 bits, not 2
- at86rf230.h (PA_EXT_EN, IRQ_2_EXT_EN, TX_AUTO_CRC_ON_231): shifted by one
  bit
- at86rf230.h (RX_BL_CTRL, AACK_DIS_ACK): added missing field
- at86rf230.h: added fields PA_BUF_LT and PA_LT
- at86rf230.h (ANT_DIV): added fields of this register
- at86rf230.h (NATMON_VTH_SHIFT, NATMON_VTH_MASK): corrected typo
2011-01-07 14:29:00 -03:00
Werner Almesberger
4387d844dc atusb/fw/include/at86rf230.h: added remaining AT86RF231 values 2011-01-07 11:52:45 -03:00
Werner Almesberger
bd5b008c44 atusb/fw/include/at86rf230.h: make one section per register, not one per field
Looked too confusing.
2011-01-07 09:16:51 -03:00
Werner Almesberger
337e5d227d atusb/fw/include/at86rf230.h: started updates for AT86RF231 2011-01-07 09:11:29 -03:00
Werner Almesberger
b44e731ee1 atusb/atrf.sch: defined footprint of B1 (0805-6) 2011-01-04 01:43:16 -03:00
Werner Almesberger
9f8a77e879 atusb: switched from the AT86RF230 to the AT86RF231, added missing RF ground
- atrf.sch: replaced the AT86RF230 with the AT86RF231
- atusb.sch, usb.sch, atrf.sch: removed TST signal
- atrf.sch: grounded former TST pin
- atusb.brd: updated for TST removal
- atusb.brd: increased space between SLP_TR and nRST_RF vias
- atusb.brd: connect U2 pin 6 to ground pad
- atusb.sch, usb.sch, atrf.sch, atusb.brd: changed version to 20110104
2011-01-04 01:19:54 -03:00
Werner Almesberger
155dfba7ec atusb/cam/mkmk: update for on-going work; showcase use of "rotate" 2011-01-03 23:11:00 -03:00
Werner Almesberger
9851e3ca88 atusb/atrf.sch: changed C3, C8, C9 to "22pF/RF", to make BOOM select UHI Q type 2011-01-03 17:21:20 -03:00
Werner Almesberger
08eec5b3a9 atusb/usb.sch: specified capacitance of TVSs (33 pF) and explained why 2011-01-03 16:32:52 -03:00
Werner Almesberger
882558b953 atusb/usb.sch: typo: the LED is called LTST-C190KRKT, not LTST-C190KTKR 2011-01-03 15:54:35 -03:00
Werner Almesberger
04d3cec2ba atusb/usb.sch: typo in VR1 footprint, should be 0402 instead of 0403 2011-01-03 15:41:51 -03:00
Werner Almesberger
59ae88ddf4 atusb/cam2: renamed to atusb/cam 2011-01-03 13:43:54 -03:00