rusEFI
The most advanced open source ECU
|
Definition in file mpu_util.cpp.
Variables | |
bool | isSpiInitialized [SPI_TOTAL_COUNT+1] = { true, false, false, false, false, false, false } |
void _unhandled_exception | ( | void | ) |
Definition at line 36 of file mpu_util.cpp.
void baseMCUInit | ( | ) |
Definition at line 33 of file mpu_util.cpp.
BOR_Level_t BOR_Get | ( | void | ) |
Definition at line 183 of file mpu_util.cpp.
BOR_Result_t BOR_Set | ( | BOR_Level_t | BORValue | ) |
Definition at line 187 of file mpu_util.cpp.
void BusFaultVector | ( | void | ) |
void canHwInfo | ( | CANDriver * | cand | ) |
Definition at line 225 of file mpu_util.cpp.
void DebugMonitorVector | ( | void | ) |
CANDriver * detectCanDevice | ( | brain_pin_e | pinRx, |
brain_pin_e | pinTx | ||
) |
Definition at line 217 of file mpu_util.cpp.
AdcToken enableFastAdcChannel | ( | const char * | msg, |
adc_channel_e | channel | ||
) |
Definition at line 279 of file mpu_util.cpp.
size_t flashSectorSize | ( | flashsector_t | sector | ) |
Get the size of sector
.
sector
size in bytes. Definition at line 237 of file mpu_util.cpp.
Referenced by flashSectorSize().
adcsample_t getFastAdc | ( | AdcToken | token | ) |
Definition at line 288 of file mpu_util.cpp.
uintptr_t getFlashAddrFirstCopy | ( | void | ) |
Definition at line 248 of file mpu_util.cpp.
Referenced by getFlashAddrSecondCopy().
uintptr_t getFlashAddrSecondCopy | ( | void | ) |
Definition at line 252 of file mpu_util.cpp.
Reset_Cause_t getMCUResetCause | ( | ) |
Definition at line 297 of file mpu_util.cpp.
const char * getMCUResetCause | ( | Reset_Cause_t | cause | ) |
Definition at line 301 of file mpu_util.cpp.
float getMcuTemperature | ( | ) |
Definition at line 264 of file mpu_util.cpp.
Referenced by adcOnchipSlowUpdate().
float getMcuVrefVoltage | ( | ) |
Definition at line 269 of file mpu_util.cpp.
Referenced by adcOnchipSlowUpdate().
|
static |
Definition at line 71 of file mpu_util.cpp.
Referenced by initSpiModule().
void HardFaultVector | ( | void | ) |
Definition at line 62 of file mpu_util.cpp.
void initSpiCs | ( | SPIConfig * | spiConfig, |
brain_pin_e | csPin | ||
) |
Definition at line 155 of file mpu_util.cpp.
void initSpiCsNoOccupy | ( | SPIConfig * | spiConfig, |
brain_pin_e | csPin | ||
) |
Definition at line 148 of file mpu_util.cpp.
Referenced by initSpiCs().
void initSpiModule | ( | SPIDriver * | driver, |
brain_pin_e | sck, | ||
brain_pin_e | miso, | ||
brain_pin_e | mosi, | ||
int | sckMode, | ||
int | mosiMode, | ||
int | misoMode | ||
) |
See https://github.com/rusefi/rusefi/pull/664/
Info on the silicon defect can be found in this document, section 2.5.2: https://www.st.com/content/ccc/resource/technical/document/errata_sheet/0a/98/58/84/86/b6/47/a2/DM00037591.pdf/files/DM00037591.pdf/jcr:content/translations/en.DM00037591.pdf
Definition at line 130 of file mpu_util.cpp.
Referenced by turnOnSpi().
|
static |
Definition at line 193 of file mpu_util.cpp.
Referenced by detectCanDevice(), and isValidCanRxPin().
|
static |
Definition at line 197 of file mpu_util.cpp.
Referenced by detectCanDevice(), and isValidCanTxPin().
|
static |
Definition at line 201 of file mpu_util.cpp.
Referenced by detectCanDevice(), and isValidCanRxPin().
|
static |
Definition at line 205 of file mpu_util.cpp.
Referenced by detectCanDevice(), and isValidCanTxPin().
bool isValidCanRxPin | ( | brain_pin_e | pin | ) |
bool isValidCanTxPin | ( | brain_pin_e | pin | ) |
bool mcuCanFlashWhileRunning | ( | ) |
Definition at line 233 of file mpu_util.cpp.
void portInitAdc | ( | ) |
Definition at line 256 of file mpu_util.cpp.
Referenced by initAdcInputs().
bool readSlowAnalogInputs | ( | adcsample_t * | convertedSamples | ) |
Definition at line 274 of file mpu_util.cpp.
Referenced by adcOnchipSlowUpdate().
void setWatchdogResetPeriod | ( | int | resetMs | ) |
Definition at line 30 of file mpu_util.cpp.
int spiCalcClockDiv | ( | SPIDriver * | spip, |
SPIConfig * | spiConfig, | ||
unsigned int | clk | ||
) |
Definition at line 175 of file mpu_util.cpp.
int spiGetBaseClock | ( | SPIDriver * | spip | ) |
Definition at line 169 of file mpu_util.cpp.
void startWatchdog | ( | int | timeoutMs | ) |
Definition at line 24 of file mpu_util.cpp.
void tryResetWatchdog | ( | ) |
Definition at line 27 of file mpu_util.cpp.
void turnOnSpi | ( | spi_device_e | device | ) |
Definition at line 90 of file mpu_util.cpp.
void UsageFaultVector | ( | void | ) |
bool isSpiInitialized[SPI_TOTAL_COUNT+1] = { true, false, false, false, false, false, false } |
Definition at line 69 of file mpu_util.cpp.
Referenced by turnOnSpi().