📄 init_adc.h
字号:
#ifndef _INIT_ADC_H_
#define _INIT_ADC_H_
#include <hw_types.h>
#include <hw_memmap.h>
#include <hw_sysctl.h>
#include <hw_gpio.h>
#include <hw_adc.h>
#include <sysctl.h>
#include <gpio.h>
#include <adc.h>
#include <stdio.h>
#include "LM3S_UART.H"
// 将较长的标识符定义为较短的形式
#define SysCtlPeriEnable SysCtlPeripheralEnable
#define SysCtlPeriDisable SysCtlPeripheralDisable
#define GPIOPinTypeIn GPIOPinTypeGPIOInput
#define GPIOPinTypeOut GPIOPinTypeGPIOOutput
#define GPIOPinTypeOD GPIOPinTypeGPIOOutputOD
extern unsigned int ADC_UI_Data ,ADC_AI_Data;
void ADC_Init(void); //ADC 初始化
void ADC_Caiji(void);//ADC采集函数
void ADC_Deal(void); //ADC采集函数
#endif//INIT_ADC.H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -