Skip to content
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

function definitions missing from ets_sys.h #195

Closed
davydnorris opened this issue Nov 20, 2018 · 4 comments
Closed

function definitions missing from ets_sys.h #195

davydnorris opened this issue Nov 20, 2018 · 4 comments

Comments

@davydnorris
Copy link

The following function definitions are missing from ets_sys.h, which causes some of the macro definitions to fail when compiling:

typedef void (* ets_isr_t)(void *);

void ets_intr_lock(void);
void ets_intr_unlock(void);
void ets_isr_attach(int i, ets_isr_t func, void *arg);
//the following are missing
void ets_isr_mask(unsigned intr);
void ets_isr_unmask(unsigned intr);
void ets_wdt_enable(void);  
void ets_wdt_disable(void);
@davydnorris
Copy link
Author

See pull request #135 - this issue adds a couple more functions to the list

@xcguang
Copy link
Collaborator

xcguang commented Dec 27, 2018

Hi @davydnorris ,
ets_isr_mask and ets_isr_unmask should be added.
And ets_wdt_xxx is used for internal, we have system_soft_wdt_xxx apis for user, does they satisfy you?

@xcguang
Copy link
Collaborator

xcguang commented Dec 27, 2018

Have added ets_isr_mask and ets_isr_unmask on branch release/v3.0.0 and branch release/v2.2.x

@davydnorris
Copy link
Author

Thank you - I thought I had compile errors in something because of the missing ets_wdt_* but I have just removed them from my headers and have no errors in my own code.

Maybe it was one of the examples - will let you know

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