uart.h
来自「MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis」· C头文件 代码 · 共 28 行
H
28 行
// 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 + =
减小字号Ctrl + -
显示快捷键?