FD32M0P Microcontroller SDK
Loading...
Searching...
No Matches
uart_stdout_mcu.c File Reference
#include "uart_stdout_mcu.h"
#include <stdbool.h>
Include dependency graph for uart_stdout_mcu.c:

Functions

void UartStdOutInit (void)
void UartPuts (const char *data_char_arr)
void UartEndSimulation (void)
void UartPass (void)
void UartFail (void)
void itoa_mcu (uint32_t value, char *str, int base)
void print_int_var (const char *prefix, int var, bool is_hex)

Function Documentation

◆ UartStdOutInit()

void UartStdOutInit ( void )

References STDIO_BAUD_RATE, SystemFrequency, uart_cfg(), UART_CFG_STOP_BIT_ONE, UART_CFG_WRD_LEN_8_BITS, UART_CLK_SEL_CLK_APB, UART_CTRL_OS_FACTOR_3, UART_CTRL_TX_EN_HW, UART_CTRL_UART_MSB_LAST, uart_en(), uart_init(), and UART_STDIO.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UartPuts()

void UartPuts ( const char * data_char_arr)

References UART_STDIO, and UartPutc().

Referenced by adc_samp_timer_cfg(), and print_int_var().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UartEndSimulation()

void UartEndSimulation ( void )

References UartPutc().

Here is the call graph for this function:

◆ UartPass()

void UartPass ( void )

References UartPutc().

Here is the call graph for this function:

◆ UartFail()

void UartFail ( void )

References UartPutc().

Here is the call graph for this function:

◆ itoa_mcu()

void itoa_mcu ( uint32_t value,
char * str,
int base )

Lightweight itoa implementation Converts an integer to a null-terminated string

Parameters
valueThe integer value to convert
strPointer to buffer that receives the result (must be large enough)
baseNumerical base for conversion (16, 10)

Referenced by print_int_var().

Here is the caller graph for this function:

◆ print_int_var()

void print_int_var ( const char * prefix,
int var,
bool is_hex )

References itoa_mcu(), and UartPuts().

Here is the call graph for this function: