📄 uart.h
字号:
// This file is part of MANTIS OS, Operating System// See http://mantis.cs.colorado.edu///// Copyright (C) 2003,2004,2005 University of Colorado, Boulder//// This program is free software; you can redistribute it and/or// modify it under the terms of the mos license (see file LICENSE)#ifndef UART_H_#define UART_H_#include <inttypes.h>#define UART0 0#define UART1 1void mos_uart_init();int8_t mos_uart_open(uint8_t uart);void mos_uart_set_baud_rate(uint16_t rate);void mos_uart_send(uint8_t uart, uint8_t byte);uint8_t mos_uart_recv(uint8_t uart);/* Disable the transmitter and receiver as well as all UART interrupt types. */void mos_uart_close(uint8_t uart);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -