Merge pull request #10626 from jia200x/pr/ieee802154_conf

ieee802154: add config macros to config doc group
This commit is contained in:
Martine Lenders 2018-12-18 14:22:51 +01:00 committed by GitHub
commit d4fd6076c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,28 +112,43 @@ extern const uint8_t ieee802154_addr_bcast[IEEE802154_ADDR_BCAST_LEN];
/** @} */
/**
* @defgroup net_ieee802154_conf IEEE802.15.4 compile configurations
* @ingroup config
* @{
* @name Default values
* @brief Default values for devices to choose
*/
/**
* @brief IEEE802.15.4 default sub-GHZ channel
*/
#ifndef IEEE802154_DEFAULT_SUBGHZ_CHANNEL
#define IEEE802154_DEFAULT_SUBGHZ_CHANNEL (5U)
#endif
/**
* @brief IEEE802.15.4 default channel
*/
#ifndef IEEE802154_DEFAULT_CHANNEL
#define IEEE802154_DEFAULT_CHANNEL (26U)
#endif
/**
* @brief IEEE802.15.4 default sub-GHZ page
*/
#ifndef IEEE802154_DEFAULT_SUBGHZ_PAGE
#define IEEE802154_DEFAULT_SUBGHZ_PAGE (2U)
#endif
/**
* @brief IEEE802.15.4 default PANID
*/
#ifndef IEEE802154_DEFAULT_PANID
#define IEEE802154_DEFAULT_PANID (0x0023U)
#endif
/**
* @brief IEEE802.15.4 default TX power (in dBm)
*/
#ifndef IEEE802154_DEFAULT_TXPOWER
#define IEEE802154_DEFAULT_TXPOWER (0) /* in dBm */
#define IEEE802154_DEFAULT_TXPOWER (0)
#endif
/** @} */