-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev stm factorize gpio #3575
Dev stm factorize gpio #3575
Conversation
gpio_object.h is included from common_objects.h, so no need to have it here.
Let's make the code more common for gpios. The only difference between STM32 families is that BRR register may not be available. In case BRR is not available, we use the 16 left bits of BSRR instead. We could always use BSRR, but BRR saves one left-shift operation, so let's use it when available. By default we will consider using BRR, except for platforms that define GPIO_IP_WITHOUT_BRR.
I love PRs like these, such a beautiful diff! 😄 Thanks @LMESTM! /morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @0xc0170 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ports for Upcoming Targets 3571: DISCO_F769NI introduction ARMmbed/mbed-os#3571 3605: Add DELTA_DFCM_NNN50 platform ARMmbed/mbed-os#3605 3640: [MAX32630FTHR] Adding new platform ARMmbed/mbed-os#3640 Fixes and Changes 3397: Add uVisor support for the DISCO_F429ZI ARMmbed/mbed-os#3397 3573: fix failing RTC initialization for MTS_DRAGONFLY_F411RE ARMmbed/mbed-os#3573 3575: Dev stm factorize gpio ARMmbed/mbed-os#3575 3584: STM32: make PeripheralPins.h a common file ARMmbed/mbed-os#3584 3583: STM32F7 Cube FW new release v1.5.1 ARMmbed/mbed-os#3583 3578: Target system - Inherit names from target parents ARMmbed/mbed-os#3578 3599: K22F: Enable TRNG ARMmbed/mbed-os#3599 3614: STM32: make PortNames.h a common file ARMmbed/mbed-os#3614 3617: EFM32GG: Fix GCC_ARM linker script ARMmbed/mbed-os#3617 3618: STM32: Move types definitions to a common file ARMmbed/mbed-os#3618 3631: F3 CUBE update V1.7.0 ARMmbed/mbed-os#3631 3635: STM32 I2C : Fix bug in i2c_byte_read function ARMmbed/mbed-os#3635 3651: Max32630 - fix LED4 ARMmbed/mbed-os#3651
Description
This PR factorizes some code and makes 2 x 9 duplicated files into 2 files only
Status
READY
Test Report
Non regression tested with ci test shield so that GPIOs are tested
F410RB
BEFORE PR
mbedgt: test case results: 1 FAIL / 33 OK / 3 ERROR
AFTER PR
mbedgt: test case results: 1 FAIL / 33 OK / 3 ERROR
F103RB
BEFORE PR
mbedgt: test case results: 38 OK / 2 ERROR
AFTER PR
mbedgt: test case results: 38 OK / 2 ERROR
L476RG
BEFORE PR
mbedgt: test case results: 2 FAIL / 34 OK / 3 ERROR
AFTER PR
mbedgt: test case results: 2 FAIL / 34 OK / 3 ERROR
F207ZG
BEFORE PR
mbedgt: test case results: 2 FAIL / 37 OK / 3 ERROR
AFTER PR
mbedgt: test case results: 2 FAIL / 37 OK / 3 ERROR