Skip to content
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

Merged
merged 2 commits into from
Jan 16, 2017
Merged

Conversation

LMESTM
Copy link
Contributor

@LMESTM LMESTM commented Jan 12, 2017

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

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.
@bridadan
Copy link
Contributor

I love PRs like these, such a beautiful diff! 😄 Thanks @LMESTM!

/morph test

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 1395

All builds and test passed!

Copy link
Contributor

@bridadan bridadan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @0xc0170 ?

@bridadan bridadan requested a review from 0xc0170 January 13, 2017 20:47
Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@0xc0170 0xc0170 merged commit cc8a132 into ARMmbed:master Jan 16, 2017
@LMESTM LMESTM deleted the dev_stm_factorize_gpio branch February 27, 2017 10:21
aisair pushed a commit to aisair/mbed that referenced this pull request Apr 30, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants