23
23
#include " platform/PlatformMutex.h"
24
24
#include " BSP.h"
25
25
26
- using namespace mbed ;
26
+ // using namespace mbed;
27
27
28
28
/* *
29
29
* SDMMCBlockDevice class.
@@ -90,7 +90,7 @@ using namespace mbed;
90
90
* @endcode
91
91
*
92
92
*/
93
- class SDMMCBlockDevice : public BlockDevice
93
+ class SDMMCBlockDevice : public mbed :: BlockDevice
94
94
{
95
95
public:
96
96
@@ -121,7 +121,7 @@ class SDMMCBlockDevice : public BlockDevice
121
121
* @param size Size to read in bytes, must be a multiple of read block size
122
122
* @return 0 on success, negative error code on failure
123
123
*/
124
- virtual int read (void *buffer, bd_addr_t addr, bd_size_t size);
124
+ virtual int read (void *buffer, mbed:: bd_addr_t addr, mbed:: bd_size_t size);
125
125
126
126
/* * Program blocks to a block device
127
127
*
@@ -132,7 +132,7 @@ class SDMMCBlockDevice : public BlockDevice
132
132
* @param size Size to write in bytes, must be a multiple of program block size
133
133
* @return 0 on success, negative error code on failure
134
134
*/
135
- virtual int program (const void *buffer, bd_addr_t addr, bd_size_t size);
135
+ virtual int program (const void *buffer, mbed:: bd_addr_t addr, mbed:: bd_size_t size);
136
136
137
137
/* * Erase blocks on a block device
138
138
*
@@ -142,41 +142,41 @@ class SDMMCBlockDevice : public BlockDevice
142
142
* @param size Size to erase in bytes, must be a multiple of erase block size
143
143
* @return 0 on success, negative error code on failure
144
144
*/
145
- virtual int erase (bd_addr_t addr, bd_size_t size);
145
+ virtual int erase (mbed:: bd_addr_t addr, mbed:: bd_size_t size);
146
146
147
147
/* * Get the size of a readable block
148
148
*
149
149
* @return Size of a readable block in bytes
150
150
*/
151
- virtual bd_size_t get_read_size () const ;
151
+ virtual mbed:: bd_size_t get_read_size () const ;
152
152
153
153
/* * Get the size of a programable block
154
154
*
155
155
* @return Size of a programable block in bytes
156
156
*/
157
- virtual bd_size_t get_program_size () const ;
157
+ virtual mbed:: bd_size_t get_program_size () const ;
158
158
159
159
/* * Get the size of a eraseable block
160
160
*
161
161
* @return Size of a eraseable block in bytes
162
162
*/
163
- virtual bd_size_t get_erase_size () const ;
163
+ virtual mbed:: bd_size_t get_erase_size () const ;
164
164
165
165
/* * Get the total size of the underlying device
166
166
*
167
167
* @return Size of the underlying device in bytes
168
168
*/
169
- virtual bd_size_t size () const ;
169
+ virtual mbed:: bd_size_t size () const ;
170
170
171
171
virtual const char *get_type () const ;
172
172
173
173
private:
174
174
uint8_t _card_type;
175
- bd_size_t _read_size;
176
- bd_size_t _program_size;
177
- bd_size_t _erase_size;
178
- bd_size_t _block_size;
179
- bd_size_t _capacity_in_blocks;
175
+ mbed:: bd_size_t _read_size;
176
+ mbed:: bd_size_t _program_size;
177
+ mbed:: bd_size_t _erase_size;
178
+ mbed:: bd_size_t _block_size;
179
+ mbed:: bd_size_t _capacity_in_blocks;
180
180
BSP_SD_CardInfo _current_card_info;
181
181
uint8_t _sd_state;
182
182
uint32_t _timeout;
0 commit comments