1
0
mirror of https://github.com/sendyne/cppreg.git synced 2025-05-09 23:24:05 +00:00

19 Commits

Author SHA1 Message Date
Nicolas Clauvelin
49d19f1b20 FIX TYPO IN PACKED REGISTER STATIC ASSERT 2018-03-13 08:51:23 -04:00
Nicolas Clauvelin
bbdf513156 ADD MIXED REGISTER SIZES SUPPORT TO REGISTER PACK
This relies on a memory map implementation based on std::array and specialized
over the register size. PackedRegister can now be used with all supported
register sizes (i.e., widths).

This relates to #7 and the finalization of the API before performance testing.
2018-03-13 08:48:42 -04:00
Nicolas Clauvelin
ae6da9b7f5 REVISED REGISTER PACK IMPLEMENTATION FOR SIZE ISSUES
The revision brings the support for 16-bits and 32-bits registers.
2018-03-12 22:18:54 -04:00
Nicolas Clauvelin
984d4ceb58 ADD TEMPLATE FOR LOOP IMPLEMENTATION 2018-03-12 17:51:00 -04:00
Nicolas Clauvelin
327e230847 ADD PROPER DOCUMENTATION COMMENTS 2018-03-12 17:20:32 -04:00
Nicolas Clauvelin
4d575c176f UPDATED SINGLE HEADER 2018-03-12 16:37:29 -04:00
Nicolas Clauvelin
154b29bef3 REGISTER PACK FIRST IMPLEMENTATION 2018-03-12 16:35:36 -04:00
Nicolas Clauvelin
e4ae5641ec CPPREG MEMORY ACCESS REVISION
All access to memory are now done through reference (const reference for
read-only access). This is done to facilitate the implementation of register
packs.
2018-03-12 16:35:26 -04:00
Nicolas Clauvelin
f1d98d6bd5 REVISED SHADOW VALUE USING INTEGRAL CONSTANT
This provides a clearer interface compared to defining a constexpr bool member.
2018-03-11 17:34:38 -04:00
Nicolas Clauvelin
058ccbf13d UPDATED DOCUMENTATION FOR REVISED API
This closes #10.
2018-03-11 09:27:03 -04:00
Nicolas Clauvelin
eb9226fe5d API REVISED FOR BETTER READ/WRITE PERFORMANCE
* For trivial read/write operations (over whole register) simpler implementations are now used to avoid unnecessary load/store instructions.
* Merge write implementation has been revised to provide better performance when manipulating constant values.
* `is_set` and `is_clear` are now available for all Field-based types.

This closes #8.
2018-03-09 16:31:56 -05:00
Nicolas Clauvelin
1c27f907a5 FIXES CONSTEXPR STATIC ISSUE WITH GCC 4.8.X
See https://github.com/sendyne/cppreg/issues/2 for a detailed explanation.

This closes #2.
2018-02-23 06:15:58 -05:00
hak8or
816c579d7d Pin in Led::init() should be off before setting pin direction
Super minor, but I figured it might be good to have that looking correct in the getting started guide.
2018-02-23 05:48:37 -05:00
Nicolas Clauvelin
11734b0bf4 FIX POWERPC COMPILATION ISSUE
For some reason compilers other than GCC PowerPC 4.5.8 were not complaining
about the `use_shadow` being (re)defined outside the `Shadow` structure
definition.

This closes #2.
2018-02-22 17:02:59 -05:00
Sendyne Principal Scientist
926eb71df2 Set theme jekyll-theme-cayman 2018-02-22 10:39:37 -05:00
Nicolas Clauvelin
93763cd6ee Merge remote-tracking branch 'github/master' into develop 2018-02-22 10:35:06 -05:00
Nicolas Clauvelin
5cf8a851d8 FIX INLINING OF WRITE CALLS WITH Os ENABLED
The inlining issue was due to a bad template design in the access policies
implementations: the MMIO_t type from the field was used (which is a volatile
type) for all arguments in the write implementation.
The new implementation relies on two template types (one for the register memory
device and another one for the value to be written). This fixes inlining and was
checked on godbolt.
2018-02-22 10:22:51 -05:00
Sendyne dev-team
a31d4a2875 Set theme jekyll-theme-slate 2018-02-20 16:05:48 -05:00
Nicolas Clauvelin
d7404ab946 INITIAL COMMIT v0.1 2018-02-20 15:38:59 -05:00