From 5812210afa24ca111508446a8b5e566c4588b591 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 25 Jun 2023 09:59:46 -0400 Subject: [PATCH] helping C&K --- firmware/hw_layer/ports/cypress/cypress_common.cpp | 5 +++++ firmware/hw_layer/ports/kinetis/kinetis_common.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/firmware/hw_layer/ports/cypress/cypress_common.cpp b/firmware/hw_layer/ports/cypress/cypress_common.cpp index e9fd70380f..b5d98d650d 100644 --- a/firmware/hw_layer/ports/cypress/cypress_common.cpp +++ b/firmware/hw_layer/ports/cypress/cypress_common.cpp @@ -158,3 +158,8 @@ int getAdcChannelPin(adc_channel_e hwChannel) { } #endif /* HAL_USE_ADC */ + +EXTERNC int getRemainingStack(thread_t *otp) { + // todo: would stm32 code actually work here since similar Cortex? + return 888888; +} diff --git a/firmware/hw_layer/ports/kinetis/kinetis_common.cpp b/firmware/hw_layer/ports/kinetis/kinetis_common.cpp index a42db8a036..8baf23d0a4 100644 --- a/firmware/hw_layer/ports/kinetis/kinetis_common.cpp +++ b/firmware/hw_layer/ports/kinetis/kinetis_common.cpp @@ -133,3 +133,8 @@ void jump_to_bootloader() { NVIC_SystemReset(); } #endif /* EFI_DFU_JUMP */ + +EXTERNC int getRemainingStack(thread_t *otp) { + // todo: would stm32 code actually work here since similar Cortex? + return 888888; +}