Skip to content

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.

1 participant