亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? avrxserialio_documentation.txt

?? Embeded Atmel real time operational sytem with source code. Situable for 8 and 32 processors.
?? TXT
字號:
Sept, 14, 2005
Larry Barello (larry@barello.net)

Example code for buffered and non-buffered serial I/O for AvrX.  This code base
includes the new AvrX FIFO facility, which requires AvrX 2.6f for avr-gcc-3.4.3

As far as I could test (i.e. not very far) the serial i/o routines should
compile for most varients of AVR available (that are suitable for AvrX...)  If
one doesn't, it should be a minor change to the file AvrBufferedSerial.c or
AvrSimpleSerial.c to correct the group, or add a new MCU group to the #defines
for the usarts.  The test code was checked out on the following processors:

	at90s8515	(classic)
	atmega8		(generic)
	atmega16
	atmega128	(large)

Although the code is pretty simple there are bound to be minor issues with other
processor groups.  When building the example code MAKE SURE TO DO A CLEAN BUILD.
Sometimes when changing processors not all files are rebuilt and odd things can
happen.

The sample application is SerialExample.c.  You can configure it to use USART0,
USART1 or both (assuming 1 exists!) The demo prints a string to the respective
port and waits for the user to type some stuff back in.  The demo also
illustrates how to use the GCC libc stdio facility (printf)

The makefile allows two versions of the demo to be built: simple and buffered.
In the simple case all buffering is provided by the hardware, or, in the case of
the AVR double buffered (you actually get three since the s/r receiving a
character acts like the third buffer - although it does get over ridden.

Manifest:
	SerialExample.c		Sample application
	AvrXSerial.h		Header file for serial i/o interface
	AvrXSimpleSerial.c	Simple non-bufferred AvrX blocking routines
	AvrXBufferedSerial.c	Buffered AvrX routines
	makefile

Notes on declaration and usage of SerialIO routines

	There are two flavors of serial I/O drivers.  Both are fixed 8 bit, no
	parity, one stop bit drivers.  Those parameters are easy to change in the
	code.

	AvrXBufferedSerial.c

	Uses AvrXFifo to create buffered serial streams for both input and
	output.  The amount of data buffered is the size of the fifo. Additional
	received characters will be lost.

	AvrXSimpleSerial.c

	Implements simple AvrX semaphore mediated serial i/o. There is no
	buffering beyond what is provided by the USART hardware. Depending upon
	the processor being used, the code can effectively buffer up to three
	characters on receive and two on transmit (classic processors are not
	double buffered).

	AvrXSerial.h

	Header file for serial i/o routines.  Used to control which serial port
	is used (if the chip supports more than one) and size of fifo buffers,
	if used.  By default, all available USART ports are used.

User Interface:

	void InitSerialIo0(unsigned int ubrr)
	int get_c0()	// Non-blocking, returns -1 if empty
	int get_char0()	// Blocking
	int put_c0()	// Non-blocking, return -1 if full
	int put_char0()	// Blocking

	void InitSerialIo1(unsigned int ubrr)
	int get_c1()	// Non-blocking
	int get_char1()	// Blocking
	int put_c1()	// Non-blocking
	int put_char1()	// Blocking

	The header file defines generic interface aliases for the routines when
	only one port is enabled.

	void InitSerialIo()
	int get_c()	// Non-blocking, returns -1
	int get_char()	// Blocking
	int put_c()	// Non-blocking
	int put_char()	// Blocking

	Most modern AVR processor support CLK/16 and CLK/8 baud rate generator
	values. The default is CLK/8 since that gives more flexibility in baud
	rate selection.  For processors that do not support CLK/8, the header
	file automatically redefines the divisor to CLK/16.  There is a handy
	macro provided to generate the proper UBRR value based upon the CPUCLK,
	Baud rate and Clock divisor:

	BAUD(baud_rate)

	e.g.	InitSerialIo0(BAUD(38400));

	See AvrXSerialIo.h for details.

EXAMPLE APPLICATION

	SerialExample.c

	This application has a task with a timeout.  It prints a message and
	then waits 5 seconds for the user to type something in. At the end of
	the delay it prints out whatever was typed in.

	There are two tasks, one for each serial port.  The code only enables
	tasks for enabled serial ports.

	It is interesting to link the sample with buffered and non-buffered
	serial routines.  The non-buffered routines clearly illustrate the
	hardware buffering of the USART.  Classic AVR chips have a single
	buffer.  Newer mega chips have double buffering as well as the ability
	to keep a third character in the shift register.

	With the buffered serial I/O only characters received and successfully
	buffered are printed. All others are lost.

	This example also shows how to use GCC stdio facility.  Using default
	Printf (scanf, etc) adds about 2kb to the load image.  However, once
	loaded the library can be used to simplify many parsing & formatting
	chores. Also included are two minimal string print routines.  Usage for
	those are illustrated in task1.  When only port1 is enabled, the load
	image size reduces considerably because stdio is not linked in.

MAKEFILE

	The default target builds both the simple and buffered versions of the
	example.  "make program" will attempt to program an STK500 with the
	target listed at the beginning of the makefile. "

	"make program TARGET=AvrXSimpleSerial" or "make program TARGET=AvrXBufferedSerial"
	will program the respective targets.

	Other make options:

	make clean		- deletes default target compiled modules
	make clean TARGET=... 	- deletes compiled modules for that target.
	make			- builds both targets
	make all		- just builds the default target

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91丨九色丨蝌蚪富婆spa| 视频一区二区欧美| 成人午夜视频免费看| 91麻豆精品秘密| 欧美一区二区在线看| 在线观看www91| 欧美成人三级电影在线| 亚洲综合色噜噜狠狠| 亚洲综合一二区| 国产黄色91视频| 欧美变态tickle挠乳网站| 亚洲国产一二三| 成人高清免费在线播放| 久久蜜桃av一区二区天堂| 日本中文字幕一区| 欧美四级电影网| 欧美精品国产精品| 亚洲一区二区av在线| 色综合中文字幕国产 | 亚洲一区二区综合| 成人精品视频一区二区三区 | 久久99精品久久久久婷婷| 日本韩国欧美一区| 自拍偷拍亚洲激情| 成人免费视频一区二区| 久久久久免费观看| 韩国女主播一区| 91丨porny丨最新| 国产精品黄色在线观看| 粉嫩一区二区三区在线看| 亚洲精品v日韩精品| 国产成人亚洲综合色影视| 精品国产一区二区亚洲人成毛片| 国产欧美视频一区二区| 一区二区三区色| 一本久久a久久精品亚洲| 中文字幕亚洲成人| 99久久精品免费精品国产| 在线电影院国产精品| 午夜电影网亚洲视频| 在线不卡免费av| 男人的天堂久久精品| 日韩你懂的在线观看| 亚洲欧洲性图库| 97精品超碰一区二区三区| 亚洲乱码一区二区三区在线观看| 久久精品国产999大香线蕉| 欧美一级视频精品观看| 国产在线看一区| 国产精品女上位| 黑人精品欧美一区二区蜜桃| 337p日本欧洲亚洲大胆色噜噜| 亚洲专区一二三| 欧美一级高清片| 亚洲免费观看视频| 欧美日韩精品高清| 黄色小说综合网站| 欧美一级在线免费| 成人亚洲一区二区一| 亚洲精品国产精华液| 717成人午夜免费福利电影| 韩国女主播一区| 夜夜夜精品看看| 久久伊99综合婷婷久久伊| 日本电影亚洲天堂一区| 裸体在线国模精品偷拍| 国产精品久久久久久久久免费樱桃 | 成人午夜大片免费观看| 亚洲一区在线观看免费 | 国产一二精品视频| 国产精品天干天干在线综合| 欧美系列亚洲系列| 国产在线麻豆精品观看| 亚洲一区二区三区国产| 一本大道久久精品懂色aⅴ| 欧美国产97人人爽人人喊| 欧美日韩免费高清一区色橹橹| 一区二区三区欧美激情| 日韩天堂在线观看| 95精品视频在线| 久久激情五月婷婷| 亚洲一区在线观看免费 | 国产亚洲一区二区三区在线观看| 久久成人18免费观看| 国产精品日产欧美久久久久| 欧美人体做爰大胆视频| av不卡在线播放| 亚洲午夜久久久久| 国产精品午夜在线| 精品福利二区三区| 欧美高清精品3d| 奇米精品一区二区三区四区| 亚洲欧美激情视频在线观看一区二区三区 | 国产福利一区二区三区视频| 亚洲最大色网站| 国产精品区一区二区三| 色偷偷成人一区二区三区91| 成人看片黄a免费看在线| 蜜臀91精品一区二区三区| 亚洲第一av色| 亚洲综合在线五月| 中文字幕一区二区在线播放| 91网页版在线| av在线一区二区三区| 国产精品乡下勾搭老头1| 久久精品99国产精品日本| 蜜臀va亚洲va欧美va天堂| 亚洲成人av资源| 午夜一区二区三区在线观看| 欧美日韩久久不卡| 欧美视频在线观看一区二区| 免费看日韩精品| 欧美国产日韩精品免费观看| 久久久精品国产免大香伊| 欧美不卡一区二区三区四区| 日韩欧美色综合| www国产成人免费观看视频 深夜成人网| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 尤物在线观看一区| 欧美tk—视频vk| 色婷婷狠狠综合| 国产一区二区在线观看免费 | 欧美激情一区二区三区在线| 久久久久免费观看| 国产精品免费av| 欧美一二三区在线观看| 精品免费99久久| 国产清纯在线一区二区www| 欧美高清在线视频| 亚洲人123区| 久久久久亚洲蜜桃| 欧美一级夜夜爽| 欧美特级限制片免费在线观看| 国产69精品久久99不卡| 日韩国产成人精品| 久久精品久久久精品美女| 风间由美一区二区三区在线观看| 日韩国产一二三区| 国产一区二区三区av电影| 99精品黄色片免费大全| 欧美专区日韩专区| 精品成人一区二区三区| 国产精品美女久久久久aⅴ| 精品少妇一区二区三区日产乱码 | www..com久久爱| 欧美中文字幕一区| 精品少妇一区二区三区| 成人免费在线播放视频| 五月婷婷激情综合网| 国产精一品亚洲二区在线视频| 麻豆国产欧美日韩综合精品二区| 亚洲国产视频一区二区| 日本不卡一区二区三区高清视频| 亚洲女厕所小便bbb| 日本美女视频一区二区| 日韩av二区在线播放| 成人毛片老司机大片| 制服丝袜中文字幕一区| 国产精品国产a| 久久精品国产免费| 国产一二精品视频| 欧美日韩国产色站一区二区三区| 在线观看日产精品| 精品久久99ma| 亚洲国产综合人成综合网站| 激情丁香综合五月| 欧美剧情片在线观看| 国产精品全国免费观看高清 | 99久久免费国产| 精品国产乱码久久久久久蜜臀| 精品动漫一区二区三区在线观看| 精品国产乱码久久久久久牛牛| 日韩欧美综合在线| 一区二区三区在线影院| 黄色资源网久久资源365| 欧美老人xxxx18| 亚洲最大色网站| 一本色道a无线码一区v| 在线观看视频欧美| 中文字幕一区二区三区不卡在线| 亚洲日本在线观看| 国产激情一区二区三区四区| 精品日韩99亚洲| 亚洲亚洲人成综合网络| 日韩电影一二三区| 欧美午夜寂寞影院| 日韩欧美国产小视频| 亚洲高清在线视频| 色8久久人人97超碰香蕉987| 国产精品毛片大码女人| 亚洲一区二区三区美女| 97se亚洲国产综合在线| 6080午夜不卡| 日韩av在线免费观看不卡| 欧美人狂配大交3d怪物一区| 亚洲一区二区在线播放相泽 | 日韩精品一区第一页| 欧美在线观看视频在线| 亚洲综合色在线| 欧美日产国产精品|