From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1388 invoked by alias); 19 Feb 2009 00:14:26 -0000 Received: (qmail 1373 invoked by uid 453); 19 Feb 2009 00:14:26 -0000 Date: Thu, 19 Feb 2009 00:14:00 -0000 Message-ID: <20090219001426.1371.qmail@sourceware.org> From: jlarmour@sourceware.org To: ecos-cvs@ecos.sourceware.org Subject: ecos/packages/io/flash/current ChangeLog doc/f ... Mailing-List: contact ecos-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: , Sender: ecos-cvs-owner@sourceware.org List-Subscribe: X-SW-Source: 2009/txt/msg00120.txt.bz2 CVSROOT: /cvs/ecos Module name: ecos Changes by: jlarmour@sourceware.org 2009-02-19 00:14:26 Modified files: packages/io/flash/current: ChangeLog packages/io/flash/current/doc: flash.sgml packages/io/flash/current/include: flash.h packages/io/flash/current/src: flash.c flashiodev.c flashiodevlegacy.c legacy_api.c legacy_dev.c Log message: * include/flash.h: Modest API change: cyg_flash_init() no longer takes a printf function argument. Instead two new API functions are available: cyg_flash_set_printf() and cyg_flash_set_global_printf(). * src/flash.c (CHATTER): Don't attempt output if printf function is NULL. (cyg_flash_init): No longer takes printf arg. (cyg_flash_set_printf): New. Set per-device printf function, locking if needed. (cyg_flash_set_global_printf): New. Set printf function for all devices, locking if needed. * src/flashiodev.c (flashiodev_init): cyg_flash_init no longer takes printf arg, and we can leave global printf at default. * src/flashiodevlegacy.c (flashiodev_init): Ditto. * src/legacy_api.c (flash_init): cyg_flash_init no longer takes printf arg. So call cyg_flash_set_global_printf as well. * src/legacy_dev.c (legacy_flash_init): legacy drivers can't handle NULL printf function, so provide a dummy. * doc/flash.sgml: Document removal of printf functionality of cyg_flash_init() and document cyg_flash_set_printf() and cyg_flash_set_global_printf().