![]() |
SyterKit 0.4.0.x
SyterKit is a bare-metal framework
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <timer.h>#include <types.h>#include "log.h"#include "uart.h"#include "xformat.h"
Functions | |
| void | printk (int level, const char *fmt,...) |
| Print message to kernel log. | |
| void | uart_printf (const char *fmt,...) |
| Print message via UART. | |
| int | printf (const char *fmt,...) |
| Print message via UART. | |
| int | printf_dram (const char *fmt,...) |
| void | dump_hex (uint32_t start_addr, uint32_t count) |
| Dumps memory content in hexadecimal format. | |
Dumps memory content in hexadecimal format.
This function dumps the content of memory starting from the specified address in hexadecimal format. It prints the hexadecimal values of memory contents and ASCII characters corresponding to printable characters.
| start_addr | The starting address of the memory region to dump. |
| count | The number of bytes to dump. |
| int printf | ( | const char * | fmt, |
| ... | |||
| ) |
Print message via UART.
This function is used to print formatted message to the terminal via UART serial port.
| fmt | Format string describing the format of the message to print. |
| ... | Variable argument list used to fill placeholders in the format string. |
| int printf_dram | ( | const char * | fmt, |
| ... | |||
| ) |
| void printk | ( | int | level, |
| const char * | fmt, | ||
| ... | |||
| ) |
Print message to kernel log.
This function is used to print the message with specified level to the kernel log.
| level | Information level, typically used to specify the importance or type of the message. |
| fmt | Format string describing the format of the message to print. |
| ... | Variable argument list used to fill placeholders in the format string. |
| void uart_printf | ( | const char * | fmt, |
| ... | |||
| ) |
Print message via UART.
This function is used to print formatted message to the terminal via UART serial port.
| fmt | Format string describing the format of the message to print. |
| ... | Variable argument list used to fill placeholders in the format string. |