mirror of https://github.com/ARMmbed/mbed-os.git
Added object extensions configuration parameter to HAL
parent
c8ab263388
commit
382a55487f
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"name": "hal",
|
||||
"config": {
|
||||
"enable-objects-extensions": {
|
||||
"help": "Enable inclusion of objects_extensions.h",
|
||||
"value": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -18,21 +18,18 @@
|
|||
#ifndef MBED_DEVICE_H
|
||||
#define MBED_DEVICE_H
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#include "objects.h"
|
||||
|
||||
/**
|
||||
* This allows applications and external libraries to provide
|
||||
* structs typically included in objects.h
|
||||
*
|
||||
* Useful if a chip doesn't have a certain peripheral (eg: CAN) but
|
||||
* can be equipped with one by external hardware (eg: CAN via SPI). This allows
|
||||
* the standard APIs to be used without any extra hacks.
|
||||
*/
|
||||
#if MBED_CONF_HAL_ENABLE_OBJECTS_EXTENSIONS
|
||||
#include "objects_extensions.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue