<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 11.12.2013 08:43, schrieb Michael
Ring:<br>
</div>
<blockquote cite="mid:52A817B0.4000103@michael-ring.org" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
The strb command seems to be the problem, documentation from STM
states:<br>
<br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<span style="font-size: 10.000000pt; font-family: 'Helvetica'">Each
I/O port bit is freely programmable, however the I/O port
registers have to be accessed as 32-bit words (half-word or byte
accesses are not allowed). </span> <br>
<br>
So, is there some way to make the bitset operations word-aligned?
</blockquote>
Better say 32-bit aligned to avoid confusion. Words in Pascal are
16-bit although I know that you are talking about the CPUs word
size...<br>
<blockquote cite="mid:52A817B0.4000103@michael-ring.org" type="cite">Are
there any good reasons for not doing so?<br>
</blockquote>
What when you really have a byte that you want ot access? Then using
32-bit writes/reads could(*) result in unnecessary cycles.<br>
<br>
* I don't know about ARM especially, but I know that for e.g. the
m68k a 32-bit store is more expensive than a 16-bit or 8-bit store<br>
<br>
That said I don't have a solution for your specific problem except
by doing it by hand.<br>
<br>
Regards,<br>
Sven<br>
</body>
</html>