Skip to content

Commit af01829

Browse files
committed
[nrf52] Force 8 IRQ capable pins
See ARMmbed/mbed-os#10949 Fixes arduino/ArduinoCore-nRF528x-mbedos#7
1 parent ddf8496 commit af01829

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

mbed-os-to-arduino

+31-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,39 @@ rm -rf .mbedignore
3232
mbed target $BOARDNAME
3333
mbed toolchain GCC_ARM
3434
echo -e "#include \"mbed.h\"\nint main() {}" > main.cpp
35-
echo -e "{\n\"macros\": [\n\"MBED_HEAP_STATS_ENABLED=1\",\n\"MBED_STACK_STATS_ENABLED=1\",\n\"MBED_MEM_TRACING_ENABLED=1\"\n],\n\"target_overrides\": {\n \"*\": {\n\"platform.stdio-buffered-serial\": true,\n\"rtos.main-thread-stack-size\": 32768,\n\"platform.stdio-baud-rate\": 115200,\n\"platform.default-serial-baud-rate\": 115200\n}\n}\n}\n" > mbed_app.json
35+
echo -e "{
36+
\"macros\": [
37+
\"MBED_HEAP_STATS_ENABLED=1\",
38+
\"MBED_STACK_STATS_ENABLED=1\",
39+
\"MBED_MEM_TRACING_ENABLED=1\",
40+
],
41+
\"target_overrides\": {
42+
\"*\": {
43+
\"platform.stdio-buffered-serial\": true,
44+
\"platform.stdio-baud-rate\": 115200,
45+
\"platform.default-serial-baud-rate\": 115200,
46+
}
47+
}
48+
}" > mbed_app.json
3649

3750
if [ $BOARDNAME == "ARDUINO_NANO33BLE" ]; then
38-
echo -e "{\n\"macros\": [\n\"MBED_HEAP_STATS_ENABLED=1\",\n\"MBED_STACK_STATS_ENABLED=1\",\n\"MBED_MEM_TRACING_ENABLED=1\"\n],\n\"target_overrides\": {\n \"*\": {\n\"platform.stdio-buffered-serial\": true,\n\"platform.stdio-baud-rate\": 115200,\n\"platform.default-serial-baud-rate\": 115200,\n\"rtos.main-thread-stack-size\": 32768,\n\"target.mbed_app_start\": \"0x10000\"}\n}\n}\n" > mbed_app.json
51+
echo -e "{
52+
\"macros\": [
53+
\"MBED_HEAP_STATS_ENABLED=1\",
54+
\"MBED_STACK_STATS_ENABLED=1\",
55+
\"MBED_MEM_TRACING_ENABLED=1\",
56+
\"NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS=8\"
57+
],
58+
\"target_overrides\": {
59+
\"*\": {
60+
\"platform.stdio-buffered-serial\": true,
61+
\"platform.stdio-baud-rate\": 115200,
62+
\"platform.default-serial-baud-rate\": 115200,
63+
\"rtos.main-thread-stack-size\": 32768,
64+
\"target.mbed_app_start\": \"0x10000\"
65+
}
66+
}
67+
}" > mbed_app.json
3968
fi
4069

4170
if [ -d $ARDUINOCORE/conf ]; then

0 commit comments

Comments
 (0)