forked from arduino/ArduinoCore-mbed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmbed_app.json5
117 lines (102 loc) · 3.88 KB
/
mbed_app.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"macros": [
// Increase number of low power input pins on NRF devices
"NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS=8",
// Enable watchdog timer API on NRF devices
"NRFX_WDT_ENABLED=1",
// Disable 'using namespace mbed'
"MBED_NO_GLOBAL_USING_DIRECTIVE=1",
"MBED_HEAP_STATS_ENABLED=1",
"MBED_STACK_STATS_ENABLED=1",
"MBED_MEM_TRACING_ENABLED=1",
"USE_ARDUINO_PINOUT"
],
"target_overrides": {
"*": {
"target.printf_lib": "std",
"platform.stdio-buffered-serial": false,
"platform.stdio-baud-rate": 115200,
"platform.default-serial-baud-rate": 115200,
"platform.callback-nontrivial": true,
"platform.all-stats-enabled": true,
"rtos.main-thread-stack-size": 32768,
// Don't activate Mbed's USB console support; Arduino brings its own USB console system
"target.console-usb": false,
"target.console-uart": true,
// Enable tracing of warnings/errors as this can help us get some better tracing when things go wrong
"mbed-trace.enable": true,
"mbed-trace.max-level": "TRACE_LEVEL_WARN"
},
"ARDUINO_NICLA_SENSE_ME": {
// Stack sizes have to get reduced a bit so that we don't run out of RAM, as this device only has
// 64k available.
"rtos.main-thread-stack-size": 4096,
"rtos.thread-stack-size": 1024,
"target.macros_remove": ["CONFIG_GPIO_AS_PINRESET"],
"platform.all-stats-enabled": false,
"ble.ble-role-central": false,
"ble.ble-role-observer": true,
"ble.ble-gap-max-advertising-sets": 1,
"ble.ble-gap-host-max-advertising-start-commands": 1,
"ble.ble-gap-host-privacy-resolved-cache-size": 1,
"ble.ble-feature-gatt-client": false,
"ble.ble-feature-security": true,
"ble.ble-feature-secure-connections": false,
"ble.ble-feature-signing": false,
"ble.ble-feature-whitelist": false,
"ble.ble-feature-privacy": false,
"ble.ble-feature-periodic-advertising": false,
"ble.ble-security-database-filesystem": false,
"ble.ble-security-database-kvstore": false,
"ble.ble-gap-host-based-private-address-resolution": false,
"ble.ble-gap-max-advertising-reports-pending-address-resolution": false,
"cordio.max-connections": 3
},
"RASPBERRY_PI_PICO": {
// This allows use of Mbed TLS even on RP2040 which does not have a cryptographic RNG.
// Application author is expected to provide overrides for reading & writing the seed:
// https://github.com/arduino/ArduinoCore-mbed/pull/445/files
"mbedtls.entropy-nv-seed": 1
},
"ARDUINO_NANO33BLE": {
"cordio.max-connections": 5
},
"ARDUINO_GIGA": {
"target.macros_add": [
"METAL_INTERNAL",
"VIRTIO_DRIVER_ONLY",
"NO_ATOMIC_64_SUPPORT",
"METAL_MAX_DEVICE_REGIONS=2",
"RPMSG_BUFFER_SIZE=512"
],
"cordio.max-connections": 5,
// Access the wifi driver from the QSPI flash instead of including it (400kB) in the
// application image.
"target.wifi_driver_in_qspi_flash": true
},
"ARDUINO_PORTENTA_H7": {
"cordio.max-connections": 5,
"cellular.debug-at": true,
"cellular.offload-dns-queries": true,
"cellular.at-handler-buffer-size": 512,
"nsapi.dns-response-wait-time": 5000,
"nsapi.dns-total-attempts": 3,
"lwip.raw-socket-enabled": true,
"target.macros_add": [
"METAL_INTERNAL",
"VIRTIO_DRIVER_ONLY",
"NO_ATOMIC_64_SUPPORT",
"METAL_MAX_DEVICE_REGIONS=2",
"RPMSG_BUFFER_SIZE=512"
],
// Enable cellular drivers, needed for GSM library to compile
"target.components_add": [
"GEMALTO_CINTERION",
"GENERIC_AT3GPP"
],
// Access the wifi driver from the QSPI flash instead of including it (400kB) in the
// application image.
"target.wifi_driver_in_qspi_flash": true
}
}
}