-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
4,995 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@echo off | ||
|
||
set ASPATH=%~dp0 | ||
set astmp=%ASPATH% | ||
set ASDISK=%astmp:~1,2% | ||
set MSYS2=C:\msys64 | ||
|
||
%ASDISK% | ||
cd %ASPATH% | ||
|
||
REM base env PATH | ||
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0 | ||
|
||
set PATH=C:\Anaconda3;C:\Anaconda3\Scripts;%MSYS2%\mingw64\bin;%MSYS2%\usr\bin;%MSYS2%\mingw32\bin;%PATH% | ||
set PATH=%PATH%;%ASPATH%\download\gcc-arm-none-eabi-5_4-2016q3-20160926-win32\bin | ||
|
||
set ConEmu=%ASPATH%\download\ConEmu\ConEmu64.exe | ||
|
||
if EXIST %ConEmu% goto prepareEnv | ||
cd %ASPATH%\download | ||
mkdir ConEmu | ||
cd ConEmu | ||
wget https://github.com/Maximus5/ConEmu/releases/download/v21.04.22/ConEmuPack.210422.7z | ||
"C:\Program Files\7-Zip\7z.exe" x ConEmuPack.210422.7z | ||
cd %ASPATH% | ||
|
||
:prepareEnv | ||
set MSYS=winsymlinks:nativestrict | ||
|
||
start %ConEmu% -title sim-app-boot-tools ^ | ||
-runlist -new_console:d:"%ASPATH%":t:sim ^ | ||
^|^|^| -new_console:d:"%ASPATH%":t:app ^ | ||
^|^|^| -new_console:d:"%ASPATH%":t:boot ^ | ||
^|^|^| -new_console:d:"%ASPATH%/tools":t:tools | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"class": "Dem", | ||
"DTCs": [ | ||
{ | ||
"name": "DTC0", | ||
"number": "0x112200", | ||
"priority": 0 | ||
}, | ||
{ | ||
"name": "DTC1", | ||
"number": "0x112201", | ||
"priority": 1 | ||
}, | ||
{ | ||
"name": "DTC2", | ||
"number": "0x112202", | ||
"priority": 2 | ||
}, | ||
{ | ||
"name": "DTC3", | ||
"number": "0x112203", | ||
"priority": 3 | ||
}, | ||
{ | ||
"name": "DTC4", | ||
"number": "0x112204", | ||
"priority": 4 | ||
} | ||
], | ||
"Environments": [ | ||
{ | ||
"name": "Battery", | ||
"id": "0x1001", | ||
"type": "uint16", | ||
"unit": "v" | ||
}, | ||
{ | ||
"name": "VehileSpeed", | ||
"id": "0x1002", | ||
"type": "uint16", | ||
"unit": "km/h" | ||
}, | ||
{ | ||
"name": "EngineSpeed", | ||
"id": "0x1003", | ||
"type": "uint16", | ||
"unit": "r/min" | ||
}, | ||
{ | ||
"name": "Time", | ||
"id": "0x1004", | ||
"type": "struct", | ||
"data": [ | ||
{ | ||
"name": "year", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"name": "month", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"name": "day", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"name": "hour", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"name": "minute", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"name": "second", | ||
"type": "uint8" | ||
} | ||
], | ||
"unit": "YY-MM-DD-HH" | ||
} | ||
], | ||
"ExtendedDatas": [ | ||
{ | ||
"name": "FaultOccuranceCounter", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"name": "AgingCounter", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"name": "AgedCounter", | ||
"type": "uint8" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/** | ||
* SSAS - Simple Smart Automotive Software | ||
* Copyright (C) 2021 Parai Wang <parai@foxmail.com> | ||
* | ||
* ref: Specification of EEPROM Driver AUTOSAR CP Release 4.4.0 | ||
*/ | ||
/* ================================ [ INCLUDES ] ============================================== */ | ||
#include "Eep_Cfg.h" | ||
#include "Eep_Priv.h" | ||
#include "Ea.h" | ||
/* ================================ [ MACROS ] ============================================== */ | ||
#ifndef EEP_BASE_ADDRESS | ||
#define EEP_BASE_ADDRESS 0 | ||
#endif | ||
|
||
#ifndef EEP_MAX_READ_FAST | ||
#define EEP_MAX_READ_FAST 4096 | ||
#endif | ||
|
||
#ifndef EEP_MAX_READ_NORM | ||
#define EEP_MAX_READ_NORM 512 | ||
#endif | ||
|
||
#ifndef EEP_MAX_WRITE_FAST | ||
#define EEP_MAX_WRITE_FAST 4096 | ||
#endif | ||
|
||
#ifndef EEP_MAX_WRITE_NORM | ||
#define EEP_MAX_WRITE_NORM 512 | ||
#endif | ||
|
||
#ifndef EEP_MAX_ERASE_FAST | ||
#define EEP_MAX_ERASE_FAST 4096 | ||
#endif | ||
|
||
#ifndef EEP_MAX_ERASE_NORM | ||
#define EEP_MAX_ERASE_NORM 512 | ||
#endif | ||
/* ================================ [ TYPES ] ============================================== */ | ||
/* ================================ [ DECLARES ] ============================================== */ | ||
/* ================================ [ DATAS ] ============================================== */ | ||
static const Eep_SectorType Eep_SectorList[] = { | ||
{ | ||
EEP_BASE_ADDRESS, | ||
EEP_BASE_ADDRESS + 4 * 1024, | ||
4, | ||
1, | ||
1, | ||
}, | ||
}; | ||
|
||
const Eep_ConfigType Eep_Config = { | ||
Ea_JobEndNotification, Ea_JobErrorNotification, MEMIF_MODE_FAST, | ||
EEP_MAX_READ_FAST, EEP_MAX_READ_NORM, EEP_MAX_WRITE_FAST, | ||
EEP_MAX_WRITE_NORM, EEP_MAX_ERASE_FAST, EEP_MAX_ERASE_NORM, | ||
Eep_SectorList, ARRAY_SIZE(Eep_SectorList), | ||
}; | ||
/* ================================ [ LOCALS ] ============================================== */ | ||
/* ================================ [ FUNCTIONS ] ============================================== */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* SSAS - Simple Smart Automotive Software | ||
* Copyright (C) 2021 Parai Wang <parai@foxmail.com> | ||
* | ||
* ref: Specification of EEPROM Driver AUTOSAR CP Release 4.4.0 | ||
*/ | ||
#ifndef _EEP_CFG_H | ||
#define _EEP_CFG_H | ||
/* ================================ [ INCLUDES ] ============================================== */ | ||
/* ================================ [ MACROS ] ============================================== */ | ||
/* ================================ [ TYPES ] ============================================== */ | ||
/* ================================ [ DECLARES ] ============================================== */ | ||
/* ================================ [ DATAS ] ============================================== */ | ||
/* ================================ [ LOCALS ] ============================================== */ | ||
/* ================================ [ FUNCTIONS ] ============================================== */ | ||
#endif /* _EEP_CFG_H */ |
Oops, something went wrong.