1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-09-19 13:20:42 +03:00
Commit Graph

15 Commits

Author SHA1 Message Date
Werner Almesberger
1d777aa69e Added register definitons and simplified register naming.
- fw/include/at86rf230.h: added register definitions
- fw/include/at86rf230.h, tools/atspi-id/atspi-id.c (show_info): renamed
  register numbers from AT86RF230_REG_* to REG_*
2010-08-21 01:04:08 -03:00
Werner Almesberger
4b204210e7 We can now read the transceiver's registers.
- fw/atspi/atspi.c (init_io, reset_rf): reset the transceiver after setting
  up the IOs. Contrary to what the manual claims, the chip only produce
  garbage if not reset.
- fw/atspi/ep0.c (my_setup): call reset_rf instead of open-coding the reset
- fw/atspi/atspi.c (init_io): added #ifdef'ed-out code to disable the
  pull-ups, and an explanation why we can't do this.
- tools/atspi-id/atspi-id.c (show_info): also read and print the
  transceiver's ID registers
2010-08-20 22:16:58 -03:00
Werner Almesberger
14c1b4cbfc xxx_MODE were used as if they were port bits, not registers.
- fw/atspi/atspi.c (init_io): comment had the wrong initial value for SCLK
- fw/atspi/atspi.c (init_io): xxx_MODE are registers, not bits ...
- fw/common/io.h (IRQ_RF), fw/atspi/atspi.c (init_io): indicate pending
  moving of IRQ_RF
2010-08-20 17:50:12 -03:00
Werner Almesberger
ac349b0bc0 Introduce library with ATSPI access functions (largely untested)
- tools/include/atspi.h, tools/lib/Makefile, tools/lib/atspi.c: library
  with ATSPI access functions
- tools/atspi-id/Makefile: use libatspi
- tools/atspi-id/atspi-id.c (main) use atspi_open instead of open_usb
- fw/atspi/at86rf230.h: moved to fw/include/
- fw/include/at86rf230.h: added ID registers
- fw/atspi/ep0.c: removed stray #endif
2010-08-20 16:27:24 -03:00
Werner Almesberger
bf74a0348b Fix typo and make "make dfu" work again.
- fw/atspi/atspi.c: fixed typo in title
- fw/atspi/Makefile: added ../include to include path for usb-ids.h
2010-08-20 15:11:41 -03:00
Werner Almesberger
bb4b07f86a Simplified the presentation of build date information and added a
command-line utility to retrieve it.

- fw/include/atspi/ep0.h, fw/atspi/ep0.c (my_setup): merged
  ATSPI_BUILD_NUMBER and ATSPI_BUILD_DATE into single ATSPI_BUILD
- fw/atspi/ep0.c (my_setup): added work-arounds for compiler bugs
- tools/atspi-id/Makefile, tools/atspi-id/atspi-id.c: command-line utility
  to query hardware and firmware version
2010-08-20 15:09:45 -03:00
Werner Almesberger
537c67598d More config rearranging: USB IDs are now in include/atspi/usb-ids.h, which
common/config.h includes.
2010-08-20 03:00:27 -03:00
Werner Almesberger
9a6b3fc20d - fw/atspi/Makefile (USB_ID): corrected and updated USB ID extraction 2010-08-20 02:28:58 -03:00
Werner Almesberger
5447951c6e Implemented AT86RF230 reset and access modes. (Completely untested.)
- fw/atspi/at86rf230.h: AT86RF230 SPI protocol commands and buffer sizes
- fw/atspi/atspi.c (init_io): set all IOs to their initial state
- fw/include/atspi/ep0.h, fw/atspi/ep0.c (my_setup): command ATSPI_RF_RESET
  to reset the AT86RF230
- fw/include/atspi/ep0.h, fw/atspi/ep0.c (my_setup): commands
  ATSPI_{REG,BUF,SRAM}_{READ,WRITE} for the six SPI access modes
2010-08-20 01:50:51 -03:00
Werner Almesberger
3c87d9f8c7 Turn the LED on while in the boot loader.
- fw/common/config.h: added platform defines to enable the LED while in
  the boot loader
- fw/common/io.h: updated path in title
2010-08-19 23:14:55 -03:00
Werner Almesberger
f8cd15e84d Generate port, bit, and output mode definitions from io.h
- fw/common/Makefile: generate related definitions from io.h (from IBDG)
- fw/Makefile: build the various firmware elements (from IDBG, without the
  target parts)
2010-08-19 22:02:38 -03:00
Werner Almesberger
57f34270fb A new try at config.h management: moved it to ../common, along with io.h
- fw/boot/Makefile, fw/atspi/Makefile: add ../common to include path
- fw/boot/config.h, fw/atspi/io.h: moved to ../common
- fw/common/config.h: updated comment - it's no longer specific to boot.c
2010-08-19 21:57:59 -03:00
Werner Almesberger
ada1ee037f fw/atspi/: added application with basic EP0 protocol 2010-08-19 09:04:51 -03:00
Werner Almesberger
2c8c609316 Boot loader Makefile cleanup.
- fw/boot/Makefile: removed object file rules now in Makefile.common (of
  f32xbase)
- fw/boot/Makefile: removed setting of -DLOW_SPEED, which can now go into
  config.h and which was enabled by accident only
  accident
2010-08-19 01:14:21 -03:00
Werner Almesberger
00f28250c5 Added boot loader for C8051F326 (using f326xbase)
- fw/boot/Makefile: build DFU-capable bootloader from f326xbase
- fw/boot/config.h: product-specific configuration
2010-08-19 01:05:04 -03:00