diff --git a/TODO b/TODO index 87dd3ed89ff..0458f4ddcde 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,4 @@ -NuttX TODO List (Last updated May 14, 2010) +NuttX TODO List (Last updated May 16, 2010) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (5) Task/Scheduler (sched/) @@ -12,7 +12,7 @@ NuttX TODO List (Last updated May 14, 2010) (1) USB (drivers/usbdev) (5) Libraries (lib/) (12) File system/Generic drivers (fs/, drivers/) - (3) Graphics subystem (graphics/) + (2) Graphics subystem (graphics/) (1) Pascal add-on (pcode/) (1) Documentation (Documentation/) (6) Build system / Toolchains @@ -430,12 +430,6 @@ o Graphics subystem (graphics/) Status: Open Priority: Medium - Description: There is an issue with building NXGL on some newer tool chains - (gcc-4.2.2). The is s problem with the way that the isystem option - works with the -E option. See the full description under Build - Status: Open - Priority: This is a duplicate of an issue addressed under Build problems. - o Pascal Add-On (pcode/) ^^^^^^^^^^^^^^^^^^^^^^ diff --git a/configs/lm3s6965-ek/src/up_oled.c b/configs/lm3s6965-ek/src/up_oled.c index 55b8a3414ac..0493ce47581 100755 --- a/configs/lm3s6965-ek/src/up_oled.c +++ b/configs/lm3s6965-ek/src/up_oled.c @@ -101,8 +101,10 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno) oledcs_dumpgpio("up_nxdrvinit: After OLEDCS setup"); oleddc_dumpgpio("up_nxdrvinit: On entry"); + lm3s_configgpio(OLEDDC_GPIO); /* PC7: OLED display data/control select (D/Cn) */ lm3s_configgpio(OLEDEN_GPIO); /* PC6: Enable +15V needed by OLED (EN+15V) */ + oleddc_dumpgpio("up_nxdrvinit: After OLEDDC/EN setup"); /* Get the SSI port (configure as a Freescale SPI port) */ @@ -110,7 +112,7 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno) spi = up_spiinitialize(0); if (!spi) { - glldbg("Failed to initialize SPI port 0\n"); + glldbg("Failed to initialize SSI port 0\n"); } else { diff --git a/examples/nx/nx_kbdin.c b/examples/nx/nx_kbdin.c index 7d3bcc5fe62..3626eded964 100644 --- a/examples/nx/nx_kbdin.c +++ b/examples/nx/nx_kbdin.c @@ -67,10 +67,8 @@ # define RENDERER nxf_convert_1bpp #elif CONFIG_EXAMPLES_NX_BPP == 2 # define RENDERER nxf_convert_2bpp -#elif CONFIG_EXAMPLES_NX_BPP == 2 -# define RENDERER nxf_convert_4bpp #elif CONFIG_EXAMPLES_NX_BPP == 4 -# define RENDERER nxf_convert_8bpp +# define RENDERER nxf_convert_4bpp #elif CONFIG_EXAMPLES_NX_BPP == 8 # define RENDERER nxf_convert_8bpp #elif CONFIG_EXAMPLES_NX_BPP == 16 diff --git a/graphics/nxfonts/nxfonts_convert.c b/graphics/nxfonts/nxfonts_convert.c index ea8672c26fe..0f8788b8f91 100644 --- a/graphics/nxfonts/nxfonts_convert.c +++ b/graphics/nxfonts/nxfonts_convert.c @@ -1,7 +1,7 @@ /**************************************************************************** * graphics/nxfonts/nxfonts_convert.c * - * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2010 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -96,6 +96,14 @@ #endif +#if NXFONTS_BITSPERPIXEL < 8 +# ifdef CONFIG_NX_PACKEDMSFIRST +# define NXF_INITMASK (NXF_PIXELMASK << (8 - NXFONTS_BITSPERPIXEL)) +# else +# define NXF_INITMASK NXF_PIXELMASK +# endif +#endif + /* Form a function name by concatenating two strings */ #define _NXF_FUNCNAME(a,b) a ## b @@ -182,11 +190,7 @@ int NXF_FUNCNAME(nxf_convert,NXFONTS_SUFFIX) col = 0; dptr = (FAR NXF_PIXEL_T*)line; pixel = *dptr; -#ifdef CONFIG_NX_PACKEDMSFIRST - mask = NXF_PIXELMASK << (8 - NXFONTS_BITSPERPIXEL); -#else - mask = NXF_PIXELMASK; -#endif + mask = NXF_INITMASK; nbits = 0; for (bmndx = 0; bmndx < bm->metric.stride && col < width; bmndx++) @@ -216,7 +220,7 @@ int NXF_FUNCNAME(nxf_convert,NXFONTS_SUFFIX) { *dptr++ = pixel; pixel = *dptr; - mask = NXF_PIXELMASK; + mask = NXF_INITMASK; nbits = 0; } }