ARM9教程DSP教程FPGA教程CPLD教程12A软硬件设计0229(5)

2020-12-13 23:46

ARM9教程DSP教程FPGA教程CPLD教程12A软硬件设计0229

/*****************************************************************************\ |*

|* COPYRIGHT: Copyright (c) 2004, PurPer |*

|* DESCRIPTION: SRL0 device driver |*

\*****************************************************************************/

#ifndef _WB_SRL0_H #define _WB_SRL0_H

//.............................................................................. // Initialization routine. Must be called to setup the SRL0 controller // This version of the device driver always uses 8 data bits, no parity, // one stop bit, although other modes can be set by directly accessing the // SRL0 core.

void srl0_init ( unsigned int base, unsigned int baudrate );

//.............................................................................. // These functions go straight to the controller. They do not queue // or use interrupts.

unsigned char srl0_get_byte ( unsigned int base ); unsigned char srl0_get_byte_blocking ( unsigned int base );

void srl0_put_byte ( unsigned int base, unsigned char val ); void srl0_put_byte_blocking ( unsigned int base, unsigned char val );

//.............................................................................. // Receive / transmit buffers.

// These are used when interrupt driven serial communications are used. // Application code should declare the buffers, set the buffer_size


ARM9教程DSP教程FPGA教程CPLD教程12A软硬件设计0229(5).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:《大学生创业基础》期末考试(20)98分

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: