mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-08 19:54:38 +00:00
replace console_put() by putchar() and console_print() by putstring()
This commit is contained in:
parent
a74c487fba
commit
6a00dde82b
@ -4,6 +4,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "console.h"
|
||||
|
||||
#include "vga.h"
|
||||
@ -23,17 +25,17 @@ console_init(emile_l2_header_t* info)
|
||||
serial_init(info);
|
||||
}
|
||||
|
||||
void
|
||||
console_put(char c)
|
||||
inline int putchar(int c)
|
||||
{
|
||||
if (vga_enabled)
|
||||
vga_put(c);
|
||||
serial_put(c);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
void
|
||||
console_print(const char *s)
|
||||
void putstring(const char *s)
|
||||
{
|
||||
while(*s)
|
||||
console_put(*(s++));
|
||||
putchar(*(s++));
|
||||
}
|
||||
|
@ -12,7 +12,6 @@
|
||||
|
||||
extern void console_init(emile_l2_header_t* info);
|
||||
|
||||
extern void console_put(char c);
|
||||
extern void console_print(const char *s);
|
||||
extern void putstring(const char *s);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user