File tree 3 files changed +38
-32
lines changed
TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840
3 files changed +38
-32
lines changed Original file line number Diff line number Diff line change 17
17
#ifndef MBED_DEVICE_H
18
18
#define MBED_DEVICE_H
19
19
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
20
#include "objects.h"
36
21
22
+ /**
23
+ * This allows applications and external libraries to provide
24
+ * structs typically included in objects.h
25
+ *
26
+ * Useful if a chip doesn't have a certain peripheral (eg: CAN) but
27
+ * can be equipped with one by external hardware (eg: CAN via SPI). This allows
28
+ * the standard APIs to be used without any extra hacks.
29
+ */
30
+ #if MBED_CONF_TARGET_ENABLE_OBJECTS_EXTENSIONS
31
+ #include "objects_extensions.h"
32
+ #endif
33
+
37
34
#endif
Original file line number Diff line number Diff line change 18
18
#ifndef MBED_DEVICE_H
19
19
#define MBED_DEVICE_H
20
20
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
21
#include "objects.h"
37
22
23
+ /**
24
+ * This allows applications and external libraries to provide
25
+ * structs typically included in objects.h
26
+ *
27
+ * Useful if a chip doesn't have a certain peripheral (eg: CAN) but
28
+ * can be equipped with one by external hardware (eg: CAN via SPI). This allows
29
+ * the standard APIs to be used without any extra hacks.
30
+ */
31
+ #if MBED_CONF_TARGET_ENABLE_OBJECTS_EXTENSIONS
32
+ #include "objects_extensions.h"
33
+ #endif
34
+
38
35
#endif
Original file line number Diff line number Diff line change 11652
11652
],
11653
11653
"macros_add" : [
11654
11654
" CONFIG_GPIO_AS_PINRESET"
11655
- ]
11655
+ ],
11656
+ "config" : {
11657
+ "enable-objects-extensions" : {
11658
+ "help" : " Enable inclusion of objects_extensions.h" ,
11659
+ "value" : false
11660
+ }
11661
+ }
11656
11662
},
11657
11663
"ARDUINO_NANO33BLE" : {
11658
11664
"inherits" : [
14579
14585
],
14580
14586
"detect_code" : [
14581
14587
" 2600"
14582
- ]
14588
+ ],
14589
+ "config" : {
14590
+ "enable-objects-extensions" : {
14591
+ "help" : " Enable inclusion of objects_extensions.h" ,
14592
+ "value" : false
14593
+ }
14594
+ }
14583
14595
},
14584
14596
"IM880B" : {
14585
14597
"inherits" : [
You can’t perform that action at this time.
0 commit comments