Changeset 7258c6a in buchla-68k for vlib/glcinit.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlib/glcinit.c
r0292fbb r7258c6a 63 63 #include "glcdefs.h" 64 64 65 u nsignedlcdbase; /* LCD graphics base address */66 u nsignedlcdbit; /* LCD graphics pixel bit mask */67 u nsignedlcdcol; /* LCD text column */68 u nsignedlcdctl1; /* LCD display control -- command */69 u nsignedlcdctl2; /* LCD display control -- data */70 u nsignedlcdcurs; /* LCD graphics pixel byte address */71 u nsignedlcdrow; /* LCD text row */72 u nsignedlcdx; /* LCD graphics x */73 u nsignedlcdy; /* LCD graphics y */65 uint16_t lcdbase; /* LCD graphics base address */ 66 uint16_t lcdbit; /* LCD graphics pixel bit mask */ 67 uint16_t lcdcol; /* LCD text column */ 68 uint16_t lcdctl1; /* LCD display control -- command */ 69 uint16_t lcdctl2; /* LCD display control -- data */ 70 uint16_t lcdcurs; /* LCD graphics pixel byte address */ 71 uint16_t lcdrow; /* LCD text row */ 72 uint16_t lcdx; /* LCD graphics x */ 73 uint16_t lcdy; /* LCD graphics y */ 74 74 75 75 /* GLC initialization values */ 76 76 77 charglc_is1[] = { 0x12, 0x05, 0x07, 0x54, 0x58, 0x3F, 0x55, 0x00 };78 charglc_is2[] = { 0x00, 0x00, 0x3F, 0x00, 0x20, 0x3F, 0x00, 0x00 };77 int8_t glc_is1[] = { 0x12, 0x05, 0x07, 0x54, 0x58, 0x3F, 0x55, 0x00 }; 78 int8_t glc_is2[] = { 0x00, 0x00, 0x3F, 0x00, 0x20, 0x3F, 0x00, 0x00 }; 79 79 80 80 /* … … 89 89 */ 90 90 91 void GLCdisp( short dsp, short crs, short blk1, short blk2, short blk3)92 { 93 register short val;91 void GLCdisp(int16_t dsp, int16_t crs, int16_t blk1, int16_t blk2, int16_t blk3) 92 { 93 register int16_t val; 94 94 95 95 val = ((blk3 & 3) << 6) | ((blk2 & 3) << 4) | ((blk1 & 3) << 2) | … … 110 110 */ 111 111 112 void GLCcurs( short crs)112 void GLCcurs(int16_t crs) 113 113 { 114 114 lcdctl2 = (crs & 3) | (lcdctl2 & ~3); … … 131 131 void GLCinit(void) 132 132 { 133 register int i;134 register longic;135 register char*gp;133 register int16_t i; 134 register int32_t ic; 135 register int8_t *gp; 136 136 137 137 lcdbase = G_PLANE2; /* set defaults for graphics variables */ … … 205 205 */ 206 206 207 u nsigned GLCcrc(unsigned row, unsignedcol)208 { 209 u nsignedcurad;207 uint16_t GLCcrc(uint16_t row, uint16_t col) 208 { 209 uint16_t curad; 210 210 211 211 curad = col + (row * 85); /* calculate cursor location */ … … 235 235 */ 236 236 237 u nsigned GLCcxy(unsigned x, unsignedy)238 { 239 register u nsignedcurad, xby6;237 uint16_t GLCcxy(uint16_t x, uint16_t y) 238 { 239 register uint16_t curad, xby6; 240 240 241 241 /* calculate cursor address */ … … 277 277 */ 278 278 279 void GLCwrts( char*s)279 void GLCwrts(int8_t *s) 280 280 { 281 281 LCD_WC = G_CRSMRT; /* set cursor motion = right */ … … 304 304 */ 305 305 306 void GLCtext(u nsigned row, unsigned col, char*s)307 { 308 register u nsignedcurad;306 void GLCtext(uint16_t row, uint16_t col, int8_t *s) 307 { 308 register uint16_t curad; 309 309 310 310 curad = col + (row * 85); /* calculate cursor address */
Note:
See TracChangeset
for help on using the changeset viewer.