diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-10 15:07:40 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-10 15:07:40 +0000 |
commit | eba4b7056128ae85402984fb03882a5a9eb88213 (patch) | |
tree | d306aef73012c2d08a0fff678bf20826eae1d656 /os/hal/src/mmcsd.c | |
parent | b1653c7b3cac9131127bc12190e1fa89dd8c7ec1 (diff) | |
download | ChibiOS-eba4b7056128ae85402984fb03882a5a9eb88213.tar.gz ChibiOS-eba4b7056128ae85402984fb03882a5a9eb88213.tar.bz2 ChibiOS-eba4b7056128ae85402984fb03882a5a9eb88213.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4182 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src/mmcsd.c')
-rw-r--r-- | os/hal/src/mmcsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/src/mmcsd.c b/os/hal/src/mmcsd.c index 88f8a5505..44a552cbd 100644 --- a/os/hal/src/mmcsd.c +++ b/os/hal/src/mmcsd.c @@ -58,7 +58,7 @@ static uint32_t mmcsd_get_slice(uint32_t *data, uint32_t end, uint32_t start) { chDbgCheck(end >= start, "sdc_get_slice");
- while ((start - 32 * word) > 31){
+ while ((start - 32 * word) > 31) {
word++;
data++;
}
@@ -66,12 +66,12 @@ static uint32_t mmcsd_get_slice(uint32_t *data, uint32_t end, uint32_t start) { end -= 32 * word;
start -= 32 * word;
- if (end < 31){
+ if (end < 31) {
/* Value lays in one word.*/
mask = (1 << (end - start + 1)) - 1;
return (*data >> start) & mask;
}
- else{
+ else {
/* Value spread on separate words.*/
uint32_t lsb, msb;
lsb = *data >> start;
|