<p></p>
<p>We can also do</p>
<div class="highlight highlight-source-diff"><pre><span class="pl-md">--- a/cpu/nrf52/include/cpu_conf.h</span>
<span class="pl-mi1">+++ b/cpu/nrf52/include/cpu_conf.h</span>
<span class="pl-mdr">@@ -66,14 +66,12 @@</span> extern "C" {
  * @brief   Flash page configuration
  * @{
  */
<span class="pl-md"><span class="pl-md">-</span>#define FLASHPAGE_SIZE                  (4096U)</span>
<span class="pl-md"><span class="pl-md">-</span></span>
<span class="pl-md"><span class="pl-md">-</span>#if defined(CPU_MODEL_NRF52811XXAA)</span>
<span class="pl-md"><span class="pl-md">-</span>#define FLASHPAGE_NUMOF                 (48U)</span>
<span class="pl-md"><span class="pl-md">-</span>#elif defined(CPU_MODEL_NRF52832XXAA)</span>
<span class="pl-md"><span class="pl-md">-</span>#define FLASHPAGE_NUMOF                 (128U)</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>#ifdef BPROT_PRESENT</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>#define FLASHPAGE_SIZE              BPROT_REGIONS_SIZE</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>#define FLASHPAGE_NUMOF             BPROT_REGIONS_NUM</span>
 #elif defined(CPU_MODEL_NRF52840XXAA)
<span class="pl-md"><span class="pl-md">-</span>#define FLASHPAGE_NUMOF                 (256U)</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>#define FLASHPAGE_SIZE              (4096U)</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>#define FLASHPAGE_NUMOF             (256U)</span>
 #endif</pre></div>
<p>now</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/14061#issuecomment-627339791">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYHFG4G3ZNMAVJIYPLTRRFEH3ANCNFSM4M6ZS5ZA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYFX6VMCMJFP2IHXWSLRRFEH3A5CNFSM4M6ZS5ZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEVSHEDY.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/14061#issuecomment-627339791",
"url": "https://github.com/RIOT-OS/RIOT/pull/14061#issuecomment-627339791",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>