switched to 32-bit iteration variable for long-running tests.
This commit is contained in:
parent
0f6954cc43
commit
06a2fc40ec
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: sd-test.c,v 1.2 2009/05/26 13:00:37 nvt-se Exp $
|
* $Id: sd-test.c,v 1.3 2009/05/26 13:03:44 nvt-se Exp $
|
||||||
*
|
*
|
||||||
* \file
|
* \file
|
||||||
* A simple example of using the SD card on the MSB430 platform.
|
* A simple example of using the SD card on the MSB430 platform.
|
||||||
|
@ -61,7 +61,7 @@ PROCESS_THREAD(test_sd_process, ev, data)
|
||||||
static struct etimer et;
|
static struct etimer et;
|
||||||
#endif
|
#endif
|
||||||
static int r;
|
static int r;
|
||||||
static unsigned iter;
|
static unsigned long iter;
|
||||||
static uint32_t offset;
|
static uint32_t offset;
|
||||||
|
|
||||||
PROCESS_BEGIN();
|
PROCESS_BEGIN();
|
||||||
|
@ -70,7 +70,7 @@ PROCESS_THREAD(test_sd_process, ev, data)
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
printf("\n\nIteration %u\n", ++iter);
|
printf("\n\nIteration %u\n", ++iter);
|
||||||
sprintf(buf, "Testing the SD memory #%u.", iter);
|
sprintf(buf, "Testing the SD memory #%lu.", iter);
|
||||||
|
|
||||||
#if CALM_MODE
|
#if CALM_MODE
|
||||||
etimer_set(&et, CLOCK_SECOND);
|
etimer_set(&et, CLOCK_SECOND);
|
||||||
|
|
Loading…
Reference in a new issue