📄 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 + -