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

boards/nz32-sc151: do not blindly set TERMFLAGS #11065

Merged
merged 1 commit into from
Mar 5, 2019

Conversation

cladmi
Copy link
Contributor

@cladmi cladmi commented Feb 25, 2019

Contribution description

The board should not globally set TERMFLAGS without a RIOT_TERMINAL
condition.

Also the board does not export uart through usb and thus needs an uart
converter connected. Other boards in the same situation do not need
to set TERMPROG without a valid baudrate. So remove the definition
anyway.

This also removes the export of TERM* variables and should make it work
with the other RIOT_TERMINAL.

## Using UART
This board doesn't open an UART or serial interface threw the USB
automatically, and the USB device driver hasn't been implemented to RIOT yet.
Therefore, to open an UART interface one hast to connect a usb/ttl converter to
the UART3 pins PB11 (RX3) and PB10 (TX3).

Testing procedure

I do not have the board here but testing the board with an external uart should still work.
@aabadie

Also you can review the commit message if it makes sense for the board or not.

Issues/PRs references

Tracking issue: #10850
Found while working on #10952

The board should not globally set `TERMFLAGS` without a RIOT_TERMINAL
condition.

Also the board does not export uart through usb and thus needs an uart
converter connected. Other boards in the same situation do not need
to set `TERMPROG` without a valid baudrate. So remove the definition
anyway.

This also removes the export of TERM* variables and should make it work
with the other RIOT_TERMINAL.
@cladmi cladmi added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Area: tools Area: Supplementary tools Area: boards Area: Board ports labels Feb 25, 2019
@cladmi cladmi added this to the Release 2019.04 milestone Feb 25, 2019
@cladmi cladmi requested a review from aabadie February 25, 2019 17:03
Copy link
Contributor

@aabadie aabadie left a comment

Choose a reason for hiding this comment

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

Tested this PR and the terminal is still working with both pyterm and socat.
Code changes are good.

ACK

@aabadie aabadie self-requested a review March 5, 2019 15:56
@aabadie aabadie added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Mar 5, 2019
@aabadie aabadie merged commit ee44e58 into RIOT-OS:master Mar 5, 2019
@cladmi
Copy link
Contributor Author

cladmi commented Mar 5, 2019

Thank you for the review.

@cladmi cladmi deleted the pr/board/nz32/termprog branch March 5, 2019 16:53
@cladmi
Copy link
Contributor Author

cladmi commented Mar 5, 2019

Youhou no more 'export TERMPROG' or 'export TERMFLAGS'.

@danpetry danpetry modified the milestone: Release 2019.04 Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: boards Area: Board ports Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants