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

618 Commits

Author SHA1 Message Date
Werner Almesberger
39319e145a tools/lib/: added network proxy-based driver (in progress)
- atnet.c: driver "net", which accessed hardware via atrf-proxy
- Makefile (OBJS): added atnet.o
- driver.h (atnet_driver), atrf.c (drivers): added the atnet driver
- atrf.c (drivers): moved the driver list closer to the top
2011-04-10 19:55:48 -03:00
Werner Almesberger
7be700df11 tools/lib/atrf.c: perform driver-specific operations only if using that driver
- atrf.c (atrf_usb_handle): only return the handle if using the atusb
  driver
- atrf.c (atrf_ben_regs): only call atben_regs if using the atben driver
2011-04-10 19:55:48 -03:00
Werner Almesberger
641567e393 tools/lib/atrf.c: moved declaration of driver operations to driver.h 2011-04-10 19:55:47 -03:00
Werner Almesberger
0b0b5712e8 atrf-trim.c (main): passing the trim value is not a usage error 2011-04-10 19:55:47 -03:00
Werner Almesberger
4ad0383020 tools/atrf-proxy/: network proxy (untested) 2011-04-10 19:55:47 -03:00
Werner Almesberger
3b0ee3c00a tools/: added network (TCP) I/O helper functions
- include/netio.h, lib/netio.c: network I/O helper functions
- lib/Makefile (OBJS): added netio.o
2011-04-10 17:28:09 -03:00
Werner Almesberger
a2f38c044e tools/: two small usage fixes
- atrf-id/atrf-id.c (usage): options were before the program name
- atrf-rssi/atrf-rssi.c (usage): the driver option was missing the "[-d"
2011-04-10 11:28:16 -03:00
Werner Almesberger
4190aded8c tools/lib/: added mechanism to remove USB restrictions (enabling multiple sessions)
- usbopen.h (usb_unrestrict), usbusb.c (usb_unrestrict): drop ID and
  path restrictions
- atusb.c (atusb_open): call usb_unrestrict to remove restrictions
2011-04-10 10:55:49 -03:00
Werner Almesberger
4b07e5c894 tools/: moved constant wave test mode code to libatrf (for sharing)
- lib/Makefile (OBJS), include/cwtest.h (cw_test_begin, cw_test_end),
  lib/cwtest.c (enter_test_mode_230, enter_test_mode_231,
  cw_test_begin, cw_test_end): moved constant wave test mode setup
  over from atrf-txrx.c
- atrf-txrx/atrf-txrx.c (transmit_pattern): use functions from cwtest.o
2011-04-10 10:24:24 -03:00
Werner Almesberger
fc1ad9fffd tools/lib: atusb can now be selected by bus/device or by bus-port path
Examples:

  usb:1/6	select logical device 6 on bus 1
  usb:1-3.1.4	starting at bus 1, choose ports 3, 1, and 4

- usbopen.c (initialize, open_usb): moved libusb initialization to
  separate function, to allow for sharing
- usbopen.h (restrict_usb_path), usbopen.c (restricted_path, open_usb,
  restrict_usb_dev, restrict_usb_by_dev, read_num, restrict_usb_by_port,
  restrict_usb_path): added mechanism to restrict USB path
- atusb.c (atusb_open): if an argument is given, call restrict_usb_path
  with it
2011-04-10 09:51:30 -03:00
Werner Almesberger
a75edf0cc0 tools/lib/: copied USB device opening code over from f32xbase
We shared it across projects so far, but since the code will be further
customized, it's better to keep it local (at least for a while).

- usbopen.h, usbopen.c: moved over f32xbase/include/usb.h and
  f32xbase/lib/usb.c (for further customization)
- Makefile (CFLAGS, OBJS_host): use usbopen.o instead of usb.o from
  f32xbase
- atusb.c: use usbopen.h instead of usb.h from f32xbase (also removes
  include path ambiguity)
2011-04-10 07:43:42 -03:00
Werner Almesberger
1a27e590d9 tools/: cleaned up the gross layering violation in atrf-xtal/atben.c
- include/atrf.h (atrf_ben_regs), lib/atrf.c (atrf_ben_regs),
  lib/driver.h (atben_regs), lib/atben.c (atben_regs): new function to
  get the mmap'ed registers in a less disgusting way
- atrf-xtal/atben.c (base, ben_setup): cleaned up the horrible layering
  violation
2011-04-10 07:28:27 -03:00
Werner Almesberger
7ff1a32ccf tools/: added option -d driver[:arg] to all tools
- atrf-id/atrf-id.c (main), atrf-reset/atrf-reset.c (main),
  atrf-trim/atrf-trim.c (main): changed command-line parsing to use
  "getopt"
- atrf-id/atrf-id.c (usage, main), atrf-reset/atrf-reset.c (usage, main),
  atrf-rssi/atrf-rssi.c (usage, main), atrf-trim/atrf-trim.c (usage,
  main), atrf-txrx/atrf-txrx.c (init_txrx, usage, main),
  atrf-xtal/atrf-xtal.c (usage, main): added option -d to select a driver
2011-04-10 07:28:27 -03:00
Werner Almesberger
1175923df7 tools/lib/atrf.c (select_driver): fixed name length calculation 2011-04-09 22:38:46 -03:00
Werner Almesberger
54edf17a1e libatrf: new function atrf_default_driver_name to get the default driver name
- include/atrf.h (atrf_default_driver_name),
  lib/atrf.c (atrf_default_driver_name): return the name of the default
  driver, or "none" if no drivers are defined
2011-04-09 22:35:29 -03:00
Werner Almesberger
1830454b49 atrf-xtal.c (usage, main): renamed option "d" (dump) to "r" (dump raw) 2011-04-09 21:36:52 -03:00
Werner Almesberger
adc14c4742 tools/lib/: make driver name matching case-sensitive and lower-case names
Case-sensitive is the Unix way, and so is avoiding unnecessary upper-case.

- atben.c (atben_driver): changed name from "Ben" to "ben"
- atusb.c (atusb_driver): changed name from "USB" to "usb"
- atrf.c (select_driver): made driver name matching case-sensitive
2011-04-09 21:18:31 -03:00
Werner Almesberger
5296fc8cf5 tools/: API change - atrf_open now requires a string argument (can be NULL)
atrf_open(NULL) maintains the old behaviour. To select a driver, use
atrf_open("name") or atrf_open("name:driver-specific-arguments")
The driver name is "ben" or "usb".

- include/atrf.h (atrf_open), lib/atrf.c (do_atrf_open, atrf_open):
  atrf_open now requires the string argument for driver selection
- atrf-id/atrf-id.c (main), atrf-reset/atrf-reset.c (main),
  atrf-rssi/atrf-rssi.c (main), atrf-trim/atrf-trim.c (main),
  atrf-txrx/atrf-txrx.c (main), atrf-xtal/atrf-xtal.c (main):
  changed atrf_open() to atrf_open(NULL)
2011-04-09 21:13:11 -03:00
Werner Almesberger
4e64e7ad90 atrf-reset.c: title comment claimed this was atrf-rssi 2011-04-09 21:08:01 -03:00
Werner Almesberger
c18d3e58d2 tools/lib/: added driver selection and driver-specific parameters to backend
- atrf.c (atrf_open, select_driver, do_atrf_open): added infrastructure
  for passing the driver name and further parameters to atrf_open
- atrf.c (struct atrf_dsc): made "driver" constant
- driver.h (struct atrf_driver), atben.c (atben_open), atusb.c
  (atusb_open): added string argument to the "open" function
- atusb.c (atusb_driver): corrected unterminated comment
2011-04-09 21:00:48 -03:00
Werner Almesberger
bc6bce9923 atrf-xtal/atben.c: restructured the code for better clarity; added warnings 2011-04-04 09:42:03 -03:00
Werner Almesberger
28e7f25585 tools/atrf-xtal: new utility to measure the crystal frequency
- Makefile (DIRS): added atrf-xtal
- atrf-xtal/Makefile: build atrf-xtal for the Ben or do nothing elsewhere
- atrf-xtal/atrf-xtal.h, atrf-xtal/atrf-xtal.c: diagnostic utility to
  determine the transceiver's crystal frequency
- atrf-xtal/atben.c: dirty low-level driver for ATBEN
2011-04-03 22:50:19 -03:00
Werner Almesberger
fe2720e63a tools/: new libatrf function atrf_slp_tr to control SLP_TR (for now only atben)
- include/atrf.h, lib/atrf.c (atrf_slp_tr): new function to set the SLP_TR
  line
- lib/driver.h (struct atrf_driver): added driver function slp_tr
- lib/atusb.c (atusb_driver): we dont support slp_tr yet
- lib/atben.c (atben_slp_tr, atben_driver): implement SLP_TR control
2011-04-03 20:13:38 -03:00
Werner Almesberger
84f2d276ab atben: corrected type in RFP net name
- atben.sch: RFP net name was mistyped as RPF
- atben.sch: bumped version number to 20110401
- atben.brd: updated netlist for net name change
2011-04-01 19:31:43 -03:00
Werner Almesberger
6ae1aa6c2e modules/INFO: corrected island size of QFN32-VHHD-2 2011-03-31 06:48:07 -03:00
Werner Almesberger
7e512341f4 atben: bumped PCB and fab version numbers to 110330, for consistency with atusb
- Makefile (VERSION), atben.brd: bumped version numbers to 110330
2011-03-31 03:34:33 -03:00
Werner Almesberger
f4342f49ae atusb: enlarged USB positioning pin hole; general cleanup
- modules/usb_a_plug_smt.fpd: enlarged hole for positioning pins from
  1.1 mm to 1.15 mm
- atusb/usb.sch, atusb/atusb.cmp, atusb/atusb.brd: removed trailing space
  from CON1's value
- atusb/atusb.sch, atusb/usb.sch, atusb/atrf.sch: schematics title still
  said AT86RF230, not 231
- atusb/README-SMT: corrected a typo
- atusb/README-PCB: specified the tolerance of the hole for the positioning
  pins of the USB connector
- atusb/README-PCB: added the 16-17 mm hole for the USB connector to the
  specification
- atusb/: bumped all version numbers to 20110330
2011-03-31 03:27:11 -03:00
Werner Almesberger
c5297533db install/USAGE: added izchat commands (yup, that works :) 2011-03-30 06:48:06 -03:00
Werner Almesberger
d489ff89e0 install/USAGE: rearranged to make copy & paste easier 2011-03-30 06:15:01 -03:00
Werner Almesberger
0cfd2777de install/: renamed READMEs and added (non-working) setup instructions
- README-Ben: renamed to INSTALL-Ben
- README-PC: renamed to INSTALL-PC
- USAGE: setup instructions (don't work yet)
2011-03-30 04:39:42 -03:00
Werner Almesberger
16dcc30f87 install/: updated and corrected build instructions
- README-Ben: patch kernel with -p1
- README-Ben: forgot the vmlinuz.bin compression step
- README-Ben: mkimage line differs for Jlime (mipsel-*-nm)
- README-Ben: mention expected result of address detection
- README-Ben: updating the kernel from Linux needs a ^C at the end
- README-Ben: cleaned up and clarified user space setup
- README-Ben: use readlink -f in case mipsel-openwrt-linux-gcc isn't
  symlinked
- README-Ben, libnl-1.1-limits.patch: fix missing #include on Jlime
- README-Ben: Jlime needs a different prefix discovery algorithm
2011-03-29 09:57:46 -03:00
Werner Almesberger
6487c32387 atben/README-PCB, atusb/README-PCB: clarifications regarding holes
- atben/README-PCB, atusb/README-PCB: illustrations now contain holes
- atben/README-PCB, atusb/README-PCB: clarified distinction antenna via
  vs. hole
2011-03-29 07:53:03 -03:00
Werner Almesberger
fb5bb5a6fa install/: kernel and system utilities build instructions (preliminary) 2011-03-29 07:51:07 -03:00
Werner Almesberger
74706cfae8 atusb.brd: updated USB-A-PLUG-SMT footprint (fped put the layers wrong) 2011-03-24 21:19:08 -03:00
Werner Almesberger
0ee8b42bf1 makefiles/Makefile.kicad: also show drill holes in PNG illustrations
- Makefile.kicad (DRL2GERBER, %-Drill.gbr): convert Excellon drill file to
  Gerber
- Makefile.kicad ($(NAME)-front.png, $(NAME)-back.png,
  $(NAME)-overview.png): use the converted drill file to show holes
- Makefile.kicad (clean): remove $(NAME)-Drill.gbr
2011-03-24 20:06:01 -03:00
Werner Almesberger
6ff2740e9b atusb.brd: moved FIDUCAL label away from mounting hole; bumped version number
- atusb.brd: "FIDUCIAL" label was on hole; moved it
- atusb.brd: bumped version to 110325
2011-03-24 13:17:04 -03:00
Werner Almesberger
269f77079a added the front solder paste to the PCB fab package (for stencil production)
- atben/README-PCB, atusb/README-PCB: added *-SoldP_Front.gtp
- makefiles/Makefile.kicad (GERBERS): added $(NAME)-SoldP_Front.gtp
- makefiles/Makefile.kicad (gerbv): also show the board edge
2011-03-24 13:12:00 -03:00
Werner Almesberger
1c4c78e110 atusb.brd: added two vias to connect front and back ground at USB shield 2011-03-24 12:45:35 -03:00
Werner Almesberger
38bea8ec54 README-SMT: various small clarifications
- atben/README-SMT, atusb/README-SMT: added "component to "orientation"
- atben/README-SMT, atusb/README-SMT: added "drawings" to "footprint
  reference"
- atben/README-SMT, atusb/README-SMT: mention once more that the automatic
  insertion file is for the front only
2011-03-24 12:18:14 -03:00
Werner Almesberger
f242368deb atben. atusb: bumped version numbers to 110324 2011-03-24 05:07:50 -03:00
Werner Almesberger
af6d563194 README-PCB: relaxed antenna via size from 8 mil to <= 15 mil 2011-03-24 00:26:10 -03:00
Werner Almesberger
7e20be97dc atben.brd, atusb.brd: set solder mask opening of fiducials to 2 mm
- atben/atben.brd, atusb/atusb.brd: set solder mask clearance of fiducials
  to 0.1 mil, so that the real solder mask opening has a diameter of
  almost) exactly 2 mm (instead of 2 mm plus 10 mil)
