TXT Update: 1024x768
Fixed mode bit for channel A 1024x768
This commit is contained in:
parent
3a9f847add
commit
855676864a
|
@ -535,7 +535,7 @@ void txt_a2560k_a_init() {
|
|||
txt_a2560k_a_set_mode(TXT_MODE_TEXT);
|
||||
|
||||
/* Set the resolution */
|
||||
txt_a2560k_a_set_resolution(800, 600); /* Default resolution is 800x600 */
|
||||
txt_a2560k_a_set_resolution(800, 600); /* Default resolution is 800x600 */
|
||||
|
||||
/* Set the default color: light grey on blue */
|
||||
txt_a2560k_a_set_color(0x07, 0x04);
|
||||
|
@ -547,7 +547,7 @@ void txt_a2560k_a_init() {
|
|||
txt_a2560k_a_set_cursor(1, 0, 0xB1);
|
||||
|
||||
/* Set the border */
|
||||
txt_a2560k_a_set_border(32, 32); /* No border for now */
|
||||
txt_a2560k_a_set_border(32, 32); /* Set up the border */
|
||||
txt_a2560k_a_set_border_color(0x7f, 0x00, 0x7f);
|
||||
|
||||
/*
|
||||
|
|
|
@ -195,41 +195,39 @@ void initialize() {
|
|||
ind_init();
|
||||
log(LOG_INFO, "Indicators initialized");
|
||||
|
||||
// txt_init();
|
||||
// if (res = txt_a2560k_b_install()) {
|
||||
// log(LOG_ERROR, "Could not install A2560K Channel B driver");
|
||||
// } else {
|
||||
// log(LOG_ERROR, "A2560K Channel B driver installed");
|
||||
// }
|
||||
// txt_init_screen(TXT_SCREEN_A2560K_B);
|
||||
// txt_set_border(TXT_SCREEN_A2560K_B, 0, 0);
|
||||
// txt_set_region(TXT_SCREEN_A2560K_B, 0);
|
||||
// txt_fill(TXT_SCREEN_A2560K_B, 'Y');
|
||||
//
|
||||
// txt_set_xy(TXT_SCREEN_A2560K_B, 0, 0);
|
||||
// for (int x = 0; x < 600; x++) {
|
||||
// txt_print(TXT_SCREEN_A2560K_B, "Hello! ");
|
||||
// }
|
||||
//
|
||||
// t_rect region;
|
||||
// region.origin.x = 5;
|
||||
// region.origin.y = 10;
|
||||
// region.size.width = 20;
|
||||
// region.size.height = 10;
|
||||
// txt_set_region(TXT_SCREEN_A2560K_B, ®ion);
|
||||
// txt_set_color(TXT_SCREEN_A2560K_B, 0x07, 0x00);
|
||||
// txt_set_xy(TXT_SCREEN_A2560K_B, 0, 0);
|
||||
// txt_fill(TXT_SCREEN_A2560K_B, ' ');
|
||||
txt_init();
|
||||
if (res = txt_a2560k_a_install()) {
|
||||
log(LOG_ERROR, "Could not install A2560K Channel B driver");
|
||||
} else {
|
||||
log(LOG_ERROR, "A2560K Channel B driver installed");
|
||||
}
|
||||
txt_init_screen(TXT_SCREEN_A2560K_A);
|
||||
txt_fill(TXT_SCREEN_A2560K_A, 'Y');
|
||||
|
||||
// for (int x = 0; x < 15; x++) {
|
||||
// char buffer[80];
|
||||
// sprintf(buffer, "Line %d...\n\r", x);
|
||||
// txt_print(TXT_SCREEN_A2560K_B, buffer);
|
||||
// }
|
||||
txt_set_xy(TXT_SCREEN_A2560K_A, 0, 0);
|
||||
for (int x = 0; x < 600; x++) {
|
||||
txt_print(TXT_SCREEN_A2560K_A, "Hello! ");
|
||||
}
|
||||
|
||||
// txt_scroll(TXT_SCREEN_A2560K_B, -2, 2);
|
||||
t_rect region;
|
||||
region.origin.x = 5;
|
||||
region.origin.y = 10;
|
||||
region.size.width = 20;
|
||||
region.size.height = 10;
|
||||
txt_set_region(TXT_SCREEN_A2560K_A, ®ion);
|
||||
txt_set_color(TXT_SCREEN_A2560K_A, 0x07, 0x00);
|
||||
txt_set_xy(TXT_SCREEN_A2560K_A, 0, 0);
|
||||
txt_fill(TXT_SCREEN_A2560K_A, ' ');
|
||||
|
||||
// while (1) ;
|
||||
for (int x = 0; x < 15; x++) {
|
||||
char buffer[80];
|
||||
sprintf(buffer, "Line %d...\n\r", x);
|
||||
txt_print(TXT_SCREEN_A2560K_A, buffer);
|
||||
}
|
||||
|
||||
txt_scroll(TXT_SCREEN_A2560K_A, -2, 2);
|
||||
|
||||
while (1) ;
|
||||
|
||||
/* Initialize the interrupt system */
|
||||
int_init();
|
||||
|
|
9331
src/foenixmcp.s68
9331
src/foenixmcp.s68
File diff suppressed because it is too large
Load diff
|
@ -11,7 +11,7 @@
|
|||
#define VKY3_A_MCR ((volatile unsigned long *)0xFEC40000)
|
||||
#define VKY3_A_MCR_TEXT 0x00000001 /**< Text mode enable bit */
|
||||
#define VKY3_A_MCR_SLEEP 0x00040000 /**< Monitor sleep (synch disable) bit */
|
||||
#define VKY3_A_1024x768 0x00000100 /**< Bit to select 1024x768 screen resolution */
|
||||
#define VKY3_A_1024x768 0x00000800 /**< Bit to select 1024x768 screen resolution */
|
||||
|
||||
/** Border control register for Channel A */
|
||||
#define VKY3_A_BCR ((volatile unsigned long *)0xFEC40004)
|
||||
|
|
18336
src/mapfile
18336
src/mapfile
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue