Skip to content

Commit

Permalink
doc:fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
CW-75 committed Oct 19, 2022
1 parent e3f3c79 commit d4ad0a9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
15 changes: 8 additions & 7 deletions firmware/default_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,20 @@ 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;
uint8_t id; /*!< Rpl instance id */
uint8_t : 7; /*!< Reserved bits */
uint8_t id; /*!< Rpl instance id */
} rpl_settings_t;
#endif

typedef struct {
uint8_t routing;
uint8_t routing; /*!< Routing Protocol in use*/
#ifdef MODULE_RPL_PROTOCOL
rpl_settings_t rpl;
#endif
Expand All @@ -82,12 +84,11 @@ typedef struct {
* @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;
settings_net_t net;
uint16_t freq; /*!< Frequency of radio interface */
} settings_ifaces_t;

#define IF_KEY ("IFKEY")
Expand Down
8 changes: 4 additions & 4 deletions firmware/sys/storage/include/storage_register.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ extern "C" {
#define RWP_WRITE_BITMASK (0x80) /*!< Read/Write protection bit mask to set Writeable register*/
#define RWP_READ_BITMASK (0x00) /*!< Read/Write protection bit mask to set only-read register*/
typedef struct {
uint16_t size;
char key[25];
uint8_t rwp;
uint32_t ptr_content;
uint16_t size; /*!< saved data size*/
char key[25]; /*!< name or identifier assigned a register where there is a saved dara */
uint8_t rwp; /*!< Read and write protection bit */
uint32_t ptr_content; /*!< pointer to the content of a register */
} mtd_register_t;

#define MTD_REG_IDX_NUMOF \
Expand Down

0 comments on commit d4ad0a9

Please sign in to comment.