From d4ad0a913ff8de76474dd1898bbda7668053f82b Mon Sep 17 00:00:00 2001 From: eduazocar Date: Wed, 19 Oct 2022 14:37:12 -0400 Subject: [PATCH] doc:fixed --- firmware/default_params.h | 15 ++++++++------- firmware/sys/storage/include/storage_register.h | 8 ++++---- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/firmware/default_params.h b/firmware/default_params.h index 189cb727a..3248dd400 100644 --- a/firmware/default_params.h +++ b/firmware/default_params.h @@ -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 @@ -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") diff --git a/firmware/sys/storage/include/storage_register.h b/firmware/sys/storage/include/storage_register.h index aad1c5902..0d176f254 100644 --- a/firmware/sys/storage/include/storage_register.h +++ b/firmware/sys/storage/include/storage_register.h @@ -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 \