Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
deroo
Nano33BLE-flash
Commits
5ee9f84a
Commit
5ee9f84a
authored
Aug 20, 2021
by
deroo
Browse files
fix more typos in README
parent
f961ea43
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
5ee9f84a
...
...
@@ -55,12 +55,12 @@ in "Sketch uses NNNN bytes (X%) of program storage space..."
and divide by 4096, rounding up.
Declare arrays in flash using a macro:
<br>
NANO33BLE_FLASH(
<
datatype
>, < arrayName >, <
numberOfArrayElements
>
)
<br>
NANO33BLE_FLASH(
\<
datatype
\>
,
\<
arrayName
\>
,
\<
numberOfArrayElements
\>
)
<br>
such as
NANO33BLE_FLASH( int, arrayInFlash, 200 )
to create an array named "arrayInFlash" of 200 ints.
The order of the three arguments is meant to match the order of arguments for declaring an array in RAM, which is:
<br>
<
datatype
> < arrayName > [ <
numberOfArrayElements
>
];
<br>
\<
datatype
\>
\<
arrayName
\>
[
\<
numberOfArrayElements
\>
];
<br>
like
<br>
int arrayInRAM[200];
<br>
to make a same-sized array of ints in RAM.
...
...
@@ -71,7 +71,7 @@ Thus, if you need to erase all the pages your sketch is using in order to initia
If you want more control over the details of the declarations in flash,
declare arrays in flash using pointers:
<br>
<
datatype
>
*<
arrayInFlash
>
= (
<
datatype
> *
)<
flashAddress
>
;
<br>
\<
datatype
\>
*\<
arrayInFlash
\>
= (
\<
datatype
\> *
)
\<
flashAddress
\>
;
<br>
where the flashAddress is the number of bytes into the flash memory.
For example,
<br>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment