You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds documentation to the `erlang` module and "Programmer's Guide" for newly added STM32
system_info/1 keys.
Signed-off-by: Winford <winford@object.stream>
In addition AtomVM supports the following keys on ESP32 and STM32 platforms:
628
+
629
+
* `atomvm_free_heap_size` Returns the available free space in the heap.
630
+
* `atomvm_minimum_free_size` Returns the smallest ever free space available in the heap since boot, this will tell you how close you have come to running out of free memory.
@@ -1141,9 +1146,7 @@ As noted above, the [`erlang:system_info/1`](./apidocs/erlang/estdlib/erlang.md#
1141
1146
1142
1147
You can request ESP32-specific information using using the following input atoms:
1143
1148
1144
-
* `esp32_free_heap_size` Returns the available free space in the ESP32 heap.
1145
1149
* `esp32_largest_free_block` Returns the size of the largest free continuous block in the ESP32 heap.
1146
-
* `esp32_minimum_free_size` Returns the smallest ever free space available in the ESP32 heap since boot, this will tell you how close you have come to running out of free memory.
1147
1150
* `esp32_chip_info` Returns map of the form `#{features := Features, cores := Cores, revision := Revision, model := Model}`, where `Features` is a list of features enabled in the chip, from among the following atoms: `[emb_flash, bgn, ble, bt]`; `Cores` is the number of CPU cores on the chip; `Revision` is the chip version; and `Model` is one of the following atoms: `esp32`, `esp32_s2`, `esp32_s3`, `esp32_c3`, etc.
1148
1151
* `esp_idf_version` Return the IDF SDK version, as a string.
1149
1152
@@ -1591,7 +1594,7 @@ The read options take the form of a proplist, if the key `raw` is true (`{raw, t
1591
1594
1592
1595
If the key `voltage` is true (or simply appears in the list as an atom), then a calibrated voltage value will be returned in millivolts in the second element of the returned tuple. Otherwise, this element will be the atom `undefined`.
1593
1596
1594
-
You may specify the number of samples (1 - 100000) to be taken and averaged over using the tuple `{samples, Samples :: 1..100000}`, the default is `64`.
1597
+
You may specify the number of samples (1 - 100000) to be taken and averaged over using the tuple `{samples, Samples :: 1..100000}`, the default is `64`.
1595
1598
1596
1599
```{warning}
1597
1600
Using a large number of samples can significantly increase the amount of time before a response, up to several seconds.
0 commit comments