Mercurial > ecos-v3_0-branch
changeset 2813:28304e4aafd7
* test/m25pxx_test.c (cyg_user_start): Update for minor flash API
mod to call cyg_flash_set_global_printf() to set printf
function.
| author | jlarmour |
|---|---|
| date | Thu, 19 Feb 2009 00:10:21 +0000 |
| parents | fcdbe7acd0f7 |
| children | 465fd3fc7787 |
| files | packages/devs/flash/spi/m25pxx/current/ChangeLog packages/devs/flash/spi/m25pxx/current/test/m25pxx_test.c |
| diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/devs/flash/spi/m25pxx/current/ChangeLog +++ b/packages/devs/flash/spi/m25pxx/current/ChangeLog @@ -1,3 +1,9 @@ +2009-02-18 Jonathan Larmour <jifl@eCosCentric.com> + + * test/m25pxx_test.c (cyg_user_start): Update for minor flash API + mod to call cyg_flash_set_global_printf() to set printf + function. + 2009-02-05 Chris Holgate <chris@zynaptic.com> * cdl/m25pxx.cdl:
--- a/packages/devs/flash/spi/m25pxx/current/test/m25pxx_test.c +++ b/packages/devs/flash/spi/m25pxx/current/test/m25pxx_test.c @@ -376,7 +376,8 @@ void cyg_user_start { do_version(); diag_printf ("----\nChecking for M25Pxx compatible devices.\n"); - cyg_flash_init (&diag_printf); + cyg_flash_set_global_printf((cyg_flash_printf *)&diag_printf); + cyg_flash_init(); CYG_TEST_INIT(); cyg_thread_create( 10, // Arbitrary priority
