OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [devs/] [framebuf/] [synth/] [current/] [host/] [framebuf.tdf] - Blame information for rev 791

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# Target definition file fragment for framebuffer devices.
2
#
3
# The main support available is for controlled creation
4
# of the Tk frames in which the eCos framebuffer data will
5
# be displayed. By default the main framebuf.tcl script will
6
# create the
7
 
8
proc my_framebuf_create_frame { id magnification depth little_endian width height viewport_width viewport_height stride number_pages format} {
9
 
10
    toplevel            .ecosfb$id
11
    wm title            .ecosfb$id      "eCos FB[set id]: $width*$height*\#depth"
12
    wm iconbitmap       .ecosfb$id      $framebuf::image_framebuf_icon
13
    wm iconmask         .ecosfb$id      $framebuf::image_framebufmask_icon
14
    wm protocol         .ecosfb$id      ""
15
 
16
    frame .ecosfb$id.frame -container 1 -height [expr $magnification * $viewport_height] -width [expr $magnification * $viewport_width]
17
    pack  .ecosfb$id.frame -side top -expand 0
18
 
19
    return .ecosfb$id.frame
20
}
21
 
22
synth_device framebuf {
23
 
24
    # Customize how the eCos framebuffer appears on the X display.
25
    # The argument should be a function which takes a long list of
26
    # arguments, as above, and returns a Tk frame id. Spawning the
27
    # C program is still the responsibility of the main framebuf.tcl
28
    # script.
29
    create_frame_proc   my_framebuf_create_frame
30
 
31
    # Optional magnification for all four permitted framebuffer
32
    # devices. Magnification can be 1, 2, 3 or 4
33
    # fb0_magnification 2
34
    # fb1_magnification 4
35
    # fb2_magnification 3
36
    # fb4_magnification 1
37
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.