Changeset 507
- Timestamp:
- 04/12/07 18:01:12 (1 year ago)
- Files:
-
- trunk/hal/lpc2106-cmucam3/mmc_hardware.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/hal/lpc2106-cmucam3/mmc_hardware.c
r493 r507 394 394 static uint8_t getWriteResultCode (void) 395 395 { 396 int count = 60000l;396 unsigned int count = 100000; 397 397 uint8_t result = 0; 398 while (result == 0 && --count) 398 while (result == 0 && count>0) 399 { 399 400 result = spiGetByte (); 401 count--; 402 } 400 403 return result; 401 404 } … … 435 438 spiPutByte (0xff); 436 439 spiPutByte (0xff); 440 437 441 // next we see if all went well. 438 442 result = spiGetByte ();
