[riot-notifications] [RIOT-OS/RIOT] examples/lorawan: add the possibility to use ABP activation procedure (#11237)

Alexandre Abadie notifications at github.com
Fri Sep 20 13:33:59 CEST 2019


aabadie commented on this pull request.



> +  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

Done

-- 
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/11237#discussion_r326587421
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190920/2e1cda90/attachment.htm>


More information about the notifications mailing list