Code breaking change to stm module

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Code breaking change to stm module

Post by pythoncoder » Sat Nov 26, 2016 8:41 am

This will only affect people using stm to access GPIO registers. The value stm.GPIO_BSRRL has been renamed stm.GPIO_BSRR, presumably to conform with the manual.
Peter Hinch
Index to my micropython libraries.

Damien
Site Admin
Posts: 647
Joined: Mon Dec 09, 2013 5:02 pm

Re: Code breaking change to stm module

Post by Damien » Mon Nov 28, 2016 4:11 am

This was an unintended breaking-change. The constants stm.GPIO_BSRRL and stm.GPIO_BSRRH have been added back to the module (for F4 MCUs only). Although these constants will stick around, it's recommended to use just GPIO_BSRR, to conform with the datasheet of the microcontroller.

Post Reply