完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
ret = adc_digi_controller_config(&dig_cfg);
^~~~~~~~~~~~~~~~~~~~~~~~~~ ../main/adc_dma_example_main.c: At top level: ../main/adc_dma_example_main.c:47:36: error: unknown type name 'adc_digi_output_data_t' static bool check_valid_data(const adc_digi_output_data_t *data) ^~~~~~~~~~~~~~~~~~~~~~ ../main/adc_dma_example_main.c: In function 'check_valid_data': ../main/adc_dma_example_main.c:49:35: error: request for member 'type2' in something not a structure or union const unsigned int unit = data->type2.unit; ^~ ../main/adc_dma_example_main.c:51:13: error: request for member 'type2' in something not a structure or union if (data->type2.channel >= SOC_ADC_CHANNEL_NUM(unit)) return false; ^~ ../main/adc_dma_example_main.c: In function 'continuous_read': ../main/adc_dma_example_main.c:68:5: error: implicit declaration of function 'adc_digi_start' [-Werror=implicit-function-declaration] adc_digi_start(); ^~~~~~~~~~~~~~ ../main/adc_dma_example_main.c:72:15: error: implicit declaration of function 'adc_digi_read_bytes' [-Werror=implicit-function-declaration] ret = adc_digi_read_bytes(result, TIMES, &ret_num, ADC_MAX_DELAY); ^~~~~~~~~~~~~~~~~~~ ../main/adc_dma_example_main.c:72:60: error: 'ADC_MAX_DELAY' undeclared (first use in this function); did you mean 'portMAX_DELAY'? ret = adc_digi_read_bytes(result, TIMES, &ret_num, ADC_MAX_DELAY); ^~~~~~~~~~~~~ portMAX_DELAY ../main/adc_dma_example_main.c:72:60: note: each undeclared identifier is reported only once for each function it appears in ../main/adc_dma_example_main.c:74:13: error: unknown type name 'adc_digi_output_data_t' adc_digi_output_data_t *p = (void*)&result; ^~~~~~~~~~~~~~~~~~~~~~ ../main/adc_dma_example_main.c:76:45: error: request for member 'type2' in something not a structure or union printf("ADC%d_CH%d: %xn", p->type2.unit+1, p->type2.channel, p->type2.data); ^~ ../main/adc_dma_example_main.c:76:62: error: request for member 'type2' in something not a structure or union printf("ADC%d_CH%d: %xn", p->type2.unit+1, p->type2.channel, p->type2.data); ^~ ../main/adc_dma_example_main.c:76:80: error: request for member 'type2' in something not a structure or union printf("ADC%d_CH%d: %xn", p->type2.unit+1, p->type2.channel, p->type2.data); ^~ ../main/adc_dma_example_main.c:78:54: error: request for member 'type2' in something not a structure or union printf("Invalid data [%d_%d_%x]n", p->type2.unit+1, p->type2.channel, p->type2.data); ^~ ../main/adc_dma_example_main.c:78:71: error: request for member 'type2' in something not a structure or union printf("Invalid data [%d_%d_%x]n", p->type2.unit+1, p->type2.channel, p->type2.data); ^~ ../main/adc_dma_example_main.c:78:89: error: request for member 'type2' in something not a structure or union printf("Invalid data [%d_%d_%x]n", p->type2.unit+1, p->type2.channel, p->type2.data); ^~ ../main/adc_dma_example_main.c:84:5: error: implicit declaration of function 'adc_digi_stop'; did you mean 'esp_timer_stop'? [-Werror=implicit-function-declaration] adc_digi_stop(); ^~~~~~~~~~~~~ esp_timer_stop ../main/adc_dma_example_main.c:85:11: error: implicit declaration of function 'adc_digi_deinitialize' [-Werror=implicit-function-declaration] ret = adc_digi_deinitialize(); ^~~~~~~~~~~~~~~~~~~~~ ../main/adc_dma_example_main.c: In function 'single_read': ../main/adc_dma_example_main.c:97:23: error: 'ADC_WIDTH_BIT_DEFAULT' undeclared (first use in this function); did you mean 'ADC_WIDTH_BIT_12'? adc1_config_width(ADC_WIDTH_BIT_DEFAULT); ^~~~~~~~~~~~~~~~~~~~~ ADC_WIDTH_BIT_12 cc1: some warnings being treated as errors [849/902] Linking CXX static library esp-idf/wpa_supplicant/libwpa_supplicant.a ninja: build stopped: subcommand failed. ninja failed with exit code 1 |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
1002 浏览 1 评论
554浏览 6评论
463浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
447浏览 5评论
448浏览 4评论
422浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-29 15:44 , Processed in 1.048012 second(s), Total 75, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号