diff --git a/boards/nrf52840_dk.json b/boards/nrf52840_dk.json new file mode 100644 index 000000000..27824178c --- /dev/null +++ b/boards/nrf52840_dk.json @@ -0,0 +1,47 @@ +{ + "build": { + "arduino": { + "ldscript": "nrf52840_s140_v6.ld" + }, + "core": "nRF5", + "cpu": "cortex-m4", + "extra_flags": "-DARDUINO_NRF52840_PCA10056 -DNRF52840_XXAA", + "f_cpu": "64000000L", + "hwids": [["0x239A", "0x4404"]], + "usb_product": "nrf52840dk", + "mcu": "nrf52840", + "variant": "pca10056", + "variants_dir": "variants", + "bsp": { + "name": "adafruit" + }, + "softdevice": { + "sd_flags": "-DS140", + "sd_name": "s140", + "sd_version": "6.1.1", + "sd_fwid": "0x00B6" + }, + "bootloader": { + "settings_addr": "0xFF000" + } + }, + "connectivity": ["bluetooth"], + "debug": { + "jlink_device": "nRF52840_xxAA", + "onboard_tools": ["jlink"], + "svd_path": "nrf52840.svd" + }, + "frameworks": ["arduino"], + "name": "A modified NRF52840-DK devboard (Adafruit BSP)", + "upload": { + "maximum_ram_size": 248832, + "maximum_size": 815104, + "require_upload_port": true, + "speed": 115200, + "protocol": "jlink", + "protocols": ["jlink", "nrfjprog", "stlink"] + }, + "url": "https://meshtastic.org/", + "vendor": "Nordic Semi" + } + \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index 8da3f77dc..5efd40887 100644 --- a/platformio.ini +++ b/platformio.ini @@ -168,6 +168,11 @@ debug_init_break = ; The NRF52840-dk development board [env:nrf52dk] extends = nrf52_base +board = nrf52840_dk + +; The NRF52840-dk development board, but @geeksville's board - which has a busted oscilliator +[env:nrf52dk-geeksville] +extends = nrf52_base board = nrf52840_dk_modified # For experimenting with RAM sizes diff --git a/src/mesh/RadioInterface.h b/src/mesh/RadioInterface.h index 47838a7ea..389515199 100644 --- a/src/mesh/RadioInterface.h +++ b/src/mesh/RadioInterface.h @@ -161,6 +161,11 @@ class SimRadio : public RadioInterface /// Make sure the Driver is properly configured before calling init(). /// \return true if initialisation succeeded. virtual bool init() { return true; } + + /// Apply any radio provisioning changes + /// Make sure the Driver is properly configured before calling init(). + /// \return true if initialisation succeeded. + virtual bool reconfigure() { return true; } }; /// Debug printing for packets