-
Notifications
You must be signed in to change notification settings - Fork 1
/
Mcu_Cfg.h
109 lines (80 loc) · 3.97 KB
/
Mcu_Cfg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*
* Mcu_Cfg.h
*
* Created on: Nov 19, 2019
* Author: Bebo
* AUTOSAR Version: 4.3.1
* DOC Name: AUTOSAR_SWS_MCUDriver.pdf
* Target: ARM TivaC TM4C123GH6PM
*
*/
#ifndef MCU_CFG_H_
#define MCU_CFG_H_
/*********************************************************************/
/* Published information */
#define MCU_MODULE_ID 30u
#define MCU_VENDOR_ID 0x002Bu /* vendor id of NXP */
#define MCU_AR_RELEASE_MAJOR_VERSION 0x01u
#define MCU_AR_RELEASE_MINOR_VERSION 0x00u
#define MCU_AR_RELEASE_REVISION_VERSION 0x00u
#define MCU_SW_MAJOR_VERSION 0x04u
#define MCU_SW_MINOR_VERSION 0x03u
#define MCU_SW_PATCH_VERSION 0x01u
/*********************************************************************/
/* MCU section generated by configuration tool to enable or disable some API's and futures in MCU module*/
/* 10.2.1 */
/************************************************************************************************/
/* McuGeneralConfiguration section generated by configuration tool to enable or disable some API's and futures in MCU module*/
/* 10.2.2 */
#define MCU_DEV_ERROR_DETECT STD_ON
#define MCU_GET_RAM_STATE_API STD_ON
#define MCU_NO_PLL STD_OFF
#define MCU_INIT_CLOCK STD_ON
#define MCU_PERFORM_RESET_API STD_ON
#define MCU_VERSION_INFO_API STD_ON
/************************************************************************************************/
/* McuModuleConfiguration section generated by configuration tool to enable or disable some API's and futures in MCU module*/
/* 10.2.3 */
/* if reset type element in configuration structure has the same value reset will be performed */
#define MCU_RESET_SETTING 0xFF
/******************************************************************/
/* McuClockSettingConfig section generated by configuration tool to enable or disable some API's and futures in MCU module*/
/* 10.2.4 */
#define McuConf_ClockSetting_1 0x00u
#define McuConf_ClockSetting_2 0x01u
/************************************************/
/* McuClockSettingConfig section generated by configuration tool to enable or disable some API's and futures in MCU module*/
/* 10.2.8 */
/* post build configuration */
/************************************************/
/******************************************************************/
/* McuDemEventParameterRefs section generated by configuration tool to enable or disable some API's and futures in MCU module*/
/* 10.2.5 */
/******************************************************************/
/* McuModeSettingConf section generated by configuration tool to enable or disable some API's and futures in MCU module*/
/* 10.2.6 */
#define McuConf_SleepMode 0x00u
#define McuConf_DeepSleepMode 0x01u
/******************************************************************/
/* McuRamSectorSettingConf section generated by configuration tool to enable or disable some API's and futures in MCU module*/
/* 10.2.7 */
/******************************************************************/
/************************************************************************************************/
/* McuPublishedInformation section generated by configuration tool to enable or disable some API's and futures in MCU module*/
/* 10.2.9 */
/******************************************************************/
/* McuResetReasonConf section generated by configuration tool to enable or disable some API's and futures in MCU module*/
/* 10.2.10 */
#define McuConf_ExternalReset 0x01u
#define McuConf_PowerOnReset 0x02u
#define McuConf_BrownOutReset 0x04u
#define McuConf_Watchdog_0_Reset 0x08u
#define McuConf_SoftwareReset 0x10u
#define McuConf_Watchdog_1_Reset 0x20u
#define McuConf_MOSC_Fail 0x00010000u
/******************************************************************/
#define MCU_CONFIGURATION_SETTING_NUMBER 1
#define MCU_MAX_CLOCK_SETTING_NUMBER 2
#define MCU_MAX_RAM_SECTOR_NUMBER 2
/************************************************************************************************/
#endif /* MCU_CFG_H_ */