Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/mach/testarm/testarm.c

    ra71c158 r30885b9  
    5757
    5858struct arm_machine_ops machine_ops = {
     59        MACHINE_GENFUNC,
     60        MACHINE_GENFUNC,
    5961        gxemul_init,
    6062        gxemul_timer_irq_start,
    6163        gxemul_cpu_halt,
    6264        gxemul_get_memory_size,
     65        gxemul_fb_init,
    6366        gxemul_irq_exception,
     67        gxemul_get_fb_address,
    6468        gxemul_frame_init,
    6569        gxemul_output_init,
     
    7478}
    7579
    76 void gxemul_output_init(void)
    77 {
    78 #ifdef CONFIG_FB
     80void gxemul_fb_init(void)
     81{
    7982        fb_properties_t prop = {
    8083                .addr = GXEMUL_FB_ADDRESS,
     
    8588                .visual = VISUAL_RGB_8_8_8,
    8689        };
    87        
    88         outdev_t *fbdev = fb_init(&prop);
    89         if (fbdev)
    90                 stdout_wire(fbdev);
    91 #endif
    92        
    93 #ifdef CONFIG_ARM_PRN
    94         outdev_t *dsrlndev = dsrlnout_init((ioport8_t *) gxemul_kbd);
    95         if (dsrlndev)
    96                 stdout_wire(dsrlndev);
    97 #endif
     90        fb_init(&prop);
     91}
     92
     93void gxemul_output_init(void)
     94{
     95        dsrlnout_init((ioport8_t *) gxemul_kbd);
    9896}
    9997
     
    235233}
    236234
     235uintptr_t gxemul_get_fb_address()
     236{
     237        return ((uintptr_t)GXEMUL_FB_ADDRESS);
     238}
     239
     240
    237241/** @}
    238242 */
Note: See TracChangeset for help on using the changeset viewer.