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

Argument type conflict in NONOS_SDK-2.2.0 #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Argument type conflict in NONOS_SDK-2.2.0 #49

wants to merge 1 commit into from

Conversation

iia
Copy link

@iia iia commented Mar 1, 2018

While compiling with ESP8266_NONOS_SDK-2.2.0 it was
found that the SDK defines the function, void ets_delay_us(uint32_t ms)
(in SDK root, include/osapi.h) which is defined in
include/espmissingincludes.h as void ets_delay_us(uint16_t ms) which
results in the following error:

CC espfs/espfs.c
In file included from ./include/esp8266.h:33:0,
                 from espfs/espfs.c:23:
./include/espmissingincludes.h:46:6: error: conflicting types for 'ets_delay_us'
 void ets_delay_us(uint16_t ms);
      ^
In file included from ./include/esp8266.h:28:0,
                 from espfs/espfs.c:23:
..//include/osapi.h:33:6: note: previous declaration of 'ets_delay_us' was here
 void ets_delay_us(uint32_t us);
      ^

Commenting out the function prototype from espmissingincludes.h fixes
the problem.

found that the SDK defines the function, `void ets_delay_us(uint32_t ms)`
(in SDK root, include/osapi.h) which is defined in
include/espmissingincludes.h as `void ets_delay_us(uint16_t ms)` which
results in the following error:

```
CC espfs/espfs.c
In file included from ./include/esp8266.h:33:0,
                 from espfs/espfs.c:23:
./include/espmissingincludes.h:46:6: error: conflicting types for 'ets_delay_us'
 void ets_delay_us(uint16_t ms);
      ^
In file included from ./include/esp8266.h:28:0,
                 from espfs/espfs.c:23:
..//include/osapi.h:33:6: note: previous declaration of 'ets_delay_us' was here
 void ets_delay_us(uint32_t us);
      ^
```

Commenting out the function prototype from espmissingincludes.h fixes
the problem.
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

Successfully merging this pull request may close these issues.

None yet

1 participant