Skip to content

Commit ff67a96

Browse files
authored
Revert "Move BlockDevice classes inside mbed namespace"
1 parent 2a824a1 commit ff67a96

27 files changed

+30
-127
lines changed

features/filesystem/FileSystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "platform/FileHandle.h"
2424
#include "platform/DirHandle.h"
2525
#include "platform/FileSystemLike.h"
26-
#include "bd/BlockDevice.h"
26+
#include "BlockDevice.h"
2727

2828
namespace mbed {
2929
/** \addtogroup filesystem */

features/filesystem/bd/BlockDevice.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@
1717
#ifndef MBED_BLOCK_DEVICE_H
1818
#define MBED_BLOCK_DEVICE_H
1919

20-
#include "platform/platform.h"
2120
#include <stdint.h>
2221

23-
namespace mbed {
24-
/** \addtogroup filesystem */
25-
/** @{*/
2622

2723
/** Enum of standard error codes
2824
*
@@ -223,7 +219,5 @@ class BlockDevice
223219
}
224220
};
225221

226-
/** @}*/
227-
} // namespace mbed
228222

229223
#endif

features/filesystem/bd/BufferedBlockDevice.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include <algorithm>
2121
#include <string.h>
2222

23-
namespace mbed {
24-
2523
static inline uint32_t align_down(bd_size_t val, bd_size_t size)
2624
{
2725
return val / size * size;
@@ -241,5 +239,3 @@ bd_size_t BufferedBlockDevice::size() const
241239
{
242240
return _bd->size();
243241
}
244-
245-
} // namespace mbed

features/filesystem/bd/BufferedBlockDevice.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424

2525
#include "BlockDevice.h"
2626

27-
namespace mbed {
28-
/** \addtogroup filesystem */
29-
/** @{*/
3027

3128
/** Block device for allowing minimal read and program sizes (of 1) for the underlying BD,
3229
* using a buffer on the heap.
@@ -166,7 +163,5 @@ class BufferedBlockDevice : public BlockDevice {
166163

167164
};
168165

169-
/** @}*/
170-
} // namespace mbed
171166

172167
#endif

features/filesystem/bd/ChainingBlockDevice.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515
*/
1616

1717
#include "ChainingBlockDevice.h"
18-
#include "platform/mbed_critical.h"
19-
#include "platform/mbed_assert.h"
18+
#include "mbed_critical.h"
2019

21-
namespace mbed {
2220

2321
ChainingBlockDevice::ChainingBlockDevice(BlockDevice **bds, size_t bd_count)
2422
: _bds(bds), _bd_count(bd_count)
@@ -251,5 +249,3 @@ bd_size_t ChainingBlockDevice::size() const
251249
{
252250
return _size;
253251
}
254-
255-
} // namespace mbed

features/filesystem/bd/ChainingBlockDevice.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
#define MBED_CHAINING_BLOCK_DEVICE_H
2424

2525
#include "BlockDevice.h"
26+
#include "mbed.h"
2627

27-
namespace mbed {
28-
/** \addtogroup filesystem */
29-
/** @{*/
3028

3129
/** Block device for chaining multiple block devices
3230
* with the similar block sizes at sequential addresses
@@ -180,7 +178,5 @@ class ChainingBlockDevice : public BlockDevice
180178
uint32_t _init_ref_count;
181179
};
182180

183-
/** @}*/
184-
} // namespace mbed
185181

186182
#endif

features/filesystem/bd/ExhaustibleBlockDevice.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
*/
1616

1717
#include "ExhaustibleBlockDevice.h"
18-
#include "platform/mbed_critical.h"
19-
#include "platform/mbed_assert.h"
18+
#include "mbed.h"
19+
#include "mbed_critical.h"
2020

21-
namespace mbed {
2221

2322
ExhaustibleBlockDevice::ExhaustibleBlockDevice(BlockDevice *bd, uint32_t erase_cycles)
2423
: _bd(bd), _erase_array(NULL), _erase_cycles(erase_cycles), _init_ref_count(0)
@@ -142,5 +141,3 @@ bd_size_t ExhaustibleBlockDevice::size() const
142141
{
143142
return _bd->size();
144143
}
145-
146-
} // namespace mbed

features/filesystem/bd/ExhaustibleBlockDevice.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424

2525
#include "BlockDevice.h"
2626

27-
namespace mbed {
28-
/** \addtogroup filesystem */
29-
/** @{*/
3027

3128
/** Heap backed block device which simulates failures
3229
*
@@ -160,7 +157,5 @@ class ExhaustibleBlockDevice : public BlockDevice
160157
uint32_t _init_ref_count;
161158
};
162159

163-
/** @}*/
164-
} // namespace mbed
165160

166161
#endif

features/filesystem/bd/FlashSimBlockDevice.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@
1515
*/
1616

1717
#include "FlashSimBlockDevice.h"
18-
#include "platform/mbed_critical.h"
19-
#include "platform/mbed_assert.h"
20-
18+
#include "mbed_assert.h"
19+
#include "mbed_critical.h"
2120
#include <algorithm>
2221
#include <stdlib.h>
2322
#include <string.h>
2423

25-
namespace mbed {
26-
2724
static const bd_size_t min_blank_buf_size = 32;
2825

2926
static inline uint32_t align_up(bd_size_t val, bd_size_t size)
@@ -163,5 +160,3 @@ int FlashSimBlockDevice::get_erase_value() const
163160
{
164161
return _erase_value;
165162
}
166-
167-
} // namespace mbed

features/filesystem/bd/FlashSimBlockDevice.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424

2525
#include "BlockDevice.h"
2626

27-
namespace mbed {
28-
/** \addtogroup filesystem */
29-
/** @{*/
30-
3127
enum {
3228
BD_ERROR_NOT_ERASED = -3201,
3329
};
@@ -142,7 +138,4 @@ class FlashSimBlockDevice : public BlockDevice {
142138
uint32_t _init_ref_count;
143139
};
144140

145-
/** @}*/
146-
} // namespace mbed
147-
148141
#endif

0 commit comments

Comments
 (0)