Project

General

Profile

Revision 100

comment some code in test_init

View differences:

lab5.c
45 45
            printf("%s: vg_exit failed to exit to text mode.\n", __func__);
46 46
        return 1;
47 47
    };
48

  
48
    /**
49 49
    vbe_mode_info_t vbe_mem_info;
50 50

  
51 51
    if (vbe_get_mode_information(mode, &vbe_mem_info)) {
......
59 59
    unsigned int vram_size = vbe_mem_info.XResolution * vbe_mem_info.YResolution * ((vbe_mem_info.BitsPerPixel + 7) >> 3);
60 60

  
61 61
    map_vram(vram_base, vram_size); // if function fails it aborts program
62

  
62
    */
63 63
    tickdelay(micros_to_ticks(delay*1e6));
64 64

  
65 65
    if (vg_exit()) {
......
68 68
            printf("%s: lm_free failed\n", __func__);
69 69
        return 1;
70 70
    }
71

  
71
    /*
72 72
    if (free_memory()) {
73 73
        printf("%s: lm_free failed\n", __func__);
74 74
        return 1;
75
    }
76

  
75
    }*/
77 76
    return 0;
78 77
}
79 78

  
......
87 86
}
88 87

  
89 88
int(video_test_pattern)(uint16_t mode, uint8_t no_rectangles, uint32_t first, uint8_t step) {
90
  /* To be completed */
91
  printf("%s(0x%03x, %u, 0x%08x, %d): under construction\n", __func__,
92
         mode, no_rectangles, first, step);
93

  
94
  return 1;
89
    return 0;
95 90
}
96 91

  
97 92
int(video_test_xpm)(xpm_map_t xpm, uint16_t x, uint16_t y) {

Also available in: Unified diff