Skip to content

Commit

Permalink
Use variant based methods for gpio
Browse files Browse the repository at this point in the history
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`, ...
  • Loading branch information
Sh3Rm4n committed Jul 16, 2020
1 parent b2a4c0f commit c0789ce
Showing 1 changed file with 1,291 additions and 1,380 deletions.
Loading

0 comments on commit c0789ce

Please sign in to comment.