FD32M0P Microcontroller SDK
|
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) |
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().
void UartPuts | ( | const char * | data_char_arr | ) |
References UART_STDIO, and UartPutc().
Referenced by adc_samp_timer_cfg(), and print_int_var().
void UartEndSimulation | ( | void | ) |
void UartPass | ( | void | ) |
void UartFail | ( | void | ) |
void itoa_mcu | ( | uint32_t | value, |
char * | str, | ||
int | base ) |
Lightweight itoa implementation Converts an integer to a null-terminated string
value | The integer value to convert |
str | Pointer to buffer that receives the result (must be large enough) |
base | Numerical base for conversion (16, 10) |
Referenced by print_int_var().
void print_int_var | ( | const char * | prefix, |
int | var, | ||
bool | is_hex ) |