2011-03-23 23:46:44 -03:00
Werner Almesberger
33f320eaf2 makefiles/Makefile.kicad: replaced a few $(NAME) with patterns (%, $^, $<) 2011-03-23 17:55:50 -03:00
Werner Almesberger
16ac7e5f4b miscellaneous integration of fiducials
- atben/atben.brd, atusb/atusb.brd: set insertion of fiducials to
  "virtual"
- makefiles/Makefile.kicad ($(NAME)-footprints.pdf): added FIDUCIAL
2011-03-23 17:44:59 -03:00
Werner Almesberger
7a9e5185b9 atusb: added two fiducial marks
- atusb.pro: added fiducial.mod
- atusb.brd: added two fiducial marks
- atusb.brd: adjusted RF and RF power ground zones
- atusb.brd (CON1): moved component reference out of the way
- atusb.brd: bumped version to 110323
2011-03-23 13:08:48 -03:00
Werner Almesberger
c3357216a5 atusb/atusb.brd: some more silk screen cleanup
- atusb.brd (C22): properly aligned reference with component center
- atusb.brd (P11, P12, P13, P14): moved reference below the pad, for
  consistency with P15 and P16
- atusb.brd (CON1): centered the component reference
2011-03-23 12:48:34 -03:00
Werner Almesberger
0923d249d5 atben: added two fiducial marks
- atben.pro: added fiducial.mod
- atben.brd: added two fiducial marks
- atben.brd: adjusted and straightened upper left of the RF ground zones
- atben.brd: bumped version to 110323
2011-03-23 12:39:55 -03:00
Werner Almesberger
b93494e90e makefiles/Makefile.kicad: added target "overview"
- Makefile.kicad (PHONY): added "overview"
- Makefile.kicad (overview): generate overview image and display it using
  ImageMagic's "display"
2011-03-23 12:36:26 -03:00
Werner Almesberger
2aed5153ca generate SMT fab package
- makefiles/Makefile.kicad ($(NAME)-PCB_Edges.dxf, $(NAME).drl): since we
  now name the files explicitly, we need to generate them explicitly as
  well
- makefiles/Makefile.kicad (upload): added SMT fab package
- atben/Makefile (VERSION), atusb/Makefile (VERSION): bumped fab file
  version to 110323
2011-03-23 04:57:32 -03:00
Werner Almesberger
507e6c33de added project-specific footprint reference for SMT fab
- makefiles/Makefile.kicad: added generation of a footprint reference
- atben/README-SMT, atusb/README-SMT: added footprint reference, with
  explanation
2011-03-23 04:47:21 -03:00