-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDio_PBcfg.c
46 lines (40 loc) · 1.7 KB
/
Dio_PBcfg.c
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
/******************************************************************************
*
* Module: Dio
*
* File Name: Dio_PBcfg.c
*
* Description: Post Build Configuration Source file for TM4C123GH6PM Microcontroller - Dio Driver
*
* Author: Mohamed Tarek
******************************************************************************/
#include "Dio.h"
/*
* Module Version 1.0.0
*/
#define DIO_PBCFG_SW_MAJOR_VERSION (1U)
#define DIO_PBCFG_SW_MINOR_VERSION (0U)
#define DIO_PBCFG_SW_PATCH_VERSION (0U)
/*
* AUTOSAR Version 4.0.3
*/
#define DIO_PBCFG_AR_RELEASE_MAJOR_VERSION (4U)
#define DIO_PBCFG_AR_RELEASE_MINOR_VERSION (0U)
#define DIO_PBCFG_AR_RELEASE_PATCH_VERSION (3U)
/* AUTOSAR Version checking between Dio_PBcfg.c and Dio.h files */
#if ((DIO_PBCFG_AR_RELEASE_MAJOR_VERSION != DIO_AR_RELEASE_MAJOR_VERSION)\
|| (DIO_PBCFG_AR_RELEASE_MINOR_VERSION != DIO_AR_RELEASE_MINOR_VERSION)\
|| (DIO_PBCFG_AR_RELEASE_PATCH_VERSION != DIO_AR_RELEASE_PATCH_VERSION))
#error "The AR version of PBcfg.c does not match the expected version"
#endif
/* Software Version checking between Dio_PBcfg.c and Dio.h files */
#if ((DIO_PBCFG_SW_MAJOR_VERSION != DIO_SW_MAJOR_VERSION)\
|| (DIO_PBCFG_SW_MINOR_VERSION != DIO_SW_MINOR_VERSION)\
|| (DIO_PBCFG_SW_PATCH_VERSION != DIO_SW_PATCH_VERSION))
#error "The SW version of PBcfg.c does not match the expected version"
#endif
/* PB structure used with Dio_Init API */
const Dio_ConfigType Dio_Configuration = {
DioConf_LED1_PORT_NUM,DioConf_LED1_CHANNEL_NUM,
DioConf_SW1_PORT_NUM,DioConf_SW1_CHANNEL_NUM
};