boucane/src/libs/stdio.hpp

37 lines
553 B
C++
Raw Normal View History

2021-04-21 12:23:54 +02:00
#pragma once
#include "drivers/framebuffer.hpp"
/// @brief Current active framebuffer driver
extern void (*__putchar)(char);
/**
* Print a char* in the framebuffer
*/
void printk(char *,...);
/**
* Print a char*
*/
void print(char *s);
/**
* Print a char in the framebuffer
*/
void printc(char *, VIDEO_COLORS c);
/**
* Print an integer using itoa()
*/
void printi(int i);
/**
* Print an integer as hex using itoh()
*/
void printh(int h);
/**
* Print an integer as hex using itoh() truncated to size
*/
2021-04-21 13:18:01 +02:00
void printh(int h, u32 size);