Skip to content

Commit c0789ce

Browse files
committed
Use variant based methods for gpio
stm32f3 provides methods, with which we can access each variant of a register. No more bit-shifts and -masks are needed. 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 there is no method with an array index access-point. So we have to be explicit for every method name we add. `moder0`, `moder1`, ...
1 parent b2a4c0f commit c0789ce

File tree

1 file changed

+1291
-1380
lines changed

1 file changed

+1291
-1380
lines changed

0 commit comments

Comments
 (0)