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

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

?? avrxserialio_documentation.txt

?? the operate system used for AVR chips
?? 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一区二区三区免费野_久草精品视频
欧美精品乱码久久久久久按摩| 精彩视频一区二区三区| 久久久国产精品麻豆| 9191成人精品久久| 欧美日韩www| 欧美va在线播放| 国产视频在线观看一区二区三区| 久久久久成人黄色影片| 国产亚洲美州欧州综合国| 日本一区二区综合亚洲| 国产精品国产三级国产专播品爱网| 国产精品女同互慰在线看| 最新中文字幕一区二区三区 | 亚洲国产裸拍裸体视频在线观看乱了 | 国产激情视频一区二区在线观看| 国产一区二区三区综合| 成人妖精视频yjsp地址| 91老师片黄在线观看| 欧美视频在线播放| 日韩欧美久久久| 国产精品护士白丝一区av| 一区二区三区四区激情| 另类小说一区二区三区| 成人在线视频一区| 欧美三级日韩三级国产三级| 欧美成人精品1314www| 中文字幕欧美一| 日韩电影免费在线| 成人黄动漫网站免费app| 91久久精品午夜一区二区| 欧美不卡一区二区三区| 亚洲色图清纯唯美| 麻豆91在线播放免费| 波多野结衣中文一区| 欧美精品 国产精品| 国产丝袜美腿一区二区三区| 亚洲一二三四在线观看| 国内精品国产三级国产a久久| 91免费国产视频网站| 欧美电影免费提供在线观看| 亚洲理论在线观看| 国产露脸91国语对白| 欧美肥妇bbw| 一区二区三区四区av| 丁香激情综合五月| 日韩一级片网址| 亚洲国产精品麻豆| 91蝌蚪porny成人天涯| 国产午夜精品一区二区三区视频| 午夜精品123| 色婷婷综合中文久久一本| 久久久欧美精品sm网站| 蜜乳av一区二区三区| 欧美午夜精品一区二区三区| 国产精品的网站| 国产mv日韩mv欧美| 国产亚洲综合在线| 久久国产精品72免费观看| 欧美精品欧美精品系列| 亚洲精品视频在线观看网站| 国产精华液一区二区三区| 日韩免费视频线观看| 日韩高清在线不卡| 欧美日韩你懂的| 亚洲图片欧美视频| 欧美日韩在线不卡| 亚洲成av人片在线观看| 在线观看成人小视频| 亚洲国产精品一区二区久久 | 免播放器亚洲一区| 欧美精品在欧美一区二区少妇| 亚洲精品成人在线| 欧美一a一片一级一片| 亚洲一级二级在线| 91精品国产综合久久香蕉的特点 | 欧美一区二区三区视频| 亚洲一区二区三区中文字幕在线| 91在线一区二区三区| 亚洲欧美在线观看| 色综合久久中文综合久久牛| 亚洲特级片在线| 欧日韩精品视频| 午夜一区二区三区在线观看| 欧美嫩在线观看| 久久精品国产**网站演员| 精品国产一区二区三区av性色| 精品一区免费av| 欧美高清在线精品一区| 91在线视频观看| 亚洲一区二三区| 91精品国产福利| 国产精品中文有码| 亚洲男人的天堂在线观看| 欧美精品xxxxbbbb| 国产成人一级电影| 一区二区三区四区五区视频在线观看| 欧美日韩在线综合| 国产一区二区三区在线看麻豆| 欧美激情自拍偷拍| 欧美日韩一区二区三区在线| 久久精品国产澳门| 中文字幕一区二| 欧美电影一区二区三区| 国产**成人网毛片九色 | 色视频一区二区| 久久精品国产亚洲5555| 中文字幕一区二| 欧美www视频| 在线观看一区日韩| 国产成人av一区二区三区在线| 亚洲精品久久久久久国产精华液| 欧美麻豆精品久久久久久| 国产高清亚洲一区| 日韩av电影免费观看高清完整版在线观看 | 综合色天天鬼久久鬼色| 555www色欧美视频| 99精品在线观看视频| 日韩高清一区二区| 亚洲另类春色国产| 国产喂奶挤奶一区二区三区| 欧美三级中文字幕在线观看| 国产不卡视频一区二区三区| 午夜精品一区在线观看| 中文一区一区三区高中清不卡| 欧美军同video69gay| 99久久精品99国产精品| 蜜臀久久99精品久久久画质超高清 | 日本一区二区三区视频视频| 欧美三级日韩在线| 91视视频在线观看入口直接观看www | 一区二区三区四区不卡视频| 国产欧美日韩在线| 日韩午夜激情av| 欧美日韩色综合| 欧美性极品少妇| 91片黄在线观看| 国产成人综合网| 国产精品资源站在线| 另类小说视频一区二区| 日韩中文字幕亚洲一区二区va在线 | 精品国产乱码久久久久久图片| 91美女在线视频| 99国产精品久| av中文字幕一区| 99久久精品国产毛片| 成人av电影在线播放| 国产成人aaa| caoporen国产精品视频| 成人国产免费视频| 成人黄色在线网站| 成人av影院在线| 99精品视频在线观看免费| 成人h版在线观看| 91视视频在线观看入口直接观看www | 麻豆freexxxx性91精品| 蜜臀av性久久久久av蜜臀妖精| 亚洲成人久久影院| 天天色天天爱天天射综合| 天堂午夜影视日韩欧美一区二区| 亚洲国产欧美日韩另类综合| 亚洲另类在线制服丝袜| 亚洲一二三专区| 美腿丝袜亚洲色图| 国产黄色成人av| 99久久精品费精品国产一区二区| 色婷婷综合视频在线观看| 欧美在线观看视频一区二区三区| 欧美手机在线视频| 欧美一区二区三区视频在线| 精品乱人伦小说| 日韩一区在线免费观看| 午夜精品视频在线观看| 日韩精品电影一区亚洲| 极品少妇xxxx精品少妇| 成人免费高清视频在线观看| 99国产精品视频免费观看| 91免费观看视频在线| 欧美剧在线免费观看网站| 久久久久亚洲蜜桃| 亚洲日韩欧美一区二区在线| 首页国产丝袜综合| 国产精品18久久久久久vr| av电影在线观看不卡| 欧美精选在线播放| 中文字幕av一区二区三区免费看| 亚洲一区二区三区四区的| 国产一区二区三区蝌蚪| 91年精品国产| 欧美精品一区二区三区蜜桃| 综合网在线视频| 国产在线精品一区二区三区不卡| 成人免费视频视频| 欧美一区二区女人| 亚洲少妇中出一区| 九色综合狠狠综合久久| 色偷偷久久一区二区三区| 久久久综合视频| 日韩电影在线观看一区| www.亚洲免费av| 欧美电影精品一区二区|