* RE: [ECOS] Agilent AAED2000 - LCD_SUPPORT.C
@ 2003-10-08 19:24 Oscar
0 siblings, 0 replies; 4+ messages in thread
From: Oscar @ 2003-10-08 19:24 UTC (permalink / raw)
To: ecos-discuss
I'm only studies the source to try to implement microwindows on my PXA255,
and take the most recently LCD_SUPPORT.C source. At the moment i'd like take
the simpliest way and i don't need LCD_COMM. OSCAR
-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of Gary Thomas
Sent: mercoledì 8 ottobre 2003 21.12
To: Oscar
Cc: eCos Discussion
Subject: Re: [ECOS] Agilent AAED2000 - LCD_SUPPORT.C
On Wed, 2003-10-08 at 12:07, Oscar wrote:
> Inside the function lcd_clear() there's a call to set_pixel(), but the
> set_pixel() function declaration is only after the
> CYGSEM_AAED2000_LCD_COMM option. If I don't select the option the
> set_pixel() not will be built e in consequence not available for
> lcd_clear(). Is it correct?
>
It looks that way. I don't recall ever trying to build without using the
LCD_COMM mode.
Do you actually have one of these units? AFAIK, they were only prototypes
and never saw commercial light of day.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [ECOS] Agilent AAED2000 - LCD_SUPPORT.C
@ 2003-10-10 6:31 joeri_melis
0 siblings, 0 replies; 4+ messages in thread
From: joeri_melis @ 2003-10-10 6:31 UTC (permalink / raw)
To: martinos72, ecos-discuss
[-- Attachment #1: Type: text/plain, Size: 2004 bytes --]
Yes, you need LCD_COMM to have drawing support in the file that is in the repository. Attached is the diff file between my source file and the 1.15 repository I used where I changed the locations of the ifdefs so drawing was possible when LCD_COMM wasn't available. It's size is so huge because someone/something apparently removed the indentation in the preprocessor commands.
Joeri.
-----Original Message-----
From: Oscar [mailto:martinos72@libero.it]
Sent: woensdag 8 oktober 2003 20:24
To: ecos-discuss@sources.redhat.com
Subject: RE: [ECOS] Agilent AAED2000 - LCD_SUPPORT.C
I'm only studies the source to try to implement microwindows on my PXA255,
and take the most recently LCD_SUPPORT.C source. At the moment i'd like take
the simpliest way and i don't need LCD_COMM. OSCAR
-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of Gary Thomas
Sent: mercoledì 8 ottobre 2003 21.12
To: Oscar
Cc: eCos Discussion
Subject: Re: [ECOS] Agilent AAED2000 - LCD_SUPPORT.C
On Wed, 2003-10-08 at 12:07, Oscar wrote:
> Inside the function lcd_clear() there's a call to set_pixel(), but the
> set_pixel() function declaration is only after the
> CYGSEM_AAED2000_LCD_COMM option. If I don't select the option the
> set_pixel() not will be built e in consequence not available for
> lcd_clear(). Is it correct?
>
It looks that way. I don't recall ever trying to build without using the
LCD_COMM mode.
Do you actually have one of these units? AFAIK, they were only prototypes
and never saw commercial light of day.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
[-- Attachment #2: lcd_support.diff --]
[-- Type: application/octet-stream, Size: 9786 bytes --]
9,29c9,29
< //
< // -------------------------------------------
< // The contents of this file are subject to the Red Hat eCos Public License
< // Version 1.1 (the "License"); you may not use this file except in
< // compliance with the License. You may obtain a copy of the License at
< // http://www.redhat.com/
< //
< // Software distributed under the License is distributed on an "AS IS"
< // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
< // License for the specific language governing rights and limitations under
< // the License.
< //
< // The Original Code is eCos - Embedded Configurable Operating System,
< // released September 30, 1998.
< //
< // The Initial Developer of the Original Code is Red Hat.
< // Portions created by Red Hat are
< // Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc.
< // All Rights Reserved.
< // -------------------------------------------
< //
---
> //
> // -------------------------------------------
> // The contents of this file are subject to the Red Hat eCos Public License
> // Version 1.1 (the "License"); you may not use this file except in
> // compliance with the License. You may obtain a copy of the License at
> // http://www.redhat.com/
> //
> // Software distributed under the License is distributed on an "AS IS"
> // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
> // License for the specific language governing rights and limitations under
> // the License.
> //
> // The Original Code is eCos - Embedded Configurable Operating System,
> // released September 30, 1998.
> //
> // The Initial Developer of the Original Code is Red Hat.
> // Portions created by Red Hat are
> // Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc.
> // All Rights Reserved.
> // -------------------------------------------
> //
98c98
< //#ifdef CYGSEM_AAED2000_LCD_COMM
---
> #ifdef CYGSEM_AAED2000_LCD_COMM
100c100
< //#endif
---
> #endif
205a206,207
> #ifdef CYGSEM_AAED2000_LCD_COMM
>
210,213c212,215
< # ifdef CYGOPT_AAED2000_LCD_COMM_LOGO
< # include "banner.xpm"
< # endif
< # include "font.h"
---
> #ifdef CYGOPT_AAED2000_LCD_COMM_LOGO
> #include "banner.xpm"
> #endif
> #include "font.h"
221,225c223,227
< # define SCREEN_PAN 20
< # define SCREEN_WIDTH 80
< # define SCREEN_HEIGHT (LCD_HEIGHT/FONT_HEIGHT)
< # define VISIBLE_SCREEN_WIDTH (LCD_WIDTH/FONT_WIDTH)
< # define VISIBLE_SCREEN_HEIGHT (LCD_HEIGHT/FONT_HEIGHT)
---
> #define SCREEN_PAN 20
> #define SCREEN_WIDTH 80
> #define SCREEN_HEIGHT (LCD_HEIGHT/FONT_HEIGHT)
> #define VISIBLE_SCREEN_WIDTH (LCD_WIDTH/FONT_WIDTH)
> #define VISIBLE_SCREEN_HEIGHT (LCD_HEIGHT/FONT_HEIGHT)
232c234
< static int screen_start = 0;
---
> static int screen_start = 0;
242,246c244,248
< # define RED(v) ((v>>12) & 0x0F)
< # define GREEN(v) ((v>>7) & 0x0F)
< # define BLUE(v) ((v>>1) & 0x0F)
< # ifdef CYGSEM_AAED2000_LCD_PORTRAIT_MODE
< # error PORTRAIT MODE NOT IMPLEMENTED
---
> #define RED(v) ((v>>12) & 0x0F)
> #define GREEN(v) ((v>>7) & 0x0F)
> #define BLUE(v) ((v>>1) & 0x0F)
> #ifdef CYGSEM_AAED2000_LCD_PORTRAIT_MODE
> #error PORTRAIT MODE NOT IMPLEMENTED
248c250
< void
---
> static void
267c269
< *pxptr = (*pxptr & 0xF0) | BLUE(val);
---
> *pxptr = (*pxptr & 0xF0) | BLUE(val);
274c276
< # else
---
> #else
276c278
< void
---
> static void
282c284
< # endif
---
> #endif
318c320
< # ifdef USE_RGB565
---
> #ifdef USE_RGB565
320c322
< # else
---
> #else
322c324
< # endif
---
> #endif
332c334
< # ifndef CYGINT_ISO_STDIO_FORMATTED_IO
---
> #ifndef CYGINT_ISO_STDIO_FORMATTED_IO
339c341
<
---
>
350c352
< # endif
---
> #endif
352c354
< # ifdef CYGOPT_AAED2000_LCD_COMM_LOGO
---
> #ifdef CYGOPT_AAED2000_LCD_COMM_LOGO
362c364
< # ifdef CYGINT_ISO_STDIO_FORMATTED_IO
---
> #ifdef CYGINT_ISO_STDIO_FORMATTED_IO
364c366
< # else
---
> #else
369c371
< # endif
---
> #endif
384c386
< # ifdef CYGOPT_AAED2000_LCD_COMM_LOGO_TOP
---
> #ifdef CYGOPT_AAED2000_LCD_COMM_LOGO_TOP
386c388
< # else
---
> #else
388,390c390,392
< # endif
< for (row = 0; row < nrows; row++) {
< cp = xpm[nclrs+1+row];
---
> #endif
> for (row = 0; row < nrows; row++) {
> cp = xpm[nclrs+1+row];
395c397
< # ifdef CYGOPT_AAED2000_LCD_COMM_LOGO_TOP
---
> #ifdef CYGOPT_AAED2000_LCD_COMM_LOGO_TOP
399c401
< # else
---
> #else
404c406
< # endif
---
> #endif
406c408
< # endif
---
> #endif
417c419
< # ifdef CYGOPT_AAED2000_LCD_COMM_LOGO
---
> #ifdef CYGOPT_AAED2000_LCD_COMM_LOGO
419c421
< # ifdef CYGOPT_AAED2000_LCD_COMM_LOGO_TOP
---
> #ifdef CYGOPT_AAED2000_LCD_COMM_LOGO_TOP
421c423
< # else
---
> #else
423c425
< # endif
---
> #endif
425c427
< # endif // CYGOPT_AAED2000_LCD_COMM_LOGO
---
> #endif // CYGOPT_AAED2000_LCD_COMM_LOGO
457c459
< # ifndef CYGSEM_AAED2000_LCD_PORTRAIT_MODE
---
> #ifndef CYGSEM_AAED2000_LCD_PORTRAIT_MODE
459c461
< # endif
---
> #endif
462,463c464,465
< if ((x < 0) || (x >= VISIBLE_SCREEN_WIDTH) ||
< (y < 0) || (y >= screen_height)) return;
---
> if ((x < 0) || (x >= VISIBLE_SCREEN_WIDTH) ||
> (y < 0) || (y >= screen_height)) return;
465c467
< bits = font_table[c-FIRST_CHAR][l];
---
> bits = font_table[c-FIRST_CHAR][l];
468c470
< # ifndef CYGSEM_AAED2000_LCD_PORTRAIT_MODE
---
> #ifndef CYGSEM_AAED2000_LCD_PORTRAIT_MODE
488c490
< # else
---
> #else
493c495
< # endif
---
> #endif
522c524
< # ifndef CYGSEM_AAED2000_LCD_PORTRAIT_MODE
---
> #ifndef CYGSEM_AAED2000_LCD_PORTRAIT_MODE
524c526
< # endif
---
> #endif
527,529c529,531
< # if ((SCREEN_WIDTH%4) != 0)
< # error Scroll code optimized for screen with multiple of 4 columns
< # endif
---
> #if ((SCREEN_WIDTH%4) != 0)
> #error Scroll code optimized for screen with multiple of 4 columns
> #endif
540c542
< # ifdef CYGSEM_AAED2000_LCD_PORTRAIT_MODE
---
> #ifdef CYGSEM_AAED2000_LCD_PORTRAIT_MODE
543c545
< # else
---
> #else
547,549d548
< while (fb_row0 != fb_rown) {
< *(fb_row0++) = *(fb_row1++);
< }
550a550,553
> while (fb_row1 != fb_rown) {
> *fb_row0++ = *fb_row1++;
> }
> #else
569c572
< # endif
---
> #endif
603c606
< }
---
> }
615c618
< # include <stdarg.h>
---
> #include <stdarg.h>
617c620
< # define is_digit(c) ((c >= '0') && (c <= '9'))
---
> #define is_digit(c) ((c >= '0') && (c <= '9'))
780,781d782
< #ifdef CYGSEM_AAED2000_LCD_COMM
<
794,799c795,800
< # define LSHIFT 0x2a
< # define RSHIFT 0x36
< # define CTRL 0x1d
< # define ALT 0x38
< # define CAPS 0x3a
< # define NUMS 0x45
---
> #define LSHIFT 0x2a
> #define RSHIFT 0x36
> #define CTRL 0x1d
> #define ALT 0x38
> #define CAPS 0x3a
> #define NUMS 0x45
801c802
< # define BREAK 0x80
---
> #define BREAK 0x80
805,826c806,827
< # define KBNormal 0x0000
< # define KBShift 0x0001
< # define KBCtrl 0x0002
< # define KBAlt 0x0004
< # define KBIndex 0x0007 // mask for the above
<
< # define KBExtend 0x0010
< # define KBAck 0x0020
< # define KBResend 0x0040
< # define KBShiftL (0x0080 | KBShift)
< # define KBShiftR (0x0100 | KBShift)
< # define KBCtrlL (0x0200 | KBCtrl)
< # define KBCtrlR (0x0400 | KBCtrl)
< # define KBAltL (0x0800 | KBAlt)
< # define KBAltR (0x1000 | KBAlt)
< # define KBCapsLock 0x2000
< # define KBNumLock 0x4000
<
< # define KBArrowUp 0x48
< # define KBArrowRight 0x4D
< # define KBArrowLeft 0x4B
< # define KBArrowDown 0x50
---
> #define KBNormal 0x0000
> #define KBShift 0x0001
> #define KBCtrl 0x0002
> #define KBAlt 0x0004
> #define KBIndex 0x0007 // mask for the above
>
> #define KBExtend 0x0010
> #define KBAck 0x0020
> #define KBResend 0x0040
> #define KBShiftL (0x0080 | KBShift)
> #define KBShiftR (0x0100 | KBShift)
> #define KBCtrlL (0x0200 | KBCtrl)
> #define KBCtrlR (0x0400 | KBCtrl)
> #define KBAltL (0x0800 | KBAlt)
> #define KBAltR (0x1000 | KBAlt)
> #define KBCapsLock 0x2000
> #define KBNumLock 0x4000
>
> #define KBArrowUp 0x48
> #define KBArrowRight 0x4D
> #define KBArrowLeft 0x4B
> #define KBArrowDown 0x50
980,981c981,982
< # define AAED2000_KBD_COLS 8
< # define AAED2000_KBD_ROWS 12
---
> #define AAED2000_KBD_COLS 8
> #define AAED2000_KBD_ROWS 12
1011c1012
<
---
>
1013c1014
< (i < 1000) && (stable < 50); i++) {
---
> (i < 1000) && (stable < 120); i++) {
1175c1176
< static int
---
> static int
1373,1374c1374,1375
< # ifdef CYGPKG_REDBOOT
< # include <redboot.h>
---
> #ifdef CYGPKG_REDBOOT
> #include <redboot.h>
1406c1407
< # endif
---
> #endif
[-- Attachment #3: Type: text/plain, Size: 146 bytes --]
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] Agilent AAED2000 - LCD_SUPPORT.C
2003-10-08 19:07 Oscar
@ 2003-10-08 19:12 ` Gary Thomas
0 siblings, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2003-10-08 19:12 UTC (permalink / raw)
To: Oscar; +Cc: eCos Discussion
On Wed, 2003-10-08 at 12:07, Oscar wrote:
> Inside the function lcd_clear() there's a call to set_pixel(), but the
> set_pixel() function declaration is only after the CYGSEM_AAED2000_LCD_COMM
> option.
> If I don't select the option the set_pixel() not will be built e in
> consequence not available for lcd_clear().
> Is it correct?
>
It looks that way. I don't recall ever trying to build without
using the LCD_COMM mode.
Do you actually have one of these units? AFAIK, they were only
prototypes and never saw commercial light of day.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ECOS] Agilent AAED2000 - LCD_SUPPORT.C
@ 2003-10-08 19:07 Oscar
2003-10-08 19:12 ` Gary Thomas
0 siblings, 1 reply; 4+ messages in thread
From: Oscar @ 2003-10-08 19:07 UTC (permalink / raw)
To: ecos-discuss
Inside the function lcd_clear() there's a call to set_pixel(), but the
set_pixel() function declaration is only after the CYGSEM_AAED2000_LCD_COMM
option.
If I don't select the option the set_pixel() not will be built e in
consequence not available for lcd_clear().
Is it correct?
Thanks
OSCAR
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-10-10 6:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-08 19:24 [ECOS] Agilent AAED2000 - LCD_SUPPORT.C Oscar
-- strict thread matches above, loose matches on Subject: below --
2003-10-10 6:31 joeri_melis
2003-10-08 19:07 Oscar
2003-10-08 19:12 ` Gary Thomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).