Sync/include/kernel/serial.h
Curle 4edd4b7cc8 Major refactor. Major improvements.
All ISR/IRQ stuff moved into its own header and source.

Comments added on all major parts.

Some optimisations in important functions.

All ASM removed for ISR and IRQ, instead using new GCC directives.
2019-06-27 19:57:54 +01:00

22 lines
434 B
C
Executable File

#pragma once
#include <stdint.h>
#include <stddef.h>
void init_serial();
void serial_set_baud_rate(uint16_t, uint16_t);
void serial_configure_line(uint16_t);
void serial_configure_buffers(uint16_t);
void serial_write(uint16_t, const char);
void serial_configure_modem(uint16_t);
int serial_check_tqueue(uint16_t);
void serial_print(uint16_t, const char*);
void serial_printf(uint16_t, const char*, ...);