1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-27 18:06:16 +02:00
Commit Graph

52 Commits

Author SHA1 Message Date
Werner Almesberger
67107d0062 ubb-vga: option -d to double the number of set/clear pairs, improving resolution
- README: added compatibility of double mode
- ubb-vga.c (usage, main): new option -d to double the number of set/clear
  pairs (making lines longer and the apparent pixel clock slower)
- ubb-vga.c (grab, session, main): have a complete set/clear pair for each
  pixel in double mode
2011-04-24 21:09:50 -03:00
Werner Almesberger
dab839ab66 ubb-vga.c: moved line length and timing to variables
- ubb-vga.c (line_pairs, line, frame, tricolor, grid, session): line
  length is now kept in a variable, instead of hard-coding its value
  and the values derived from it
- ubb-vga.c (line_cycles, line, hdelay): the total line duration is now
  kept in a variable, instead of hard-coding it all over the place
2011-04-24 20:01:12 -03:00
Werner Almesberger
dae21696b3 ubb-vga.c: a bit more cleanup
- ubb-vga.c: added more section titles
- ubb-vga.c (pick, pattern): grouped pixel-generating functions with
  image generation
- ubb-vga.c (usage, main): properly parse command-line options ("getopt"
  is a bit of overkill at the moment but will be needed later)
2011-04-24 19:43:26 -03:00
Werner Almesberger
554c6645d8 ubb-vga.c: removed unused #defines and rearranged the code a little 2011-04-24 12:12:36 -03:00
Werner Almesberger
fb153b2bf3 ubb-vga/README: added title and compatibility list 2011-04-24 12:02:48 -03:00
Werner Almesberger
8bd7199d9e ubb-vga.c: removed commented-out code from earlier experiments
The history of the split prefetch code:

Once up on a time, I thought that it was important to stay very close
to the "official" pixel clock. We could do this when copying 32 bit
words from cache to the GPIO set/clear registers, but not when
shifting 8 bit values as we do now.

One problem with 32 bit values is that transferring that amount of
data exceeds the time available in the hsync pulse. Hence the idea
to split the prefetch between hsync pulse and horizontal front porch.

Note that we also split prefetches between the two VGA lines of each
QVGA line. This commit does not change that mechanism.

- ubb-vga.c (line, frame): removed code fragments for prefetch split
  between hsync pulse and front porch
- ubb-vga.c (line, frame): remove code fragments for measuring time
  relative to the rising edge of hsync (and letting the prefetch time
  control the hsync length), not the falling edge
2011-04-24 11:48:32 -03:00
Werner Almesberger
3b7a7caec1 renamed "video" to ubb-vga 2011-04-24 02:56:56 -03:00
Werner Almesberger
b11dc612e2 video/README: documented sources and implementation quirks 2011-04-24 02:54:55 -03:00
Werner Almesberger
7d95fe8a35 video/: added Makefile and schematics 2011-04-24 02:36:56 -03:00
Werner Almesberger
18f2957cd4 video.c: working version, with screen grabber 2011-04-24 00:10:23 -03:00
Werner Almesberger
b85ae15479 video/video.c: pseudo-VGA output (test pattern only) 2011-04-23 23:26:42 -03:00
Werner Almesberger
6ef2b394f9 avrdude/: fixed confusing typo in avrdude.conf, added tuxbrain's nanonote_ICSP
- nanonote-nxuart.patch (avrdude.conf): typo, CMD is signal 6, not 5 (by
  David Reyes Samblas Martinez)
- series, nanonote-icsp.patch (avrdude.conf): NanoNote ICSP 8:10 cable,
  by David Reyes Samblas Martinez
2011-03-09 17:28:24 -03:00
Werner Almesberger
d7874e306c avrdude/patches/: added skipping of untouched bytes in write/verify
- series, low-addr.patch: record the lowest address touched (only for
  ihex, all others default to 0)
- series, skip-low-addr.patch: skip untouched addresses in avr_read
  and avr_write
2011-03-09 01:50:51 -03:00
Werner Almesberger
ea5b8af399 avrdude/patches/nanonote.patch: oops, clock math was old, slightly broken version 2011-03-08 21:23:15 -03:00
Werner Almesberger
a8c10a0050 nxuart/fw/Makefile (prog): supply an 8 MHz clock while programming 2011-03-07 17:21:54 -03:00
Werner Almesberger
0c2b98274f avrdude/patches/nanonote.patch: added clock output with -x clk=#MHz
- nanonote.c (nanonote_open): increased register window to include clock
  and MMC controller registers
- nanonote.c (gpio_function): set a pin to function or GPIO
- nanonote.c (nanonote_initpgm, nanonote_parseextparams): accept the
  extended option clk=N where N is the clock frequency in (whole) MHz
- nanonote.c (nanonote_enable): if the clock option is set, switch CLK
  to function and output the specified clock
2011-03-07 17:07:44 -03:00
Werner Almesberger
fc324599df nxuart/fw/: renamed "uart" to "nxuart" as well
- uart.c: renamed to nxuart.c
- Makefile: abstracted project name through $(NAME)
2011-03-07 14:55:20 -03:00
Werner Almesberger
de826dd734 avrdude/patches: renamed "uart" to "nxuart"
- patches/series, patches/nanonote-uart.patch: renamed to
  patches/nanonote-nxuart.patch
- patches/nanonote-nxuart.patch: changed ID from "nanonote_uart" to
  "nanonote_nxuart"
- patches/nanonote-nxuart.patch: added "External" to title/description
2011-03-07 14:50:17 -03:00
Werner Almesberger
4fa0a3437e nxuart/: changed title in nxuart.sch and nxuart.brd 2011-03-07 14:47:26 -03:00
Werner Almesberger
5b14b505b4 uart/: great renaming to nxuart, including references in Makefile 2011-03-07 14:42:44 -03:00
Werner Almesberger
271a50f3c2 uart/avrdude: renamed to ./avrdude (i.e., moved to the top-level) 2011-03-07 13:49:28 -03:00
Werner Almesberger
a05155e15e usb/cam/Makefile: added dependency in Makefile itself; local parameter update 2011-03-07 13:43:36 -03:00
Werner Almesberger
3d3bf1507a uart/avrdude/README: updated build instructions and added OpenWRT
- README: removed unnecessary "make" run after second "configure"
- README: added brief explanation why we need to run "configure" twice
- README: added build instructions for OpenWRT
2011-02-27 09:09:00 -03:00
Werner Almesberger
daa6331650 ubb/cam/Makefile: use mkmk-simple 2011-02-15 04:20:51 -03:00
Werner Almesberger
0c56f05575 nanonote.patch: cleanup and properly power down on exit (also turns off LED)
- nanonote.c: remove some commented-out items
- nanonote.c (nanonote_powerdown): make all data lines inputs on exit,
  making it more likely that the target powers down
2011-02-15 00:34:43 -03:00
Werner Almesberger
36a44995cd avrdude/atmega32u2.patch: experimental configuration for the ATmega32U2 2011-02-11 08:51:55 -03:00
Werner Almesberger
0d6dddf85a nanonote.patch: decrease extra delay from 100 to 20 us (sufficient and faster) 2011-02-09 21:18:24 -03:00
Werner Almesberger
7fba9a2a51 ubb: cleaned up board for "production readiness"
- ubb.brd: added project name, license, and "qi-hw.com"
- ubb.brd: duplicated text on front copper layer to silk screen
- ubb.brd: changed component references to more meaningful information,
  in case they are printed on a PCB
- ubb.brd: removed unused layers
- ubb.brd: bumped version number to 110207
- Makefile: added commented-out "gerber" target, as a reminder
2011-02-07 07:05:40 -03:00
Werner Almesberger
0e203be5c2 uart.sch: KiCad resents 0.1", changed to 0.1 in 2011-02-06 17:42:16 -03:00
Werner Almesberger
375208a0da nanonote-atusb.patch (avrdude.conf.in): reassign pins for latest atusb-pgm 2011-02-04 17:57:42 -03:00
Werner Almesberger
9778f3fb1b uart/avrdude: various corrections
nanonote-uart.patch:

- avrdude.conf.in: CLK is reserved for clock output

nanonote.patch:

- nanonote.c (pin_map, nanonote_setpin, nanonote_getpin): make pin map
  zero-based
- nanonote.c (nanonote_setpin): instead of having out own delay loop
  setting the pin repeatedly, just add the delay we need to
  pgm->ispdelay+100
- nanonote.c (nanonote_setpin): increase delay for atusb-pgm
- nanonote.c (nanonote_getpin, nanonote_open): begin with all pins set
  to output and switch MISO only when read
