Ignore:
Timestamp:
Jul 12, 2017, 8:12:41 PM (6 years ago)
Author:
alain
Message:

Redefine the PIC device API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_fbf.c

    r65 r188  
    4141extern chdev_directory_t  chdev_dir;         // allocated in kernel_init.c
    4242
    43 extern chdev_pic_input_t  chdev_input_irq;   // allocated in kernel_init.c
    44 
    4543////////////////////////////////////
    46 void dev_fbf_init( chdev_t  * chdev,
    47                    uint32_t   width,
    48                    uint32_t   height )
     44void dev_fbf_init( chdev_t  * chdev )
    4945{
    5046    // set FBF chdev extension fields
    51     // TODO for the "width" and "height", fields, this should be done in the impementation
     47    // TODO this should be done in the impementation
    5248    // TODO specific part, as these parameters must be obtained from the hardware.
    53     chdev->ext.fbf.width  = width;
    54     chdev->ext.fbf.height = height;
     49    chdev->ext.fbf.width  = CONFIG_FBF_WIDTH;
     50    chdev->ext.fbf.height = CONFIG_FBF_HEIGHT;
    5551
    5652    // get implementation
     
    5955    // set chdev name
    6056    strcpy( chdev->name, "fbf" );
     57
    6158    // call driver init function
    6259    if( impl == IMPL_FBF_SCL )
Note: See TracChangeset for help on using the changeset viewer.