Skip to content

Commit

Permalink
[nrf52] Force 8 IRQ capable pins
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Sep 10, 2019
1 parent ddf8496 commit af01829
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions mbed-os-to-arduino
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,39 @@ rm -rf .mbedignore
mbed target $BOARDNAME
mbed toolchain GCC_ARM
echo -e "#include \"mbed.h\"\nint main() {}" > main.cpp
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
echo -e "{
\"macros\": [
\"MBED_HEAP_STATS_ENABLED=1\",
\"MBED_STACK_STATS_ENABLED=1\",
\"MBED_MEM_TRACING_ENABLED=1\",
],
\"target_overrides\": {
\"*\": {
\"platform.stdio-buffered-serial\": true,
\"platform.stdio-baud-rate\": 115200,
\"platform.default-serial-baud-rate\": 115200,
}
}
}" > mbed_app.json

if [ $BOARDNAME == "ARDUINO_NANO33BLE" ]; then
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
echo -e "{
\"macros\": [
\"MBED_HEAP_STATS_ENABLED=1\",
\"MBED_STACK_STATS_ENABLED=1\",
\"MBED_MEM_TRACING_ENABLED=1\",
\"NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS=8\"
],
\"target_overrides\": {
\"*\": {
\"platform.stdio-buffered-serial\": true,
\"platform.stdio-baud-rate\": 115200,
\"platform.default-serial-baud-rate\": 115200,
\"rtos.main-thread-stack-size\": 32768,
\"target.mbed_app_start\": \"0x10000\"
}
}
}" > mbed_app.json
fi

if [ -d $ARDUINOCORE/conf ]; then
Expand Down

0 comments on commit af01829

Please sign in to comment.