<p>I just briefly looked into <code>mtd_flashpage.c</code>.<br>
If I understood correctly, this is to use the internal flash through the same API as you would for e.g. SPI flash.</p>
<p>So you would pass addresses anyway, I'd say just pass them on to the actual platform specific implementation, you can still cast them to a pointer there - and have the possibility to do something else if the platform requires it.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11960?email_source=notifications&email_token=ABE7WYHE2TCU4GZU2BAAI7DQKNVBRA5CNFSM4IJKS622YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7DIMOY#issuecomment-533104187">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYB36YFPRBIV5KI2DZLQKNVBRANCNFSM4IJKS62Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYAJUIHW7JZQC3PEGY3QKNVBRA5CNFSM4IJKS622YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7DIMOY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11960?email_source=notifications\u0026email_token=ABE7WYHE2TCU4GZU2BAAI7DQKNVBRA5CNFSM4IJKS622YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7DIMOY#issuecomment-533104187",
"url": "https://github.com/RIOT-OS/RIOT/pull/11960?email_source=notifications\u0026email_token=ABE7WYHE2TCU4GZU2BAAI7DQKNVBRA5CNFSM4IJKS622YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7DIMOY#issuecomment-533104187",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>