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 160 of file at32_common.cpp.
__attribute__ | ( | (weak) | ) |
Definition at line 186 of file at32_common.cpp.
int at32GetMcuType | ( | uint32_t | id, |
const char ** | pn, | ||
const char ** | package, | ||
uint32_t * | flashSize | ||
) |
Definition at line 12 of file at32_common.cpp.
Referenced by sayHello().
int at32GetRamSizeKb | ( | void | ) |
Definition at line 70 of file at32_common.cpp.
Referenced by sayHello().
void baseMCUInit | ( | void | ) |
Definition at line 146 of file at32_common.cpp.
Referenced by main().
BOR_Level_t BOR_Get | ( | void | ) |
Definition at line 126 of file at32_common.cpp.
BOR_Result_t BOR_Set | ( | BOR_Level_t | BORValue | ) |
Definition at line 132 of file at32_common.cpp.
Referenced by baseMCUInit(), and setBor().
Reset_Cause_t getMCUResetCause | ( | ) |
Definition at line 189 of file at32_common.cpp.
Referenced by checkLastResetCause().
const char* getMCUResetCause | ( | Reset_Cause_t | cause | ) |
Definition at line 193 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 164 of file at32_common.cpp.
bool isStm32F42x | ( | void | ) |
Definition at line 156 of file at32_common.cpp.
Referenced by sayHello(), and startLua().
void jump_to_bootloader | ( | ) |
Definition at line 106 of file at32_common.cpp.
Referenced by executeTSCommand(), and runRusEfi().
void jump_to_openblt | ( | ) |
Definition at line 115 of file at32_common.cpp.
Referenced by executeTSCommand(), processCanRxMessage(), and runRusEfi().
|
static |
Definition at line 100 of file at32_common.cpp.
Referenced by jump_to_bootloader(), and jump_to_openblt().
void setWatchdogResetPeriod | ( | int | resetMs | ) |
Definition at line 143 of file at32_common.cpp.
Referenced by initializeConsole().
void startWatchdog | ( | int | timeoutMs | ) |
Definition at line 137 of file at32_common.cpp.
Referenced by initializeConsole(), and writeToFlashNow().
void tryResetWatchdog | ( | ) |
Definition at line 140 of file at32_common.cpp.
Referenced by doPeriodicSlowCallback().
|
extern |
Referenced by getRemainingStack().