1
0
mirror of git://projects.qi-hardware.com/f32xbase.git synced 2024-11-19 07:09:42 +02:00
Commit Graph

9 Commits

Author SHA1 Message Date
Werner Almesberger
fd09655773 Requests following a rejected SETUP requests failed too, which sometimes
produces user-visible errors and may confuse implementations. (E.g., when
probing for an unimplemented feature and subsequently being greeted by a
timeout.)

- fw/comon/usb.c (handle_setup): set SOPRDY when answering a request error
  with a stall, according to the example in AN139. This seems to eliminate
  the timeouts observed in requests following after bad requests.
- fw/boot/boot.c (run_payload): described how the host is expected to
  respond to the device resetting its USB stack
2010-08-24 19:12:22 -03:00
Werner Almesberger
d1b3966e5a Added timer register values.
- fw/common/regs-f32x.h: common values for TCON, TMOD, and CKCON
- fw/common/regs-f320.h: C8051F320-specific values for TMOD and CKCON
2010-08-23 18:11:51 -03:00
Werner Almesberger
0f1c0ea783 - fw/common/regs-f320.h: include mcs51/C8051F320.h, not mcs51/C8051F326.h 2010-08-23 14:31:33 -03:00
Werner Almesberger
1c7150cce8 Registers and register values are now CPU-specific.
- fw/common/regs.h: split into C8051F326-specific regs-f326.h and shared
  regs-f32x.h
- fw/common/regs-f320.h: C8051F320-specific registers and values
2010-08-23 14:26:01 -03:00
Werner Almesberger
2a5850591c version.h is no longer generated and it thus only creates confusion if
we create it when making dependencies.

- fw/common/Makefile.common (depend): don't touch version.h
- fw/common/Makefile.common (version): we build version.c, not version.c
2010-08-20 14:26:35 -03:00
Werner Almesberger
efdacaf589 Add build rules to simplify platform-specific Makefiles.
- fw/common/Makefile.common: integrated object file specific build rules
  that used to live in fw/boot/
- fw/common/Makefile.common: added section titles
- fw/common/Makefile.common (upload): removed obsolete target
2010-08-19 01:11:14 -03:00
Werner Almesberger
3f5ec8aa9e Use config.h as the main source of configuration data. Fixed some boot.c
glitches.

- fw/boot/boot.c, fw/boot/dfu.c: include config.h for platform defines
- fw/common/Makefile.common: add $(F32XBASE)/fw/common to include search
  path
- fw/boot/boot.c: define dummy for uart_init if no debugging is enabled
- fw/boot/boot.c (PLATFORM_EXIT): typo PLAYFORM_EXIT
- fw/boot/boot.c (run_payload): rename BOOT_SETUP to PLATFORM_SETUP
- fw/boot/dfu.c (device_descriptor): use USB_PRODUCT instead of
  USB_PRODUCT_IDBG_DFU
- fw/boot/config.h: removed for now. Might bring it back later as template.
- fw/boot/version.h: moved to fw/common/
- fw/common/Makefile.system: remove serial setup
2010-08-19 01:01:08 -03:00
Werner Almesberger
fcfaec399a Move platform-specific boot loader configuration into macros.
- fw/boot/boot.c (boot_loader): moved GTA-specific pull-up disable and
  I2C_SDA_PULL enable into macro PLATFORM_SETUP
- fw/boot/boot.c (run_payload): moved GTA-specific pull-up enable and
  I2C_SDA_PULL disable into macro PLATFORM_EXIT
- fw/boot/boot.c (boot_loader): moved GTA-specific I2C_SDA probe into macro
  PLATFORM_TEST
- fw/common/Makefile.common: removed all references to dependencies on
  .target. The caller is now responsible for these.
- fw/boot/dfu.c: don't include idbg/usb-ids.h; USB_VENDOR and USB_PRODUCT
  are now passed via macros
2010-08-19 00:34:19 -03:00
Werner Almesberger
bdfe058079 fw/common/ - copied from IDBG and generalized a little 2010-08-13 08:47:13 -03:00