mirror of
https://git.code.sf.net/p/newrpl/sources
synced 2024-11-16 19:51:25 +01:00
24 lines
494 B
C
24 lines
494 B
C
/*
|
|
* Copyright (c) 2014-2015, Claudio Lapilli and the newRPL Team
|
|
* All rights reserved.
|
|
* This file is released under the 3-clause BSD license.
|
|
* See the file LICENSE.txt that shipped with this distribution.
|
|
*/
|
|
|
|
#include "fsyspriv.h"
|
|
|
|
#ifndef CONFIG_NO_FSYSTEM
|
|
|
|
// GET CLUSTER CHAIN SIZE
|
|
|
|
unsigned int FSGetChainSize(FS_FRAGMENT * fr)
|
|
{
|
|
int size = 0;
|
|
while(fr != NULL) {
|
|
size += fr->EndAddr - fr->StartAddr;
|
|
fr = fr->NextFragment;
|
|
}
|
|
return size << 9;
|
|
}
|
|
|
|
#endif
|