<p><b>@aabadie</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11237#discussion_r326587421">examples/lorawan/Makefile</a>:</p>
<pre style='color:#555'>> +  CFLAGS += -DDEVADDR=\"$(DEVADDR)\" -DNWKSKEY=\"$(NWKSKEY)\" -DAPPSKEY=\"$(APPSKEY)\"
+  CFLAGS += -DRX2_FREQ=$(RX2_FREQ) -DRX2_DR=$(RX2_DR)
+  CFLAGS += -DUSE_ABP
+endif
+
+# Enable persistence on EEPROM and lowest possible power mode only if the board
+# provides the EEPROM feature
+ifneq (,$(filter $(BOARD), $(BOARD_PROVIDING_EEPROM)))
+  FEATURES_REQUIRED += periph_eeprom
+  # Enable lowest possible power mode (e.g. STANDBY mode on STM32) which
+  # in general doesn't provide RAM retention after wake-up.
+  # This low-power mode can only be used with boards providing an internal
+  # EEPROM to be able to restore the state of MAC from a non-volatile memory.
+  CFLAGS += '-DPM_BLOCKER_INITIAL={ .val_u32 = 0x01010100 }'
+else
+  # WARNING: the next line disables the dutycycle restriction from the MAC. This
</pre>
<p>Done</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/11237?email_source=notifications&email_token=ABE7WYD6G3BT7JR3ROUWOVTQKSYKPA5CNFSM4HAMUL4KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCFM7FBI#discussion_r326587421">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYEXKDLJJUVIYRLQ2GTQKSYKPANCNFSM4HAMUL4A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYADVXFMREQTZ76G2PDQKSYKPA5CNFSM4HAMUL4KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCFM7FBI.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/11237?email_source=notifications\u0026email_token=ABE7WYD6G3BT7JR3ROUWOVTQKSYKPA5CNFSM4HAMUL4KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCFM7FBI#discussion_r326587421",
"url": "https://github.com/RIOT-OS/RIOT/pull/11237?email_source=notifications\u0026email_token=ABE7WYD6G3BT7JR3ROUWOVTQKSYKPA5CNFSM4HAMUL4KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCFM7FBI#discussion_r326587421",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>