AnsweredAssumed Answered

How to send uint32_t hex via USART

Question asked by huang.ethan.001 on Mar 26, 2016
Latest reply on Mar 26, 2016 by Clive One
Hi All,

I would like to send uint32_t hex via USART, but no idea how to do it.

for example:

uint32_t buffer[2];

buffer[0] = 0x12345678;
buffer[1] = 0x87654321;

USART_puts(buffer[0])  <-- ????  the USART_puts length is uint8_t not 32-bit

void USART_puts(uint8_t * data){
    uint8_t u_i=0;
        USART_SendData(USART6, data[u_i++]);
        while(USART_GetFlagStatus(USART6, USART_FLAG_TXE) == RESET);          

Thank you.