[riot-notifications] [RIOT-OS/RIOT] cpu/cc2538: add flashpage & flashpage_raw (#15387)

Francisco notifications at github.com
Thu Nov 5 17:11:50 CET 2020


### Contribution description

This pr adds the flashpage% feature for cc2538 boards.

### Testing procedure

On a `cc2538` board run `tests/periph_flashpage` 

```
>
>
test_last

>  test_last
wrote local page buffer to last flash page
> help
 help
Command              Description
---------------------------------------
info                 Show information about pages
dump                 Dump the selected page to STDOUT
dump_local           Dump the local page buffer to STDOUT
read                 Copy the given page to the local page buffer and dump to STDOUT
write                Write the local page buffer to the given page
write_raw            Write (ASCII, max 64B) data to the given address
erase                Erase the given page buffer
edit                 Write bytes to the local page buffer
test                 Write and verify test pattern
test_last            Write and verify test pattern on last page available
test_last_raw        Write and verify raw short write on last page available
test_last_raw
>  test_last_raw
wrote raw short buffer to last flash page
> help
 help
Command              Description
---------------------------------------
info                 Show information about pages
dump                 Dump the selected page to STDOUT
dump_local           Dump the local page buffer to STDOUT
read                 Copy the given page to the local page buffer and dump to STDOUT
write                Write the local page buffer to the given page
write_raw            Write (ASCII, max 64B) data to the given address
erase                Erase the given page buffer
edit                 Write bytes to the local page buffer
test                 Write and verify test pattern
test_last            Write and verify test pattern on last page available
test_last_raw        Write and verify raw short write on last page available
>
```
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/15387

-- Commit Summary --

  * cpu/cc2538: add flashpage & flashpage_raw

-- File Changes --

    M cpu/cc2538/Kconfig (2)
    M cpu/cc2538/Makefile.features (2)
    M cpu/cc2538/Makefile.include (25)
    M cpu/cc2538/include/cpu_conf.h (26)
    A cpu/cc2538/periph/flashpage.c (115)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/15387.patch
https://github.com/RIOT-OS/RIOT/pull/15387.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15387
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201105/0c7d47c4/attachment-0001.htm>


More information about the notifications mailing list