Skip to content

Remove the deprecated RawSerial, UARTSerial, Serial #12410

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

Merged
merged 1 commit into from
Mar 20, 2020

Conversation

rajkan01
Copy link
Contributor

@rajkan01 rajkan01 commented Feb 11, 2020

Summary of changes

  • Removed RawSerial, Serial, UARTSerial deprecated classes.
  • Removed SerialBase deprecated APIs.

Impact of changes

Breaking change: RawSerial, Serial, UARTSerial classes have been deprecated since Mbed OS 6.0.0 and they are all removed now.

Migration actions required

Use BufferedSerial and UnbufferedSerial for serial communication.

Documentation


Pull request type

[] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[x] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers

@evedon @jamesbeyond


evedon
evedon previously approved these changes Feb 11, 2020
@mergify mergify bot added the needs: CI label Feb 11, 2020
@jamesbeyond
Copy link
Contributor

CI would be useful to see the impact of deprecating work 😃

jamesbeyond
jamesbeyond previously approved these changes Feb 12, 2020
@0xc0170 0xc0170 added the release-version: 6.0.0-alpha-2 Second pre-release version of 6.0.0 label Feb 12, 2020
0xc0170
0xc0170 previously approved these changes Feb 12, 2020
@0xc0170
Copy link
Contributor

0xc0170 commented Feb 12, 2020

CI started

@mergify mergify bot added needs: work and removed needs: CI labels Feb 12, 2020
@mbed-ci
Copy link

mbed-ci commented Feb 12, 2020

Test run: FAILED

Summary: 3 of 4 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-ARM
  • jenkins-ci/mbed-os-ci_build-IAR

@mergify mergify bot dismissed stale reviews from evedon, jamesbeyond, and 0xc0170 February 12, 2020 18:22

Pull request has been modified.

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 13, 2020

CI restarted

@mbed-ci
Copy link

mbed-ci commented Feb 13, 2020

Test run: FAILED

Summary: 3 of 4 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARM
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-IAR

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 13, 2020

There are still relevant failures for few targets

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 24, 2020

I got one request, it's rather for the docs. I can't find the referenced docs PR here. As we update docs, can we quickly also update these classes to use other pins than USBTX/RX ?

There are lines like this UnbufferedSerial console(USBTX, USBRX); - we should rather use different pins, for console we provide config values to override or console retarget override. I can create a separate ticket.

@0xc0170 0xc0170 added release-version: 6.0.0-alpha-3 and removed release-version: 6.0.0-alpha-2 Second pre-release version of 6.0.0 labels Feb 24, 2020
@0xc0170
Copy link
Contributor

0xc0170 commented Feb 24, 2020

I marked this for beta-1

@rajkan01 rajkan01 requested a review from pan- February 24, 2020 16:47
@@ -79,7 +79,6 @@ static DigitalIn _rts(BT_CTS);
static DigitalIn _cts(BT_RTS);
static DigitalIn _clk(BT_CLK);
static DigitalOut _shutdown(BT_RST, 0);
static Serial _uart(BT_TX, BT_RX, 115200);
Copy link
Member

Choose a reason for hiding this comment

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

This wasn't used. @ARMmbed/team-maximintegrated Is it ok for you ?

evedon
evedon previously requested changes Feb 25, 2020
@evedon
Copy link
Contributor

evedon commented Feb 25, 2020

I got one request, it's rather for the docs. I can't find the referenced docs PR here. As we update docs, can we quickly also update these classes to use other pins than USBTX/RX ?

There are lines like this UnbufferedSerial console(USBTX, USBRX); - we should rather use different pins, for console we provide config values to override or console retarget override. I can create a separate ticket.

Please raise a separate ticket for this.

@mergify mergify bot dismissed evedon’s stale review February 25, 2020 15:41

Pull request has been modified.

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 26, 2020

CI started

@mergify mergify bot added needs: work and removed needs: CI labels Feb 26, 2020
@mbed-ci
Copy link

mbed-ci commented Feb 26, 2020

Test run: FAILED

Summary: 3 of 4 test jobs failed
Build number : 3
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-ARM
  • jenkins-ci/mbed-os-ci_build-IAR

@evedon
Copy link
Contributor

evedon commented Mar 3, 2020

CI fails due to compilation errors in nanostack-border-router. Ticket raised with mesh team.

@rajkan01 rajkan01 force-pushed the serial_remove_deprecate branch from 8b7caec to df32091 Compare March 3, 2020 13:32
@mergify mergify bot dismissed evedon’s stale review March 3, 2020 13:34

Pull request has been modified.

@adbridge
Copy link
Contributor

@rajkan01 @evedon What is the current status of this now? Should it be marked as needing a preceding PR ? Unlikely to meet alpha-3 ?

@evedon
Copy link
Contributor

evedon commented Mar 11, 2020

@rajkan01 @evedon What is the current status of this now? Should it be marked as needing a preceding PR ? Unlikely to meet alpha-3 ?

Internal ticket raised https://jira.arm.com/browse/IOTTHD-4010

@bulislaw
Copy link
Member

We should try to get it merge soon as it causes a lot of warnings. Do we need to escalate?

@rajkan01
Copy link
Contributor Author

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 19, 2020

@rajkan01 The PR was merged, shall this be restarted ?

@adbridge
Copy link
Contributor

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 20, 2020

Test run: SUCCESS

Summary: 7 of 7 test jobs passed
Build number : 4
Build artifacts

@adbridge adbridge merged commit d048cd4 into ARMmbed:master Mar 20, 2020
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.

8 participants