Author Topic: Migrating from AVR to STM32  (Read 11352 times)

0 Members and 1 Guest are viewing this topic.

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Migrating from AVR to STM32
« Reply #50 on: February 02, 2021, 02:08:32 pm »
The aliases are really simple and consistent. It is a PERIPHERAL_REGISTER_BIT notation. Gives the exact bit set to 1.
There are also a bit position macros (add _Pos at the end) returning the bit number (0..31) and a bit mask macros (add _Msk at the end) when applicable.

To the OP: I have explained this on the first page of the thread.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf