Skip to content

Commit

Permalink
register_manip: wrap into namespace "experimental"
Browse files Browse the repository at this point in the history
  • Loading branch information
digint committed Oct 26, 2017
1 parent 8944d8d commit 49fef84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/register_manip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <compiler.h>

namespace mptl {
namespace experimental {

// TODO: rename reg<>
template<typename T>
Expand Down Expand Up @@ -76,6 +77,7 @@ class reg_manip
value_type reg;
};

} // namespace experimental
} // namespace mptl

#endif // REGISTER_MANIP_HPP_INCLUDED
2 changes: 1 addition & 1 deletion projects/unittest/src/register.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void unittest_register_manip()

TEST::REG::reset();

reg_manip<TEST::REG> reg;
experimental::reg_manip<TEST::REG> reg;
reg |= 0xff;
reg &= 0x00ffffff;
reg.set<TEST::REG::BITS_4_7::CONST_d>();
Expand Down

0 comments on commit 49fef84

Please sign in to comment.