代码搜索结果
找到约 10,000 项符合
MCU 的代码
comm_mcu8051.c
#include "..\..\includes.h"
#if CFG_UART_EN > 0
#if CFG_UART_RX_BUF_EN > 0
// 串口接收缓冲区的存储空间
static INT8U idata UART0_RxBuf[UART0_RX_BUF_SIZE];
static INT8U idata UART1_RxBuf[UART1_RX_BUF_SIZE];
mcu_ring_queue.h
/**********************************************************************************
循环队列
说明:
本循环队列是专为嵌入式设计,主要用在嵌入式系统上。在PC机上,不推荐使用。
mcu_ring_queue.c
#include "..\..\includes.h"
#if CFG_UART_RX_BUF_EN > 0
//-------------------------------------------
// 队列初始化
//-------------------------------------------
extern void Queue_Init( RING_QUEUE
comm_mcu8051.h
#ifndef COMM_MCU8051_H
#define COMM_MCU8051_H
// 串口编号
#define UART0 0
#define UART1 1
// 系统中使用的串口的个数
#define UART_MAX_NUM 2
// 串口0接收缓冲区的大小
#define