sci.c

来自「freescale最新的16位单片机」· C语言 代码 · 共 40 行

C
40
字号
/******************************************************************************
*
* Freescale Semiconductor Inc.
* (c) Copyright 2004-2005 Freescale Semiconductor, Inc.
* ALL RIGHTS RESERVED.
*
***************************************************************************//*!
*
* @file      sci.c
*
* @author    R89994
* 
* @version   1.0.5.0
* 
* @date      Jul-27-2006
* 
* @brief     Settings of Periphery SCI
*
******************************************************************************/

#include "main.h"
#include "sci.h"


/******************************************************************************
* Module            : void SetupUART(void)
* Description       : initialization of SCI periphery used by Freemaster
* Global Data       : none
* Static Global Data: none
* Returns           : none
* Arguments         : none
* Special Issues    : none
******************************************************************************/

void SetupUART(void)
{
	// 9600 @ 24MHz
	SCI5BD = 0x009C;
}

⌨️ 快捷键说明

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