8000 call umm_init just before starting SDK by mhightower83 · Pull Request #8207 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

call umm_init just before starting SDK #8207

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

Merged
merged 9 commits into from
Jul 19, 2021
Prev Previous commit
Next Next commit
Removed unnecessary wrapper function from example
  • Loading branch information
mhightower83 committed Jul 10, 2021
commit 20248f1f1258d9ff3201f3a321480f94a15b1edc
17 changes: 5 additions & 12 deletions libraries/esp8266/examples/HwdtStackDump/HwdtStackDump.ino
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,12 @@ const char* password = STAPSK;
// gets to runs.
extern "C" {
#if CORE_MOCK
int thunk_thk_printf1(const void *fmt) {
return ets_uart_printf(fmt);
}
#define thunk_ets_uart_printf ets_uart_printf

#else
int thunk_thk_printf1(const char *fmt);
// Second stack thunked helper - this macro creates the global function thunk_thk_printf1
make_stack_thunk(thk_printf1);

// This function is called via thunk_thk_printf1 and will run with the BearSSL stack.
int thk_printf1(const char *fmt) {
return ets_uart_printf(fmt);
}
int thunk_ets_uart_printf(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
// Second stack thunked helper - this macro creates the global function thunk_ets_uart_printf
make_stack_thunk(ets_uart_printf);
#endif
};
////////////////////////////////////////////////////////////////////
Expand All @@ -65,7 +58,7 @@ void setup(void) {

// This allows us to test dumping a BearSSL stack after HWDT.
stack_thunk_add_ref();
thunk_thk_printf1("Using Thunk Stack to print this line.\n\n");
thunk_ets_uart_printf("Using Thunk Stack to print this line.\n\n");

// We don't need this for this example; however, starting WiFi uses a little
// more of the SYS stack.
Expand Down
0