2011-02-04 17:51:27 -03:00
Werner Almesberger
1557630a8b uart/avrdude: added patch for pin assignment of the ATUSB-pgm adapter 2011-02-03 22:00:46 -03:00
Werner Almesberger
9024942ac1 uart/avrdude: moved avrdude.conf.in change for UART to separate patch 2011-02-03 21:55:00 -03:00
Werner Almesberger
5b7cc3edb6 ubb/cam: CAM process for cutting the PCB, now with parametrized "mkmk" 2011-02-02 21:42:37 -03:00
Werner Almesberger
8172464c05 ubb: universal breakout board in 8:10 card format 2011-02-02 20:27:27 -03:00
Werner Almesberger
5d7c78edac uart: added more values to schematics, added files for BOM processing
- uart.sch (D1): added value LTST-C190KRKT
- uart.sch (K1): footprint was incorrectly placed in value field
- uart.sch (K1): added value 3M 961103-5604-AR
- uart/bom: added BOM infrastructure and definitions
2011-02-01 23:43:05 -03:00
Werner Almesberger
0ec7bb4ab5 uart/Makefile: forgot to commit this one. oopsie. 2011-02-01 23:08:07 -03:00
Werner Almesberger
979be291e3 uart/fw/: dummy firmware with build and programming process 2011-02-01 22:45:54 -03:00
Werner Almesberger
1826cc2d89 uart/avrdude/: patch and build instructions for avrdude 2011-02-01 21:55:15 -03:00
Werner Almesberger
f67f7a9a30 uart/cam/: the usual CAM process for cutting the PCB 2011-02-01 12:03:01 -03:00
Werner Almesberger
d3ab4abe5c uart: the AVR requires nSS for slave mode
- components/atmega48-mmu.lib: added nSS function to pin 12
- components/atmega48-mmu.lib (RESET): renamed to nRESET
- uart.sch: removed INT and used it for nSS instead
- uart.brd: redid layout for above change
2011-01-31 21:35:45 -03:00
Werner Almesberger
e7ec5c8ad4 Added simple UART 8:10 card.
- BOOKSHELF: ATmega48 data sheet
- Makefile (dsv): added target to populate the book shelf
- components/atmega48-mmu.lib, components/atmega48-mmu.dcm: ATmega48-MMU
  schematics symbol
- usrt.pro, uart.sch, uart.cmp, uart.brd: ATmega48-based UART board
2011-01-31 19:02:50 -03:00
Werner Almesberger
623c32304e bbl.brd: updated 8:10-CARD to update pad type 2011-01-18 16:08:00 -03:00
Werner Almesberger
d7839511a9 README: changed "uSD" to "8:10 card" 2011-01-17 12:45:42 -03:00
Werner Almesberger
903709097e use 8_10-card.fpd instead of usd-card.fpd
- bbl.pro (LibName2) : use ../kicad-libs/modules/8_10-card instead of
  ../kicad-libs/modules/usd-card
- bbl.sch: use footprint "8:10-card" instead of "uSD-Card"
- bbl.cmp, bbl.brd: updated for renaming of usd-card.fpd
2011-01-17 12:42:49 -03:00
Werner Almesberger
76c0616f6c bbl.c (main): open /dev/mem with O_SYNC to disable caching 2011-01-03 18:31:38 -03:00
Werner Almesberger
49c76e0f8e ext/: added uSD extender board (draft) 2010-11-02 12:17:20 -03:00
Werner Almesberger
979a631ef5 Be more careful with "volatile". It still worked, but was not a good example.
- bbl/bbl.c (REG): the cast took the volatile away
2010-09-02 03:09:16 -03:00
Werner Almesberger
1f509de5ad Cleaned up bbl.c and added comments.
- bbl/bbl.c: PD* macros now contain the REG(), making their use easier
- bbl/bbl.c: added description of the XBurst set/clear concept
- bbl/bbl.c: added comments all over the place
2010-09-01 21:49:22 -03:00
Werner Almesberger
87f1ae7744 Get stdpass from kicad-libs. Added bbl.cmp to make pcbnew happy.
- bbl.pro: use stdpass in kicad-libs, not the copy in ben-wpan (the latter
  project will use kicad-libs too)
- bbl.cmp: added to stop pcbnew from complaining each time we read the
  netlist
2010-09-01 19:06:01 -03:00