diff --git a/platformio.ini b/platformio.ini index 7d74d8f..f8641ea 100644 --- a/platformio.ini +++ b/platformio.ini @@ -6,8 +6,11 @@ build_flags = -D NRF52_S140=1 -I src -L boards + -w framework = arduino monitor_speed = 115200 +lib_deps = + https://github.com/oltaco/CustomLFS @ 0.2.1 [env:FLASH_ERASE_nrf52_softdevice_v6] extends = nrf52_base @@ -15,6 +18,7 @@ board = nrf52840_s140_v6 build_flags = ${nrf52_base.build_flags} -I arch/nrf52/s140_6.1.1 -I arch/nrf52/s140_6.1.1/nrf52 +lib_deps = ${nrf52_base.lib_deps} [env:FLASH_ERASE_nrf52_softdevice_v7] extends = nrf52_base @@ -22,3 +26,4 @@ board = nrf52840_s140_v7 build_flags = ${nrf52_base.build_flags} -I arch/nrf52/s140_7.3.0 -I arch/nrf52/s140_7.3.0/nrf52 +lib_deps = ${nrf52_base.lib_deps} \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 66507ef..ed614eb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,7 @@ #include #include #include +#include using namespace Adafruit_LittleFS_Namespace; @@ -11,6 +12,10 @@ void setup() { delay(500); InternalFS.format(); + delay(500); + CustomLFS ExtraFS(0xD4000, 0x19000, 128); + ExtraFS.format(); + delay(500); enterUf2Dfu(); } diff --git a/src/variant.h b/src/variant.h index ce025fe..08b45ac 100644 --- a/src/variant.h +++ b/src/variant.h @@ -43,6 +43,12 @@ extern "C" #define PIN_SERIAL1_TX (-1) #define LED_STATE_ON LOW +// Placeholder pins to allow CustomLFS to compile +#define SPI_INTERFACES_COUNT (1) +#define PIN_SPI_MOSI (255) +#define PIN_SPI_MISO (255) +#define PIN_SPI_SCK (255) + #ifdef __cplusplus } #endif