EXTERNC not needed here
This commit is contained in:
parent
0da36b32a9
commit
a030bbf216
|
@ -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; } }
|
||||||
|
|
|
@ -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]
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue