rusEFI
The most advanced open source ECU
|
Functions | |
brain_pin_e | getAdcChannelBrainPin (const char *msg, adc_channel_e hwChannel) |
adc_channel_e | getAdcChannel (brain_pin_e pin) |
bool | adcIsMuxedInput (adc_channel_e hwChannel) |
adc_channel_e | adcMuxedGetParent (adc_channel_e hwChannel) |
int | getAdcInternalChannel (ADC_TypeDef *adc, adc_channel_e hwChannel) |
adc_channel_e | getHwChannelForAdcInput (ADC_TypeDef *adc, size_t hwIndex) |
ioportid_t | getAdcChannelPort (const char *msg, adc_channel_e hwChannel) |
int | getAdcChannelPin (adc_channel_e hwChannel) |
int | getRemainingStack (thread_t *otp) |
bool adcIsMuxedInput | ( | adc_channel_e | hwChannel | ) |
Definition at line 150 of file cypress_common.cpp.
adc_channel_e adcMuxedGetParent | ( | adc_channel_e | hwChannel | ) |
Definition at line 154 of file cypress_common.cpp.
adc_channel_e getAdcChannel | ( | brain_pin_e | pin | ) |
Definition at line 103 of file cypress_common.cpp.
Referenced by getAdcChannelForTrigger(), and setAnalogInputPin().
brain_pin_e getAdcChannelBrainPin | ( | const char * | msg, |
adc_channel_e | hwChannel | ||
) |
Definition at line 30 of file cypress_common.cpp.
Referenced by deInitIfValid(), getAdcChannelPin(), getAdcChannelPort(), and initIfValid().
int getAdcChannelPin | ( | adc_channel_e | hwChannel | ) |
Definition at line 178 of file cypress_common.cpp.
Referenced by adcPrintChannelReport(), and getPinNameByAdcChannel().
ioportid_t getAdcChannelPort | ( | const char * | msg, |
adc_channel_e | hwChannel | ||
) |
Definition at line 173 of file cypress_common.cpp.
Referenced by adcPrintChannelReport(), and getPinNameByAdcChannel().
int getAdcInternalChannel | ( | ADC_TypeDef * | adc, |
adc_channel_e | hwChannel | ||
) |
Definition at line 159 of file cypress_common.cpp.
adc_channel_e getHwChannelForAdcInput | ( | ADC_TypeDef * | adc, |
size_t | hwIndex | ||
) |
Definition at line 165 of file cypress_common.cpp.
int getRemainingStack | ( | thread_t * | otp | ) |
Of note is that interrupts are NOT serviced on the stack of the thread that was running when the interrupt occurred. The only thing that happens on that thread's stack is that its registers are pushed (by hardware) when an interrupt occurs, just before swapping the stack pointer out for the main stack (currently 0x400=1024 bytes), where the ISR actually runs. see also main_stack_size see also process_stack_size
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
On the other hand, in order to have a meaningful unit test we are passing Engine * engine as a parameter
Definition at line 184 of file cypress_common.cpp.