Argument type conflict in NONOS_SDK-2.2.0#49
Open
iia wants to merge 1 commit intoSpritetm:masterfrom
iia:fix-arg-type
Open
Argument type conflict in NONOS_SDK-2.2.0#49iia wants to merge 1 commit intoSpritetm:masterfrom iia:fix-arg-type
iia wants to merge 1 commit intoSpritetm:masterfrom
iia:fix-arg-type
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)whichresults in the following error:
Commenting out the function prototype from espmissingincludes.h fixes
the problem.