Commit 12f8bae
committed
Use variant based methods for gpio
stm32f3 provides methods, with which we can access each variant
of a register, without providing offets ourselfs.
This also removes a lot off `unsafe` calls, which where needed before
to access a whole register without any bound guards for fields and
flags.
This makes the macro section quite more verbose,
because we have no method yet, where the index number is not part of the
method name, but rather could be indexed via .e.g. array-field access:
moder.moder().modify(|_, w| w.moder[$i].alternate());1 parent b2a4c0f commit 12f8bae
1 file changed
+1291
-1380
lines changed
0 commit comments