⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serial-pxa.h

📁 使用ADS,用仿真器烧写程序到nor flash。 具体操作见src/main.c的注释。 PS:yf255_sdram_init.txt为cpu的初始化脚本。
💻 H
字号:
/*------------------------------------------------------------------------- * Filename:      serial.h * Version:       $Id: serial.h,v 1.5 2002/01/05 20:14:34 erikm Exp $ * Copyright:     Copyright (C) 1999, Erik Mouw * Author:        Erik Mouw <J.A.K.Mouw@its.tudelft.nl> * Description:   Header file for serial.c * Created at:    Tue Aug 24 20:25:00 1999 * Modified by:   Erik Mouw <J.A.K.Mouw@its.tudelft.nl> * Modified at:   Tue Sep 28 23:43:46 1999 *-----------------------------------------------------------------------*//* * serial.h: Serial utilities for blob * * Copyright (C) 1999 2002  Erik Mouw (J.A.K.Mouw@its.tudelft.nl) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * */#ident "$Id: serial.h,v 1.5 2002/01/05 20:14:34 erikm Exp $"#ifndef BLOB_SERIAL_H#define BLOB_SERIAL_H#include "types.h"typedef enum {	baud_1200 	= 1200,	baud_2400 	= 2400,	baud_4800 	= 4800,	baud_9600 	= 9600,	baud_19200 	= 19200,	baud_38400 	= 38400,	baud_57600 	= 57600,	baud_115200	= 115200,	baud_230400	= 230400} serial_baud_t;int pxa_serial_change_speed(int baud);int pxa_serial_flush_input(void);int pxa_serial_flush_output(void);int pxa_serial_init(serial_baud_t baud);int pxa_serial_poll(void);int pxa_serial_read(void);int pxa_serial_write(char c);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -