Skip to content

Add a serial transmission complete test #1850

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
Jun 14, 2016

Conversation

LMESTM
Copy link
Contributor

@LMESTM LMESTM commented Jun 3, 2016

This automated test makes sure that the serial
syncrhonous API ensures a full transmission before
the function returns. The complete string sent by
printf shall be completely transferred before printf
returns and the sleep modes are called.

mbed Issue #1849

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 7, 2016

cc @bridadan @PrzemekWirkus please review

#include "test_env.h"

int main() {
Serial *pc = new Serial(USBTX, USBRX);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any reason your create Serial object on heap?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No indeed no specific reason.
I can make it global - so I will send an updated PR for this

@PrzemekWirkus
Copy link
Contributor

+1

@LMESTM LMESTM force-pushed the dev_new_serial_complete_test branch 2 times, most recently from 8720974 to 7aac210 Compare June 14, 2016 09:23
@LMESTM
Copy link
Contributor Author

LMESTM commented Jun 14, 2016

Hi - I just rebased to get an updated status

This automated test makes sure that the serial
syncrhonous API ensures a full transmission before
the function returns. The complete string sent by
printf shall be completely transferred before printf
returns and the sleep modes are called.

mbed Issue ARMmbed#1849
@LMESTM LMESTM force-pushed the dev_new_serial_complete_test branch from 7aac210 to 8cb46bc Compare June 14, 2016 10:13
@0xc0170 0xc0170 merged commit ba69e82 into ARMmbed:master Jun 14, 2016
@LMESTM LMESTM deleted the dev_new_serial_complete_test branch May 23, 2017 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants