?? f34x_msd_get_char.c
字號:
//-----------------------------------------------------------------------------
// F34x_MSD_Get_Char.c
//-----------------------------------------------------------------------------
// Copyright 2007 Silicon Laboratories, Inc.
// http://www.silabs.com
//
// Program Description:
//
// This file contains function for receiving data.
//
//
//
// How To Test: See Readme.txt
//
//
// FID: 34X000039
// Target: C8051F34x
// Tool chain: Keil
// Command Line: See Readme.txt
// Project Name: F34x_USB_MSD
//
// Release 1.2
// -All changes by BD and PD
// -5 OCT 2007
// -No changes; incremented revision number to match project revision
//
// Release 1.1
// -All changes by PKC
// -09 JUN 2006
// -Replaced SFR definitions file "c8051f320.h" with "c8051f340.h"
//
// Release 1.0
// -Initial Release
//
//-----------------------------------------------------------------------------
// Includes
//-----------------------------------------------------------------------------
#include "F34x_MSD_Definitions.h"
#include "F34x_MSD_Get_Char.h"
#include "c8051f340.h"
#include <stdio.h>
//----------------------------------------------------------------------------
// getchar
//----------------------------------------------------------------------------
//
// This function waits for input interrupt flag and receives the byte. In
// addition it sends the received byte back.
//
// Parameters :
// Return Value : recieved byte
//----------------------------------------------------------------------------
char getchar (void)
{
char r = _getkey();
putchar(r);
if(r == '\r')
r = '\n';
return r;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -