mirror of https://github.com/rusefi/rusefi-1.git
auto-sync
This commit is contained in:
parent
86cea2649f
commit
24fc2d6409
|
@ -152,22 +152,6 @@ static void scheduleReboot(void) {
|
|||
unlockAnyContext();
|
||||
}
|
||||
|
||||
void swo_init() {
|
||||
// todo: make SWO work
|
||||
// uint32_t SWOSpeed = 2000000; //2000kbps, default for ST-LINK
|
||||
// // todo: use a macro to access clock speed
|
||||
// uint32_t SWOPrescaler = (168000000 / SWOSpeed) - 1; // SWOSpeed in Hz, note that F_CPU is expected to be 96000000 in this case
|
||||
// CoreDebug->DEMCR = CoreDebug_DEMCR_TRCENA_Msk;
|
||||
// *((volatile unsigned *)(ITM_BASE + 0x400F0)) = 0x00000002; // "Selected PIN Protocol Register": Select which protocol to use for trace output (2: SWO)
|
||||
// *((volatile unsigned *)(ITM_BASE + 0x40010)) = SWOPrescaler; // "Async Clock Prescaler Register". Scale the baud rate of the asynchronous output
|
||||
// *((volatile unsigned *)(ITM_BASE + 0x00FB0)) = 0xC5ACCE55; // ITM Lock Access Register, C5ACCE55 enables more write access to Control Register 0xE00 :: 0xFFC
|
||||
// ITM->TCR = ITM_TCR_TraceBusID_Msk | ITM_TCR_SWOENA_Msk | ITM_TCR_SYNCENA_Msk | ITM_TCR_ITMENA_Msk; // ITM Trace Control Register
|
||||
// ITM->TPR = ITM_TPR_PRIVMASK_Msk; // ITM Trace Privilege Register
|
||||
// ITM->TER = 0x00000001; // ITM Trace Enable Register. Enabled tracing on stimulus ports. One bit per stimulus port.
|
||||
// *((volatile unsigned *)(ITM_BASE + 0x01000)) = 0x400003FE; // DWT_CTRL
|
||||
// *((volatile unsigned *)(ITM_BASE + 0x40304)) = 0x00000100; // Formatter and Flush Control Register
|
||||
}
|
||||
|
||||
engine_configuration_s activeConfiguration;
|
||||
|
||||
static void rememberCurrentConfiguration(void) {
|
||||
|
@ -188,8 +172,6 @@ void runRusEfi(void) {
|
|||
|
||||
initErrorHandling();
|
||||
|
||||
swo_init();
|
||||
|
||||
prepareVoidConfiguration(&activeConfiguration);
|
||||
|
||||
/**
|
||||
|
@ -291,5 +273,5 @@ int getRusEfiVersion(void) {
|
|||
return 123; // this is here to make the compiler happy about the unused array
|
||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||
return 3211; // this is here to make the compiler happy about the unused array
|
||||
return 20150907;
|
||||
return 20150908;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue