mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #12387 from AGlass0fMilk/objects-extensions
Add Objects Extensions Configuration Parameter to HALpull/12785/head
commit
71c9780dfe
|
@ -17,21 +17,18 @@
|
||||||
#ifndef MBED_DEVICE_H
|
#ifndef MBED_DEVICE_H
|
||||||
#define MBED_DEVICE_H
|
#define MBED_DEVICE_H
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "objects.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_TARGET_ENABLE_OBJECTS_EXTENSIONS
|
||||||
|
#include "objects_extensions.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -18,21 +18,18 @@
|
||||||
#ifndef MBED_DEVICE_H
|
#ifndef MBED_DEVICE_H
|
||||||
#define MBED_DEVICE_H
|
#define MBED_DEVICE_H
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "objects.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_TARGET_ENABLE_OBJECTS_EXTENSIONS
|
||||||
|
#include "objects_extensions.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -11652,7 +11652,13 @@
|
||||||
],
|
],
|
||||||
"macros_add": [
|
"macros_add": [
|
||||||
"CONFIG_GPIO_AS_PINRESET"
|
"CONFIG_GPIO_AS_PINRESET"
|
||||||
]
|
],
|
||||||
|
"config": {
|
||||||
|
"enable-objects-extensions": {
|
||||||
|
"help": "Enable inclusion of objects_extensions.h",
|
||||||
|
"value": false
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"ARDUINO_NANO33BLE": {
|
"ARDUINO_NANO33BLE": {
|
||||||
"inherits": [
|
"inherits": [
|
||||||
|
@ -14579,7 +14585,13 @@
|
||||||
],
|
],
|
||||||
"detect_code": [
|
"detect_code": [
|
||||||
"2600"
|
"2600"
|
||||||
]
|
],
|
||||||
|
"config": {
|
||||||
|
"enable-objects-extensions": {
|
||||||
|
"help": "Enable inclusion of objects_extensions.h",
|
||||||
|
"value": false
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"IM880B": {
|
"IM880B": {
|
||||||
"inherits": [
|
"inherits": [
|
||||||
|
|
Loading…
Reference in New Issue