EXTERNC not needed here

This commit is contained in:
rusEFI LLC 2025-02-13 13:52:03 -05:00 committed by rusefillc
parent 0da36b32a9
commit a030bbf216
5 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@
* main stack (currently 0x400=1024 bytes), where the ISR actually runs. * main stack (currently 0x400=1024 bytes), where the ISR actually runs.
* see also __main_stack_size__ * see also __main_stack_size__
* see also __process_stack_size__ * see also __process_stack_size__
* *
* see also http://www.chibios.org/dokuwiki/doku.php?id=chibios:kb:stacks * see also http://www.chibios.org/dokuwiki/doku.php?id=chibios:kb:stacks
* *
* In the firmware we are using 'extern *Engine' - in the firmware Engine is a singleton * In the firmware we are using 'extern *Engine' - in the firmware Engine is a singleton
@ -30,7 +30,7 @@
/* /*
* Stack debugging * Stack debugging
*/ */
EXTERNC int getRemainingStack(thread_t *otp); int getRemainingStack(thread_t *otp);
int CountFreeStackSpace(const void* wabase); int CountFreeStackSpace(const void* wabase);
#define assertStackVoid(message, code, desiredAvailableStack) { if (getCurrentRemainingStack() < desiredAvailableStack) { firmwareError(code, "stack: %s", message); return; } } #define assertStackVoid(message, code, desiredAvailableStack) { if (getCurrentRemainingStack() < desiredAvailableStack) { firmwareError(code, "stack: %s", message); return; } }

View File

@ -161,7 +161,7 @@ extern uint32_t __main_stack_base__;
typedef struct port_intctx intctx_t; typedef struct port_intctx intctx_t;
EXTERNC int getRemainingStack(thread_t *otp) { int getRemainingStack(thread_t *otp) {
#if CH_DBG_ENABLE_STACK_CHECK #if CH_DBG_ENABLE_STACK_CHECK
// this would dismiss coverity warning - see http://rusefi.com/forum/viewtopic.php?f=5&t=655 // this would dismiss coverity warning - see http://rusefi.com/forum/viewtopic.php?f=5&t=655
// coverity[uninit_use] // coverity[uninit_use]

View File

@ -174,7 +174,7 @@ int getAdcChannelPin(adc_channel_e hwChannel) {
#endif /* HAL_USE_ADC */ #endif /* HAL_USE_ADC */
EXTERNC int getRemainingStack(thread_t *otp) { int getRemainingStack(thread_t *otp) {
// todo: would stm32 code actually work here since similar Cortex? // todo: would stm32 code actually work here since similar Cortex?
return 888888; return 888888;
} }

View File

@ -149,7 +149,7 @@ void jump_to_bootloader() {
} }
#endif /* EFI_DFU_JUMP */ #endif /* EFI_DFU_JUMP */
EXTERNC int getRemainingStack(thread_t *otp) { int getRemainingStack(thread_t *otp) {
// todo: would stm32 code actually work here since similar Cortex? // todo: would stm32 code actually work here since similar Cortex?
return 888888; return 888888;
} }

View File

@ -189,7 +189,7 @@ extern uint32_t __main_stack_base__;
typedef struct port_intctx intctx_t; typedef struct port_intctx intctx_t;
EXTERNC int getRemainingStack(thread_t *otp) { int getRemainingStack(thread_t *otp) {
#if CH_DBG_ENABLE_STACK_CHECK #if CH_DBG_ENABLE_STACK_CHECK
// this would dismiss coverity warning - see http://rusefi.com/forum/viewtopic.php?f=5&t=655 // this would dismiss coverity warning - see http://rusefi.com/forum/viewtopic.php?f=5&t=655
// coverity[uninit_use] // coverity[uninit_use]