mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-16 00:43:00 +03:00
webserver hook: allow to handle external http protocol (#7459)
* webhook api * simplify webserver debug printouts, move text to flash * Hook examples in HelloServer example * print executable code address in example * simplify example per @mcspr suggestion
This commit is contained in:
@ -92,7 +92,19 @@ inline uint32_t esp_get_cycle_count() {
|
||||
__asm__ __volatile__("rsr %0,ccount":"=a"(ccount));
|
||||
return ccount;
|
||||
}
|
||||
#endif // not CORE_MOCK
|
||||
|
||||
inline uint32_t esp_get_program_counter() __attribute__((always_inline));
|
||||
inline uint32_t esp_get_program_counter() {
|
||||
uint32_t pc;
|
||||
__asm__ __volatile__("movi %0, ." : "=r" (pc) : : ); // ©earlephilhower
|
||||
return pc;
|
||||
}
|
||||
|
||||
#else // CORE_MOCK
|
||||
|
||||
inline uint32_t esp_get_program_counter() { return 0; }
|
||||
|
||||
#endif // CORE_MOCK
|
||||
|
||||
|
||||
// Tools for preloading code into the flash cache
|
||||
|
Reference in New Issue
Block a user