[riot-commits] [RIOT-OS/RIOT] f903ec: drivers/flashpage: flashpage_page() takes a const ...

benpicco noreply at github.com
Tue Aug 31 10:22:58 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: f903ec90d438d24007b5aa4cc1a46344228bbea9
      https://github.com/RIOT-OS/RIOT/commit/f903ec90d438d24007b5aa4cc1a46344228bbea9
  Author: Benjamin Valentin <benjamin.valentin at ml-pa.com>
  Date:   2021-08-27 (Fri, 27 Aug 2021)

  Changed paths:
    M cpu/stm32/periph/flashpage.c
    M drivers/include/periph/flashpage.h
    M drivers/periph_common/flashpage.c

  Log Message:
  -----------
  drivers/flashpage: flashpage_page() takes a const argument

All addresses to flashpage_page() must be in flash. Flash memory is
`const`, therefore this function must also take `const` pointers.


  Commit: 9294a31856c328efb9a25ae28e607b54416c210c
      https://github.com/RIOT-OS/RIOT/commit/9294a31856c328efb9a25ae28e607b54416c210c
  Author: benpicco <benjamin.valentin at ml-pa.com>
  Date:   2021-08-31 (Tue, 31 Aug 2021)

  Changed paths:
    M cpu/stm32/periph/flashpage.c
    M drivers/include/periph/flashpage.h
    M drivers/periph_common/flashpage.c

  Log Message:
  -----------
  Merge pull request #16781 from benpicco/flashpage_page-const

drivers/flashpage: flashpage_page() takes a const argument


Compare: https://github.com/RIOT-OS/RIOT/compare/f4bcc815bf0c...9294a31856c3


More information about the commits mailing list