Skip to content

Commit

Permalink
Applying changes to only specific targets for stop-gap.
Browse files Browse the repository at this point in the history
  • Loading branch information
AGlass0fMilk committed Apr 3, 2020
1 parent 382a554 commit e1178be
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
9 changes: 0 additions & 9 deletions hal/mbed_lib.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,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_TARGET_ENABLE_OBJECTS_EXTENSIONS
#include "objects_extensions.h"
#endif

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* 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
#if MBED_CONF_TARGET_ENABLE_OBJECTS_EXTENSIONS
#include "objects_extensions.h"
#endif

Expand Down
16 changes: 14 additions & 2 deletions targets/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -11652,7 +11652,13 @@
],
"macros_add": [
"CONFIG_GPIO_AS_PINRESET"
]
],
"config": {
"enable-objects-extensions": {
"help": "Enable inclusion of objects_extensions.h",
"value": false
}
}
},
"ARDUINO_NANO33BLE": {
"inherits": [
Expand Down Expand Up @@ -14579,7 +14585,13 @@
],
"detect_code": [
"2600"
]
],
"config": {
"enable-objects-extensions": {
"help": "Enable inclusion of objects_extensions.h",
"value": false
}
}
},
"IM880B": {
"inherits": [
Expand Down

0 comments on commit e1178be

Please sign in to comment.