From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18040 invoked by alias); 11 Jan 2012 15:41:55 -0000 Received: (qmail 17937 invoked by uid 22791); 11 Jan 2012 15:41:54 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from r-finger.com (HELO r-finger.com) (178.79.160.5) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Jan 2012 15:41:39 +0000 Received: from [192.168.0.2] (host86-142-132-88.range86-142.btcentralplus.com [86.142.132.88]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by r-finger.com (Postfix) with ESMTPSA id 40FE99C0A for ; Wed, 11 Jan 2012 15:41:37 +0000 (GMT) Message-ID: <4F0DADB1.1090404@r-finger.com> Date: Wed, 11 Jan 2012 15:41:00 -0000 From: Tomas Frydrych User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13 MIME-Version: 1.0 To: ecos-devel@ecos.sourceware.org Subject: dot matrix display infrastructure Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2012-01/txt/msg00001.txt.bz2 Hi, I am working on a driver for the Freescale Kwikstik LCD, which is a segment lcd organized as a dot matrix. As part of that, I have prototyped a simple system for drawing text, consisting of a couple of minimal bitmapped fonts, a simple font generation tool, and a rudimentary API. I am wondering whether rather than bundling such API into the Kwikstick slcd driver package, it would be beneficial to split it out and have a common API in io/dmd/ along the lines of: typedef struct cyg_dmd_device_s cyg_dmd_device; cyg_dmd_set_pixel (const cyg_dmd_device *display, bool on, uint x, uint y); typedef struct cyg_font_s cyg_font; cyg_dmd_draw_string (const cyg_dmd_device *display, const cyg_font *font, const char *text, uint x, uint y); and perhaps also something like cyg_dmd_shift_horizontal (const cyg_dmd_device *display, bool rotate, int pixels); and then driver implementations in devs/dmd/. Any thoughts? Tomas