?? adcinit.c
字號:
/*******************************************************************************************************
* *
* ********** *
* ************ *
* *** *** *
* *** +++ *** *
* *** + + *** This file implements functionality for reading the potmeter *
* *** + *
* *** + + *** *
* *** +++ *** AdcInit.c *
* *** *** *
* ************ *
* ********** *
* *
*******************************************************************************************************
* Compiler: Keil C51 V7.50 *
* Target platform: Chipcon CCxxx0 (Silabs F320) *
* Author: SNA *
*******************************************************************************************************
* Revision history: See end of file *
******************************************************************************************************/
#include <Chipcon\srf04\halsrf04.h>
#include <Chipcon\srf04\ebsrf04.h>
//-------------------------------------------------------------------------------------------------------
// void ebAdcInit(UINT8 adcInput)
//
// DESCRIPTION:
// Function used to initialize ADC before using the ebGetJoystickPosition or ebReadPotentiometer
// functions.
//
// ARGUMENTS:
// UINT8 adcInput
// ADC_JOY
// ADC_POT
// ADC_AUDIO
//-------------------------------------------------------------------------------------------------------
void ebAdcInit(UINT8 adcInput) {
// Setup the ADC: Low-power Track Mode (ADC0 conversion initiated on every write of
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -