aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/machine_nrf52.go
diff options
context:
space:
mode:
authorRon Evans <[email protected]>2023-02-27 13:55:38 +0100
committerGitHub <[email protected]>2023-02-27 13:55:38 +0100
commit6e1b8a54aaa4e181e814c7c3925220a26753751e (patch)
treedd700208e4fd5080c9eaeb6189e44c0c02ce64ae /src/machine/machine_nrf52.go
parent8bf94b92316c44a3110667d52bcb92f22f6c2923 (diff)
downloadtinygo-6e1b8a54aaa4e181e814c7c3925220a26753751e.tar.gz
tinygo-6e1b8a54aaa4e181e814c7c3925220a26753751e.zip
machine/stm32, nrf: flash API (#3472)
machine/stm32, nrf: implement machine.Flash Implements the machine.Flash interface using the same definition as the tinyfs BlockDevice. This implementation covers the stm32f4, stm32l4, stm32wlx, nrf51, nrf52, and nrf528xx processors.
Diffstat (limited to 'src/machine/machine_nrf52.go')
-rw-r--r--src/machine/machine_nrf52.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/machine/machine_nrf52.go b/src/machine/machine_nrf52.go
index 06ca6e01c..71c534325 100644
--- a/src/machine/machine_nrf52.go
+++ b/src/machine/machine_nrf52.go
@@ -63,3 +63,9 @@ var (
PWM1 = &PWM{PWM: nrf.PWM1}
PWM2 = &PWM{PWM: nrf.PWM2}
)
+
+const eraseBlockSizeValue = 4096
+
+func eraseBlockSize() int64 {
+ return eraseBlockSizeValue
+}