Remove mbed.h includes from I2CEEBlockDevice

pull/10711/head
Christopher Haster 2019-06-13 11:32:53 -05:00
parent 51dd44337b
commit b0d36ebfc1
3 changed files with 7 additions and 6 deletions

View File

@ -14,6 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#include "I2CEEBlockDevice.h" #include "I2CEEBlockDevice.h"
#include "mbed_wait_api.h"
using namespace mbed;
#define I2CEE_TIMEOUT 10000 #define I2CEE_TIMEOUT 10000

View File

@ -16,9 +16,8 @@
#ifndef MBED_I2CEEPROM_BLOCK_DEVICE_H #ifndef MBED_I2CEEPROM_BLOCK_DEVICE_H
#define MBED_I2CEEPROM_BLOCK_DEVICE_H #define MBED_I2CEEPROM_BLOCK_DEVICE_H
#include "mbed.h"
#include "BlockDevice.h" #include "BlockDevice.h"
#include "I2C.h"
/** BlockDevice for I2C based flash device such as /** BlockDevice for I2C based flash device such as
* Microchip's 24LC or ATMEL's AT24C ranges * Microchip's 24LC or ATMEL's AT24C ranges
@ -81,7 +80,7 @@ public:
* @param freq The frequency of the I2C bus, defaults to 400K. * @param freq The frequency of the I2C bus, defaults to 400K.
*/ */
I2CEEBlockDevice( I2CEEBlockDevice(
I2C * i2c_obj, uint8_t address, mbed::I2C * i2c_obj, uint8_t address,
bd_size_t size, bd_size_t block=32); bd_size_t size, bd_size_t block=32);
/** Destructor of I2CEEBlockDevice /** Destructor of I2CEEBlockDevice
@ -164,8 +163,8 @@ public:
virtual const char *get_type() const; virtual const char *get_type() const;
private: private:
I2C * _i2c; mbed::I2C * _i2c;
uint32_t _i2c_buffer[sizeof(I2C) / sizeof(uint32_t)]; uint32_t _i2c_buffer[sizeof(mbed::I2C) / sizeof(uint32_t)];
uint8_t _i2c_addr; uint8_t _i2c_addr;
uint32_t _size; uint32_t _size;
uint32_t _block; uint32_t _block;

View File

@ -1470,7 +1470,7 @@
}, },
"K64F": { "K64F": {
"supported_form_factors": ["ARDUINO"], "supported_form_factors": ["ARDUINO"],
"components_add": ["SD", "FLASHIAP"], "components_add": ["SD", "FLASHIAP", "I2CEE"],
"core": "Cortex-M4F", "core": "Cortex-M4F",
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"], "supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
"extra_labels": [ "extra_labels": [