<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style="--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>
GitLab
</title>

<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>

<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style="font-size: inherit; -webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";">
<div class="content">

<p class="details" style="font-style: italic; color: #626168;">
<a href="https://gitlab.rtems.org/mohamedayman23">Mohamed Ayman</a> created a merge request: <a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1195">!1195</a>
</p>
<div class="branch">
Project:Branches: mohamedayman23/rtems:fix-CREAD-enable-recevier to rtems/rtos/rtems:main
</div>
<div class="author">
Author: Mohamed Ayman
</div>
<div class="assignee">
Assignees: 
</div>
<div class="reviewer">
Reviewers: 
</div>
<div class="md gl-mt-5" style="position: relative; z-index: 1; color: #3a383f; word-wrap: break-word; margin-top: 1rem;">
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">arm/stm32h7: Fix UART CREAD flag logic</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">The stm32h7_uart_set_attributes function incorrectly set the UART mode to UART_MODE_RX when the POSIX CREAD (Enable Receiver) flag was cleared in the termios control flags.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">This inadvertently disabled the transmitter (breaking console output) and left the receiver enabled, which is the exact opposite of the intended behavior.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">This commit fixes the fallback logic to set the mode to UART_MODE_TX when CREAD is not set, ensuring that the console can still transmit data while reception is properly disabled.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial"><a class="no-attachment-icon gfm" href="https://gitlab.rtems.org/-/project/26/uploads/ab5bbf7d95adf1ea417e40bd0b28c21f/Screenshot_from_2026-04-10_09-24-11.png" target="_blank" rel="noopener noreferrer" data-canonical-src="/uploads/ab5bbf7d95adf1ea417e40bd0b28c21f/Screenshot_from_2026-04-10_09-24-11.png" data-link="true" style="margin-top: 0;"><img src="https://gitlab.rtems.org/-/project/26/uploads/ab5bbf7d95adf1ea417e40bd0b28c21f/Screenshot_from_2026-04-10_09-24-11.png" alt="Screenshot from 2026-04-10 09-24-11.png" width="900" height="426" data-canonical-src="/uploads/ab5bbf7d95adf1ea417e40bd0b28c21f/Screenshot_from_2026-04-10_09-24-11.png" class="gfm" style="max-width: 100%; height: auto; margin-top: 0; vertical-align: baseline; object-fit: contain; object-position: top;"></a></p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial"><a class="no-attachment-icon gfm" href="https://gitlab.rtems.org/-/project/26/uploads/65c16161fda0830b3e55de0292a0b325/Screenshot_from_2026-04-10_09-25-20.png" target="_blank" rel="noopener noreferrer" data-canonical-src="/uploads/65c16161fda0830b3e55de0292a0b325/Screenshot_from_2026-04-10_09-25-20.png" data-link="true" style="margin-top: 0;"><img src="https://gitlab.rtems.org/-/project/26/uploads/65c16161fda0830b3e55de0292a0b325/Screenshot_from_2026-04-10_09-25-20.png" alt="Screenshot from 2026-04-10 09-25-20.png" width="900" height="275" data-canonical-src="/uploads/65c16161fda0830b3e55de0292a0b325/Screenshot_from_2026-04-10_09-25-20.png" class="gfm" style="max-width: 100%; height: auto; margin-top: 0; vertical-align: baseline; object-fit: contain; object-position: top;"></a></p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial"><a class="no-attachment-icon gfm" href="https://gitlab.rtems.org/-/project/26/uploads/d2bbde63a246176ec1d9b32693e12afb/Screenshot_from_2026-04-10_09-25-52.png" target="_blank" rel="noopener noreferrer" data-canonical-src="/uploads/d2bbde63a246176ec1d9b32693e12afb/Screenshot_from_2026-04-10_09-25-52.png" data-link="true" style="margin-top: 0;"><img src="https://gitlab.rtems.org/-/project/26/uploads/d2bbde63a246176ec1d9b32693e12afb/Screenshot_from_2026-04-10_09-25-52.png" alt="Screenshot from 2026-04-10 09-25-52.png" width="835" height="148" data-canonical-src="/uploads/d2bbde63a246176ec1d9b32693e12afb/Screenshot_from_2026-04-10_09-25-52.png" class="gfm" style="max-width: 100%; height: auto; margin-top: 0; vertical-align: baseline; object-fit: contain; object-position: top;"></a></p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">AI Usage: None</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">AI Prompt: None</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">AI Model: None</p>
<p dir="auto" style="color: #3a383f; margin: 0;" align="initial">How AI used: None</p>
</div>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #626168;">

<br>
<a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1195">View it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.rtems.org">gitlab.rtems.org</a>. <a href="https://gitlab.rtems.org/-/sent_notifications/3-agjf0f4neafqf99uthivtib6q/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.rtems.org/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.rtems.org/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<span style="color: transparent; font-size: 0; display: none; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0;">
Notification message regarding https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1195 at 1775806016
</span>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Merge request","url":"https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1195"}}</script>


</p>
</div>
</body>
</html>