Commit Graph

258 Commits

Author SHA1 Message Date
laforge 514b0f72f5 - Add OpenPICC register definition (and USB command handling)
- Add automatic generation of include/compile.h with svn revision and compiletime
- Add openpcd_compile_version structure to obtain version via USB
- Move LED commands into new CMD_CLS_GENERIC family
- Update TODO
- Add support for large (2048 byte) request contexts in addition to 64byte
- Shrink req_ctx size by collapsing rx and tx buffer into one
- move definition of DFU_API_LOCATION to header file
- Implement large req_ctx aware USB transmit / refill routines
- Implement TX refilling for IRQ Endpoint
- Print version information at startup time
- move some generic req_ctx processing into usb_handler.c
- Some further work on DFU (still not finished)
- Only use '-Os' for DFU, use '-O2' for application code


git-svn-id: https://svn.openpcd.org:2342/trunk@208 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-20 11:44:10 +00:00
laforge 20b657d7d2 - fix linker scripts and Cstartup.S to correctly relocate shared data
git-svn-id: https://svn.openpcd.org:2342/trunk@207 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-20 10:57:18 +00:00
laforge 7b93a43784 fix _edata_shared address definition
git-svn-id: https://svn.openpcd.org:2342/trunk@206 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-20 08:27:20 +00:00
laforge 4c36166be2 - fix relocation of _data_shared segment
git-svn-id: https://svn.openpcd.org:2342/trunk@205 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-20 07:52:39 +00:00
laforge 17f754fdb6 - add linker scripts for SAM7S128
- use S128 linker script if we build DFU for PCD


git-svn-id: https://svn.openpcd.org:2342/trunk@204 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-20 07:12:18 +00:00
laforge 1894315514 Add DFU debugging capabilities (makes DFU compile if DEBUG=1)
git-svn-id: https://svn.openpcd.org:2342/trunk@203 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-20 07:06:55 +00:00
laforge 8fba1712cb - add some more flash related definitions
git-svn-id: https://svn.openpcd.org:2342/trunk@202 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-20 00:53:39 +00:00
laforge 569d11d8a5 - implement some more missing DFU bits
- add debugging support to DFU
- introduce a auto-generated compile.h to add reviison number/... to firmware


git-svn-id: https://svn.openpcd.org:2342/trunk@201 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-20 00:50:54 +00:00
laforge 3124bf3b44 move flash code into dfu
git-svn-id: https://svn.openpcd.org:2342/trunk@200 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-20 00:45:05 +00:00
laforge ba56581054 fix location of dfu_api
git-svn-id: https://svn.openpcd.org:2342/trunk@199 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-20 00:33:46 +00:00
laforge 18a336cff0 fix typo (Henryk Ploetz)
git-svn-id: https://svn.openpcd.org:2342/trunk@198 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-17 01:35:30 +00:00
laforge fc04eb5196 add flash size definitions for AT91SAM7S64/32, correct/complete those for S128/S256
git-svn-id: https://svn.openpcd.org:2342/trunk@197 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-14 17:42:52 +00:00
laforge 0edd0722c8 spi_transceive cannot work without a rx_buffer due to hardware restrictions (Bug report by Henryk Ploetz)
git-svn-id: https://svn.openpcd.org:2342/trunk@196 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-14 02:37:42 +00:00
laforge 32985a29c1 add GPL disclaimer to all C files that I wrote
git-svn-id: https://svn.openpcd.org:2342/trunk@195 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-13 16:23:52 +00:00
laforge a97e460bea Completely separate DFU from application program, we now have a real bootloader.
DFU occupies 0x00100000 - 0x00100fff in flash, application starts at 0x00101000.
DFU also occupies the first couple of bytes in SRAM, application starts at 0x00200024.

In order to produce a samba-flashable image, first build dfu.bin by typing 
'make -f Makefule.dfu', succeeded by 'make TARGET=... DEBUG=... BOARD=...' and then 
concatenating the two files together, e.g. cat dfu.bin main_reqa.bin > flash.bin.

Actual flashing via DFU is still not operational, but will be implemented next


git-svn-id: https://svn.openpcd.org:2342/trunk@194 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-13 16:02:52 +00:00
laforge 8bd3d51b23 move to new directory
git-svn-id: https://svn.openpcd.org:2342/trunk@193 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 17:37:00 +00:00
laforge 5fdccde69e move to new directory
git-svn-id: https://svn.openpcd.org:2342/trunk@192 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 17:36:38 +00:00
laforge d256545b2f move to new directory
git-svn-id: https://svn.openpcd.org:2342/trunk@191 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 17:35:30 +00:00
(no author) 04e0441914 - we now have two interfaces in the USB device
git-svn-id: https://svn.openpcd.org:2342/trunk@190 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 17:06:05 +00:00
(no author) 9c00f1d5e2 - add SSC READ and LOOP commands
git-svn-id: https://svn.openpcd.org:2342/trunk@189 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 17:05:37 +00:00
(no author) 42182e45b1 add some more documentation / notes
git-svn-id: https://svn.openpcd.org:2342/trunk@188 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 17:04:59 +00:00
(no author) 20d5df3db6 usb performance benchmark
git-svn-id: https://svn.openpcd.org:2342/trunk@187 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 17:03:48 +00:00
(no author) 1413b9c0c8 add some WDT skeleton code
git-svn-id: https://svn.openpcd.org:2342/trunk@186 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 17:01:25 +00:00
(no author) d31e4fa682 some more debug related options (PLL lock status, button status, ssc start/stop, slave_reset)
git-svn-id: https://svn.openpcd.org:2342/trunk@185 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 17:00:30 +00:00
(no author) 9edf898547 optimize for size, rather than performance
git-svn-id: https://svn.openpcd.org:2342/trunk@184 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 16:59:47 +00:00
(no author) 222393467b pio_irq USB access
git-svn-id: https://svn.openpcd.org:2342/trunk@183 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 16:56:49 +00:00
(no author) ad18651cdc - fix bootloader switch detection
git-svn-id: https://svn.openpcd.org:2342/trunk@182 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 16:54:59 +00:00
(no author) f71a643ed6 further development of PICC ADC and SSC drivers
git-svn-id: https://svn.openpcd.org:2342/trunk@181 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 16:53:56 +00:00
(no author) 183a6122a2 base address of SPI controller is 'const'
git-svn-id: https://svn.openpcd.org:2342/trunk@180 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-12 16:52:14 +00:00
(no author) 2f7e1d317e - don't configure PA15 as MISO, since poti's are write-only
git-svn-id: https://svn.openpcd.org:2342/trunk@179 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 20:40:51 +00:00
(no author) ae3d814af1 enable clock of TC2 before configuring it
git-svn-id: https://svn.openpcd.org:2342/trunk@178 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 17:02:16 +00:00
(no author) 9b752b403f - Add notification in case PLL PIO status changes (serial + LED1)
git-svn-id: https://svn.openpcd.org:2342/trunk@177 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 16:59:51 +00:00
(no author) 7237fbce6c Further PIO IRQ fixes
git-svn-id: https://svn.openpcd.org:2342/trunk@176 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 16:59:08 +00:00
(no author) 7b041f4577 - Introduce new "BOARD=" make parameter to distinguish between PICC and PCD PIO
- Fix PIO assignments to accomodate post-production change in PICC schematics


git-svn-id: https://svn.openpcd.org:2342/trunk@175 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 16:58:02 +00:00
(no author) a88b3e54dd remove DFU specfic part that is replicated in dfu.c
git-svn-id: https://svn.openpcd.org:2342/trunk@174 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 14:51:39 +00:00
(no author) c0a3cda12b make PWM 'main' build with current environment
git-svn-id: https://svn.openpcd.org:2342/trunk@173 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 14:51:16 +00:00
(no author) 3b42a77d3f add PWM and load modulation to main_openpicc
git-svn-id: https://svn.openpcd.org:2342/trunk@172 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 14:37:15 +00:00
(no author) fbc2ed57dd use SPI controllers internal timeout
git-svn-id: https://svn.openpcd.org:2342/trunk@171 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 14:15:41 +00:00
(no author) d3294d3cf3 move PWM code to OS
git-svn-id: https://svn.openpcd.org:2342/trunk@170 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 14:14:17 +00:00
(no author) 1613ad130b move PWM code to OS
git-svn-id: https://svn.openpcd.org:2342/trunk@169 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 14:13:58 +00:00
(no author) 82a994e1ab add PLL inhibit support code for PICC
git-svn-id: https://svn.openpcd.org:2342/trunk@168 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 14:12:58 +00:00
(no author) 5cc02937f4 add unfinished code to read ADC
git-svn-id: https://svn.openpcd.org:2342/trunk@167 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 00:07:08 +00:00
(no author) 67f41d39e1 add SPI Poti data sheet
git-svn-id: https://svn.openpcd.org:2342/trunk@166 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 00:05:23 +00:00
(no author) 71de0ff028 allow user to control comparator poti via serial port
git-svn-id: https://svn.openpcd.org:2342/trunk@165 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 00:04:34 +00:00
(no author) b4d004d91c - add (currently unused) ability to put CPU in idle mode
- enable LED2 (red) after startup


git-svn-id: https://svn.openpcd.org:2342/trunk@164 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 00:03:40 +00:00
(no author) bb35dd0126 Commit code to drive SPI Potentiometers
git-svn-id: https://svn.openpcd.org:2342/trunk@163 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 00:02:46 +00:00
(no author) 4cceea07ca add PIO definitions for new PICC simulator hardware
git-svn-id: https://svn.openpcd.org:2342/trunk@162 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-10 00:00:00 +00:00
(no author) 677e0b6eab add PIT support code
git-svn-id: https://svn.openpcd.org:2342/trunk@161 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-09 18:18:39 +00:00
(no author) 29d8974fe2 - tons of compile fixes for untested PICC code
git-svn-id: https://svn.openpcd.org:2342/trunk@160 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-09 17:20:40 +00:00
(no author) 48fbcc6bff - remove bogus comment
git-svn-id: https://svn.openpcd.org:2342/trunk@159 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
2006-09-09 17:20:13 +00:00