Mercurial > ecos
changeset 2815:3cd309d2d829
* tests/flash2.c (cyg_user_start): Update for minor flash API
mod to call cyg_flash_set_global_printf() to set printf
function.
* tests/flash3.c (cyg_user_start): Ditto.
| author | jlarmour |
|---|---|
| date | Thu, 19 Feb 2009 00:13:34 +0000 |
| parents | 465fd3fc7787 |
| children | 422d0a343b4d |
| files | packages/devs/flash/synthv2/current/ChangeLog packages/devs/flash/synthv2/current/tests/flash2.c packages/devs/flash/synthv2/current/tests/flash3.c |
| diffstat | 3 files changed, 14 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/devs/flash/synthv2/current/ChangeLog +++ b/packages/devs/flash/synthv2/current/ChangeLog @@ -1,3 +1,10 @@ +2009-02-18 Jonathan Larmour <jifl@eCosCentric.com> + + * tests/flash2.c (cyg_user_start): Update for minor flash API + mod to call cyg_flash_set_global_printf() to set printf + function. + * tests/flash3.c (cyg_user_start): Ditto. + 2008-12-23 Simon Kallweit <simon.kallweit@intefo.ch> * src/synth.c: Implemented simulation of proper NOR flash writes. @@ -75,7 +82,7 @@ 2004-07-17 Andrew Lunn <andrew.lunn@as // ####GPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. -// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by
--- a/packages/devs/flash/synthv2/current/tests/flash2.c +++ b/packages/devs/flash/synthv2/current/tests/flash2.c @@ -11,7 +11,7 @@ static char copyright[] = "// ####ECOSGPLCOPYRIGHTBEGIN#### " "// ------------------------------------------- " "// This file is part of eCos, the Embedded Configurable Operating System. " -"// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. " +"// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc. " "// " "// eCos is free software; you can redistribute it and/or modify it under " "// the terms of the GNU General Public License as published by the Free " @@ -95,7 +95,8 @@ void cyg_user_start(void) CYG_TEST_INIT(); - ret=cyg_flash_init((cyg_flash_printf *)diag_printf); + cyg_flash_set_global_printf((cyg_flash_printf *)&diag_printf); + ret=cyg_flash_init(); CYG_TEST_PASS_FAIL((ret == CYG_FLASH_ERR_OK),"flash_init");
--- a/packages/devs/flash/synthv2/current/tests/flash3.c +++ b/packages/devs/flash/synthv2/current/tests/flash3.c @@ -11,7 +11,7 @@ static char copyright[] = "// ####ECOSGPLCOPYRIGHTBEGIN#### " "// ------------------------------------------- " "// This file is part of eCos, the Embedded Configurable Operating System. " -"// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. " +"// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc. " "// " "// eCos is free software; you can redistribute it and/or modify it under " "// the terms of the GNU General Public License as published by the Free " @@ -119,7 +119,8 @@ void cyg_user_start(void) // Reference the flash dev so the linker does not throw it away CYG_REFERENCE_OBJECT(cyg_flash_synth_flashdev_flash3); - ret=cyg_flash_init((cyg_flash_printf *)diag_printf); + cyg_flash_set_global_printf((cyg_flash_printf *)&diag_printf); + ret=cyg_flash_init(); CYG_TEST_PASS_FAIL((ret == CYG_FLASH_ERR_OK),"flash_init");
