diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-05-11 19:50:28 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-05-11 19:56:50 +0200 |
commit | 4c1eafc208426d4457660313314289a570287cb8 (patch) | |
tree | 43a65af8ff33b379348b63ab963dec40ccb6fff0 /utils/regtools/lib/soc_desc.hpp | |
parent | 85390865b572664d5bc4e289445b1875f58fcc4f (diff) | |
download | rockbox-4c1eafc208426d4457660313314289a570287cb8.tar.gz rockbox-4c1eafc208426d4457660313314289a570287cb8.zip |
regtools: headergen can now output the description in the headers
This is useful to provide some documentation in the code.
Change-Id: Ib440363d82c47c36fffb9567a2e7f374eaaa5cbc
Diffstat (limited to 'utils/regtools/lib/soc_desc.hpp')
-rw-r--r-- | utils/regtools/lib/soc_desc.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/regtools/lib/soc_desc.hpp b/utils/regtools/lib/soc_desc.hpp index 4aa8c975ac..1b4985529c 100644 --- a/utils/regtools/lib/soc_desc.hpp +++ b/utils/regtools/lib/soc_desc.hpp @@ -47,7 +47,7 @@ #define SOCDESC_VERSION_MAJOR 1 #define SOCDESC_VERSION_MINOR 1 -#define SOCDESC_VERSION_REV 0 +#define SOCDESC_VERSION_REV 1 #define SOCDESC_VERSION__(maj,min,rev) #maj"."#min"."#rev #define SOCDESC_VERSION_(maj,min,rev) SOCDESC_VERSION__(maj,min,rev) @@ -101,6 +101,8 @@ struct soc_reg_field_t std::string desc; /// human description unsigned first_bit, last_bit; /// bit range of the field + soc_reg_field_t():first_bit(0), last_bit(31) {} + soc_word_t bitmask() const { // WARNING beware of the case where first_bit=0 and last_bit=31 |