comparison packages/devs/flash/spi/m25pxx/current/test/m25pxx_test.c @ 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 49a028abd944
children 8266015efd09
comparison
equal deleted inserted replaced
2812:fcdbe7acd0f7 2813:28304e4aafd7
374 void cyg_user_start 374 void cyg_user_start
375 (void) 375 (void)
376 { 376 {
377 do_version(); 377 do_version();
378 diag_printf ("----\nChecking for M25Pxx compatible devices.\n"); 378 diag_printf ("----\nChecking for M25Pxx compatible devices.\n");
379 cyg_flash_init (&diag_printf); 379 cyg_flash_set_global_printf((cyg_flash_printf *)&diag_printf);
380 cyg_flash_init();
380 CYG_TEST_INIT(); 381 CYG_TEST_INIT();
381 cyg_thread_create( 382 cyg_thread_create(
382 10, // Arbitrary priority 383 10, // Arbitrary priority
383 (cyg_thread_entry_t*) run_tests, // Thread entry point 384 (cyg_thread_entry_t*) run_tests, // Thread entry point
384 0, // 385 0, //