rusEFI
The most advanced open source ECU
|
Typedefs | |
typedef struct port_intctx | intctx_t |
Functions | |
int | at32GetMcuType (uint32_t id, const char **pn, const char **package, uint32_t *flashSize) |
int | at32GetRamSizeKb (void) |
static void | reset_and_jump (void) |
void | jump_to_bootloader () |
void | jump_to_openblt () |
BOR_Level_t | BOR_Get (void) |
BOR_Result_t | BOR_Set (BOR_Level_t BORValue) |
void | startWatchdog (int) |
void | tryResetWatchdog () |
void | setWatchdogResetPeriod (int) |
void | baseMCUInit (void) |
bool | isStm32F42x (void) |
EXTERNC int | getRemainingStack (thread_t *otp) |
__attribute__ ((weak)) void boardPrepareForStandby() | |
Reset_Cause_t | getMCUResetCause () |
const char * | getMCUResetCause (Reset_Cause_t) |
Variables | |
uint32_t | __main_stack_base__ |
typedef struct port_intctx intctx_t |
Definition at line 159 of file at32_common.cpp.
__attribute__ | ( | (weak) | ) |
Definition at line 185 of file at32_common.cpp.
int at32GetMcuType | ( | uint32_t | id, |
const char ** | pn, | ||
const char ** | package, | ||
uint32_t * | flashSize | ||
) |
Definition at line 11 of file at32_common.cpp.
Referenced by sayHello().
int at32GetRamSizeKb | ( | void | ) |
Definition at line 69 of file at32_common.cpp.
Referenced by sayHello().
void baseMCUInit | ( | void | ) |
Definition at line 145 of file at32_common.cpp.
Referenced by main().
BOR_Level_t BOR_Get | ( | void | ) |
Definition at line 125 of file at32_common.cpp.
BOR_Result_t BOR_Set | ( | BOR_Level_t | BORValue | ) |
Definition at line 131 of file at32_common.cpp.
Referenced by baseMCUInit(), and setBor().
Reset_Cause_t getMCUResetCause | ( | ) |
Definition at line 188 of file at32_common.cpp.
Referenced by checkLastResetCause().
const char* getMCUResetCause | ( | Reset_Cause_t | cause | ) |
Definition at line 192 of file at32_common.cpp.
EXTERNC 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 163 of file at32_common.cpp.
bool isStm32F42x | ( | void | ) |
Definition at line 155 of file at32_common.cpp.
Referenced by sayHello(), and startLua().
void jump_to_bootloader | ( | ) |
Definition at line 105 of file at32_common.cpp.
Referenced by executeTSCommand(), and runRusEfi().
void jump_to_openblt | ( | ) |
Definition at line 114 of file at32_common.cpp.
Referenced by executeTSCommand(), processCanRxMessage(), and runRusEfi().
|
static |
Definition at line 99 of file at32_common.cpp.
Referenced by jump_to_bootloader(), and jump_to_openblt().
void setWatchdogResetPeriod | ( | int | resetMs | ) |
Definition at line 142 of file at32_common.cpp.
Referenced by initializeConsole().
void startWatchdog | ( | int | timeoutMs | ) |
Definition at line 136 of file at32_common.cpp.
Referenced by initializeConsole(), and writeToFlashNow().
void tryResetWatchdog | ( | ) |
Definition at line 139 of file at32_common.cpp.
Referenced by doPeriodicSlowCallback().
|
extern |
Referenced by getRemainingStack().