15 May
2023
15 May
'23
10:01 p.m.
On Sun, 14 May 2023 19:03:20 +0200, Oswald Buddenhagen wrote:
The idea to encode the bitfield manipulation in the register address is quite clever, but doing that by hand is ugly and error-prone. So derive it automatically from the mask instead.
Macros cannot #define other macros, so we now declare enums instead.
This also adds macros for decoding the register definitions. These will be used by later commits.
Signed-off-by: Oswald Buddenhagen oswald.buddenhagen@gmx.de
v2: added comments
Applied all four patches now. Thanks.
Takashi