+/rtos
git clone https://git.julia.blue/+/rtos
021d2d4
master
1#pragma once 2 3#include "OS.h" 4#include <stdbool.h> 5#include <stdint.h> 6 7void uart_init (void ); 8void uart_change_speed (uint32_t baud ); 9 10bool uart_putchar (char x ); 11void uart_puts (const char * str ); 12#define puts (s ) OS_RedirectString(s) 13#define putchar (c ) OS_RedirectChar(c) 14 15char getchar (void ); 16uint16_t gets (char * str ,uint16_t max ); 17uint16_t readline (char * str ,uint16_t max ); 18 19#define BLACK "\x1b[0;30m" 20#define RED "\x1b[0;31m" 21#define GREEN "\x1b[0;32m" 22#define YELLOW "\x1b[0;33m" 23#define BLUE "\x1b[0;34m" 24#define MAGENTA "\x1b[0;35m" 25#define CYAN "\x1b[0;36m" 26#define WHITE "\x1b[0;37m" 27#define NORMAL "\x1b[0m"