-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firmware/sys/shell_extended: Adding storage network modules default p…
…arams
- Loading branch information
Showing
8 changed files
with
93 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
* @file | ||
* @name Defaults params for the m4a firmware | ||
* @author xkevin190 <[email protected]> | ||
* @author eduazocar <[email protected]> | ||
*/ | ||
|
||
#ifndef DEFAULT_PARAMS_H | ||
|
@@ -52,18 +53,45 @@ typedef struct { | |
uint8_t pin : 6; /*!< Input pin -> Max pin 63*/ | ||
} sensors_t; | ||
|
||
#if ((MODULE_RPL_PROTOCOL) || (DOXYGEN)) | ||
/** | ||
* @brief Data type to all network elements, here will saved protocols. | ||
* | ||
*/ | ||
typedef struct { | ||
uint8_t mode : 1; /*!< Routing protocol rpl modes (DAG or DODAG)*/ | ||
uint8_t : 7; /*!< Reserved bits */ | ||
uint8_t id; /*!< Rpl instance id */ | ||
} rpl_settings_t; | ||
#endif | ||
|
||
typedef struct { | ||
uint8_t routing; /*!< Routing Protocol in use*/ | ||
#ifdef MODULE_RPL_PROTOCOL | ||
rpl_settings_t rpl; | ||
#endif | ||
#ifdef MODULE_BORDER_ROUTER | ||
uint8_t br_status : 1; | ||
uint8_t : 7; | ||
#endif | ||
#ifdef MODULE_UNIQUEID | ||
uint8_t uidmode : 1; | ||
uint8_t : 7; | ||
#endif | ||
} settings_net_t; | ||
|
||
/** | ||
* @brief struct to save interface data settings. | ||
*/ | ||
typedef struct { | ||
uint8_t id; | ||
uint8_t type; | ||
uint8_t id; /*!< Iface id*/ | ||
uint8_t type; /*!< Type of interface */ | ||
uint16_t channel; /*!< Channel of the radio */ | ||
int16_t tx_power; /*!< The transmit power from a radio interface*/ | ||
uint16_t freq; | ||
uint16_t freq; /*!< Frequency of radio interface */ | ||
} settings_ifaces_t; | ||
|
||
#define IF_KEY (uint8_t*)("IFKEY") | ||
#define IF_KEY ("IFKEY") | ||
|
||
/** | ||
* @name storage address this address will be the storage keys | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.