Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make precache extern "C"
  • Loading branch information
ChocolateFrogsNuts committed Oct 11, 2019
commit e74736c2d4d08661ce7b9fd0ccdbabed3aa830fd
2 changes: 1 addition & 1 deletion cores/esp8266/core_esp8266_features.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* otherwise preloads flash at the given address.
* All preloads are word aligned.
*/
void precache(void *f, uint32_t bytes) {
extern "C" void precache(void *f, uint32_t bytes) {
// Size of a cache page in words. We only need to read one word per
// page (ie 1 word in 8) for this to work.
#define CACHE_PAGE_SIZE (32/4)
Expand Down
2 changes: 1 addition & 1 deletion cores/esp8266/core_esp8266_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ inline uint32_t esp_get_cycle_count() {
#define PRECACHE_END(tag) \
_precache_end_##tag:

void precache(void *f, uint32_t bytes);
extern "C" void precache(void *f, uint32_t bytes);

#endif // CORE_ESP8266_FEATURES_H