mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2026-03-21 01:54:52 +00:00
update
This commit is contained in:
parent
34d3652711
commit
39f77eb92b
1844 changed files with 899433 additions and 7 deletions
23
project/inc/driver/adc_drv.h
Normal file
23
project/inc/driver/adc_drv.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Simple ADC DRV (adc_drv.h)
|
||||
*
|
||||
* Created on: 19 июн. 2017 г.
|
||||
* Author: pvvx
|
||||
*/
|
||||
|
||||
#ifndef _DRIVER_ADC_DRV_H_
|
||||
#define _DRIVER_ADC_DRV_H_
|
||||
|
||||
#include "rtl8195a.h"
|
||||
#include "rtl8195a_adc.h"
|
||||
|
||||
void ADCIrqInit(IRQ_FUN IrqFunc, u32 IrqData, u32 intr_enable); // intr_enable = bits: REG_ADC_INTR_EN - BIT_ADC_FIFO_RD_ERROR_EN | BIT_ADC_FIFO_RD_REQ_EN | BIT_ADC_FIFO_FULL_EN ...
|
||||
void ADCIrqDeInit(void);
|
||||
|
||||
void ADCInit(ADC_MODULE_SEL adc_idx); // RTL8711AM: adc_idx = ADC2_SEL = 2
|
||||
void ADCDeInit(void);
|
||||
void ADCEnable(void); // ADC Start
|
||||
void ADCDisable(void); // ADC Stop
|
||||
|
||||
|
||||
#endif /* _DRIVER_ADC_DRV_H_ */
|
||||
|
|
@ -11,7 +11,8 @@
|
|||
|
||||
#define WEB_DEBUG_FUNCTIONS 1 // =1 - включить в WEB отладочные функции, =0 отключить (остается только конфигурация WiFi)
|
||||
|
||||
// #define WEB_INA219_DRV 1 (set in project.mk)
|
||||
// #define WEB_INA219_DRV 1 (set in project.mk !)
|
||||
// #define WEB_ADC_DRV 1 (set in project.mk !)
|
||||
|
||||
#endif // _user_config_h_
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue