Commit Graph

47 Commits

Author SHA1 Message Date
Harald Welte db0ddc6ee6 at91lib: Add USB MULTI driver (for device with 3 configurations)
This is in anticipation of the future SIMtrace firmware,
where we will have a single device with three configurations.
2011-07-31 22:36:10 +02:00
Harald Welte 29745a4feb at91lib CDC: Re-enable DFU string descriptors 2011-07-31 20:12:07 +02:00
Harald Welte 88269a047c USBD: properly return the secondary configuration descriptors
we need to actually look at the wIndex of the GET_DESCRIPTOR
request from the host.
2011-07-31 20:06:13 +02:00
Harald Welte 934a3c6f4f USBD multi-conf: Fix non-highspeed case 2011-07-31 19:54:27 +02:00
Harald Welte 30a5b024c3 USBD: Add support for up to 4 configurations per device
This is implemented by using a pointer array for the config descriptors
2011-07-31 18:09:42 +02:00
Harald Welte cfe1806207 DFU: remove some compiler warnings by using type-casts 2011-07-31 18:02:04 +02:00
Harald Welte a341a06002 Add DFU interface descriptor support to CDC-serial driver 2011-07-31 16:33:00 +02:00
Harald Welte a774bcc3fd DFU: make sure to include board.h 2011-07-31 16:32:20 +02:00
Harald Welte 6445a4cdb0 DFU: remove need for "#ifdef BOARD_USB_DFU" in drivers
We define a DFU_IF_DESCRIPTORS_STRUCT macro that adds the respective
structure members to the 'struct CCIDDriverConfigurationDescriptors'
(or similar in other drivers)
2011-07-31 16:26:38 +02:00
Harald Welte 5d5479fd3a at91lib: sam7s-p board: don't skip lowlevel initialization in DFU mode 2011-07-31 16:13:20 +02:00
Harald Welte ed76d4c2b6 ccd-serial example: use USART1 instead of USART0
this works better wit the olimex  boards..
2011-07-31 16:09:43 +02:00
Harald Welte 1d1a5a0b5e add USART1 definitions for SAM7S-P board 2011-07-31 16:09:31 +02:00
Harald Welte ef274c62cb add flash_dfu definitions for SAM7S64 and SAM7S128 2011-07-31 15:54:36 +02:00
Harald Welte 2318170f21 SAM7S-Pxxx: Update to reflect actual Olimex board 2011-07-31 15:36:32 +02:00
Harald Welte e597f0fea6 start sam7-p board as copy of at91sam7-ek 2011-07-31 15:27:27 +02:00
Harald Welte 390df0f0b6 AT91LIB: Add DFU interface descriptors to CCID
A board can now define BOARD_USB_DFU which will cause the USB DFU
interface descriptors for the sam7dfu bootloader to be appended
2011-07-31 14:16:19 +02:00
Harald Welte 245e794b26 at91lib: Core support for multiple configurations 2011-07-31 13:27:30 +02:00
Harald Welte a2def0e915 CDC: update makefile for sam7s128 and simtrace 2011-07-31 12:20:28 +02:00
Harald Welte 0279a2bcf0 import usb-device-cdc-serial 2011-07-31 12:19:34 +02:00
Harald Welte d0afa79e7f edit makefile for simtrace/sam7s128 defaults 2011-07-31 10:25:26 +02:00
Harald Welte af8603411c import usb-device-composide-cdchid-project 2011-07-31 10:25:11 +02:00
Harald Welte 63d587cf2e ccid main: fix PIO configuration and PIO interrupt 2011-07-30 23:19:06 +02:00
Harald Welte 3e504477a9 ccid project: actually power the card 2011-07-30 22:31:00 +02:00
Harald Welte 832cc89602 at91lib ccid: Fix CCID descriptor sent to the host
The CCID deccriptor needs to claim T=0 support and auto-baud/auto-clock,
otherwise some drivers legitimately refues to work with the device.
2011-07-30 22:29:58 +02:00
Harald Welte 82125db510 at91lib: go throguh LowlevelInit even after DFU loader
this makes sure the PLL is set up the way at91lib expects it
2011-07-30 22:29:20 +02:00
Harald Welte e927ad57be at91lib: disable the watchdog when we come out of DFU 2011-07-30 20:10:50 +02:00
Harald Welte 7053b9f5c7 at91lib: Add Spansion S25FL016A SPI flash support 2011-07-30 19:50:00 +02:00
Harald Welte f02248961e add basic-serialflash-project 2011-07-30 19:37:27 +02:00
Harald Welte 482b39a98f add basic-dataflash-example 2011-07-30 19:31:47 +02:00
Harald Welte 2f3c63fe30 add .gitignore 2011-07-30 19:31:40 +02:00
Harald Welte a6d24d323b at91lib: re-add utility/string.c from basic-dataflash-example 2011-07-30 19:31:17 +02:00
Harald Welte ef6648e27a Makefile: simtrace uses SAM7S128, not 256
also disable low power mode for now
2011-07-30 19:30:03 +02:00
Harald Welte adaa3fd67c at91lib: add dataflash (at45) from basic-dataflash-project 2011-07-30 19:28:45 +02:00
Harald Welte ae632ef83b simtrace has no USB_VBUS pin 2011-07-30 19:28:34 +02:00
Harald Welte 00138ae85e add flash_dfu linker script for sam7s128 (copy of 256 with half the flash) 2011-07-30 19:12:00 +02:00
Harald Welte b8cfdaef00 import at91sam7s128 from at91sam7-ek 2011-07-30 19:10:32 +02:00
Harald Welte 4ae5814b69 modify simtrace board.h to reflect simtrace hardware
modify simtrace board.h to reflect simtrace hardware
Update Makefile to use simtrace board
2011-07-27 12:45:51 +02:00
Harald Welte a44e5d716e start a simtrace board as copy of at91sam7-ek 2011-07-27 12:34:11 +02:00
Harald Welte 03152c4569 import cdc-serial driver part from usb-device-cdc-serial-project 2011-07-24 11:03:19 +02:00
Harald Welte b9bcac8c5d memories: add support for SST25VF040B
this is what we used in the v0.9 and v1.0 prototype builds of simtrace
2011-07-24 11:00:40 +02:00
Harald Welte 7268260e10 import 'memories' part of at91lib from serialflash-example 2011-07-24 10:59:32 +02:00
Harald Welte 7dd5963915 SAM7DFU: Add a new 'flash_dfu' memory type
this will build *-flash_dfu.{bin,elf} targets which are targetted
not for the 'raw' SAM7 hardware, but for the sam7dfu boot loader
already running in it.
2011-07-24 10:31:15 +02:00
Harald Welte cb24139232 Makefile: change default to SAM7S256 + SAM7S-EK 2011-07-24 10:30:49 +02:00
Harald Welte 4c036a6cc0 rename flash-dfu to flash_dfu
This is required as the Makefile will otherwise generate the invalid
-Dflash-dfu for the assembler command line
2011-07-24 10:26:34 +02:00
Harald Welte 9bfac6e631 modify to actually accomodate DFU
This linker script will produce a binary that can be loaded using
the sam7dfu bootloader in the SAM7
2011-07-24 10:25:45 +02:00
Harald Welte ac87fed579 add as copy of 2011-07-24 10:17:13 +02:00
Harald Welte 98f9d442b4 initial import of the usb ccid example for the sam7s 2011-07-24 09:39:28 +02:00