27 int size = strlen(char_array);
45 char hex_to_char[] = {
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'A',
'B',
'C',
'D',
'E',
'F' };
47 for (i = ((byte_size*8)-4); i >= 0; i=i-4)
64 (void)sprintf(
string,
"Line: %04d, File: %s",line_num, file_name);
void print_file_and_line(uint16_t line_num, const uint8_t *file_name)
Function used to report event related to source code.
void simple_uart_put(uint8_t cr)
Function for sending a character to UART. Execution is blocked until UART peripheral reports characte...
void print_hex(uint32_t number, uint8_t byte_size)
Converts hex number into char and send it through UART TX.
void print_string(char *char_array)
Decomposes char array and send chars through UART TX.