You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "wiktorkwiatkowski (via GitHub)" <gi...@apache.org> on 2025/07/29 08:27:55 UTC

[I] hw/drivers: Lack of simple UART string transmit API [mynewt-core]

wiktorkwiatkowski opened a new issue, #3487:
URL: https://github.com/apache/mynewt-core/issues/3487

   Currently, there is no easy way to send a full string over a UART interface.
   You have to send each character manually, like this:
   ```
   char *str = "Hello World!";
   char *ptr = str;
   
   while (*ptr) {
       hal_uart_blocking_tx(MY_UART, *ptr++);
   }
   hal_uart_blocking_tx(MY_UART, '\n');
   ```
   For the console, there is `console_printf()`, but there isnt similar function for general UARTs.
   
   **Proposal:**
   Add function, for example:
   `void hal_uart_transmit(int uart, char *str);`
   that would send the whole string over the selected UART.
   
   **Example usage:**
   `hal_uart_transmit(1, "Hello World!\n");`
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] hw/drivers: Lack of simple UART string transmit API [mynewt-core]

Posted by "spnirmal (via GitHub)" <gi...@apache.org>.
spnirmal commented on issue #3487:
URL: https://github.com/apache/mynewt-core/issues/3487#issuecomment-3445760369

   can this be assigned to me.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org