[bsp][gd32103c-eval] Modify adc driver with LOG_x function and deselect adc and hwtimer driver
This commit is contained in:
parent
a281ee9874
commit
e2d6f6aadd
|
@ -9,18 +9,16 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
|
#include <drivers/drv_comm.h>
|
||||||
#include <drivers/adc.h>
|
#include <drivers/adc.h>
|
||||||
|
|
||||||
|
#define DBG_TAG "drv.adc"
|
||||||
|
#define DBG_LVL DBG_INFO
|
||||||
|
|
||||||
#include <rtdbg.h>
|
#include <rtdbg.h>
|
||||||
|
|
||||||
#ifdef RT_USING_ADC
|
#ifdef RT_USING_ADC
|
||||||
|
|
||||||
//#define DRV_DEBUG
|
|
||||||
#define LOG_TAG "drv.adc"
|
|
||||||
|
|
||||||
#ifndef ARRAY_SIZE
|
|
||||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MAX_EXTERN_ADC_CHANNEL 16
|
#define MAX_EXTERN_ADC_CHANNEL 16
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -85,7 +85,6 @@
|
||||||
#define RT_SERIAL_USING_DMA
|
#define RT_SERIAL_USING_DMA
|
||||||
#define RT_SERIAL_RB_BUFSZ 64
|
#define RT_SERIAL_RB_BUFSZ 64
|
||||||
#define RT_USING_PIN
|
#define RT_USING_PIN
|
||||||
#define RT_USING_ADC
|
|
||||||
|
|
||||||
/* Using USB */
|
/* Using USB */
|
||||||
|
|
||||||
|
@ -161,7 +160,5 @@
|
||||||
|
|
||||||
#define BSP_USING_UART
|
#define BSP_USING_UART
|
||||||
#define BSP_USING_UART0
|
#define BSP_USING_UART0
|
||||||
#define BSP_USING_ADC
|
|
||||||
#define BSP_USING_ADC0
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue