summaryrefslogtreecommitdiff
path: root/ports/nrf/peripherals
diff options
context:
space:
mode:
authorNick Moore <nick@zoic.org>2019-04-09 12:53:11 +1000
committerNick Moore <nick@zoic.org>2019-04-16 14:53:44 +1000
commit83dad37562c145fff77dff34fc7ad85fe909f4a4 (patch)
treecca03b24173fe468b7b0facae61ee0acf3bcf461 /ports/nrf/peripherals
parent02dd32da6018ac00d57cca8fb7bb40340ed011cd (diff)
Fixups for adafruit/circuitpython#1042
Diffstat (limited to 'ports/nrf/peripherals')
-rw-r--r--ports/nrf/peripherals/nrf/nvm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/nrf/peripherals/nrf/nvm.h b/ports/nrf/peripherals/nrf/nvm.h
index e051bdbe5..4eac3d728 100644
--- a/ports/nrf/peripherals/nrf/nvm.h
+++ b/ports/nrf/peripherals/nrf/nvm.h
@@ -25,4 +25,10 @@
* THE SOFTWARE.
*/
+#define FLASH_PAGE_SIZE (4096)
+
+#ifndef CIRCUITPY_INTERNAL_NVM_SIZE
+#define CIRCUITPY_INTERNAL_NVM_SIZE (0)
+#endif
+
void nrf_nvm_safe_flash_page_write(uint32_t page_addr, uint8_t *data);