Skip to content

Missing include into dac.h #1500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vgonet opened this issue Jun 15, 2018 · 1 comment
Closed

Missing include into dac.h #1500

vgonet opened this issue Jun 15, 2018 · 1 comment

Comments

@vgonet
Copy link

vgonet commented Jun 15, 2018

Hello,

Hardware:

Board: NodeMCU-32S (WROOM-32)
Core Installation/update date: 15/jun/2018
IDE name: IDF component
Flash Frequency: 40Mhz
Upload Speed: 115200

Description:

In the file driver/dac.h, the type gpio_num_t used by the following function is unknown.

esp_err_t dac_pad_get_io_num(dac_channel_t channel, gpio_num_t *gpio_num);

Thank you very much. Best regards.
Vincent

Sketch:

#include "driver/gpio.h"

Debug Messages:

C:/msys32/home/xxx/esp/esp-idf/components/driver/include/driver/dac.h:44:53: error: unknown type name 'gpio_num_t'

@lbernstone
Copy link
Contributor

lbernstone commented Jun 15, 2018

Yep. You can put #include "driver/gpio.h" in dac.h until a PR gets put in place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants