iLLD_TC27xC  1.0
IfxPsi5_cfg.h
Go to the documentation of this file.
1 /**
2  * \file IfxPsi5_cfg.h
3  * \brief Psi5 on-chip implementation data
4  * \ingroup IfxLld_Psi5
5  *
6  * \version iLLD_0_1_0_10
7  * \copyright Copyright (c) 2013 Infineon Technologies AG. All rights reserved.
8  *
9  *
10  * IMPORTANT NOTICE
11  *
12  *
13  * Infineon Technologies AG (Infineon) is supplying this file for use
14  * exclusively with Infineon's microcontroller products. This file can be freely
15  * distributed within development tools that are supporting such microcontroller
16  * products.
17  *
18  * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
19  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
20  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
21  * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
22  * OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
23  *
24  * \defgroup IfxLld_Psi5_Impl Implementation
25  * \ingroup IfxLld_Psi5
26  * \defgroup IfxLld_Psi5_Impl_Enumerations Enumerations
27  * \ingroup IfxLld_Psi5_Impl
28  */
29 
30 #ifndef IFXPSI5_CFG_H
31 #define IFXPSI5_CFG_H 1
32 
33 /******************************************************************************/
34 /*----------------------------------Includes----------------------------------*/
35 /******************************************************************************/
36 
37 #include "_Reg/IfxPsi5_bf.h"
38 #include "_Reg/IfxPsi5_reg.h"
40 #include "Src/Std/IfxSrc.h"
41 #include "Scu/Std/IfxScuCcu.h"
42 #include "Scu/Std/IfxScuWdt.h"
43 #include "Port/Std/IfxPort.h"
44 
45 /******************************************************************************/
46 /*-----------------------------------Macros-----------------------------------*/
47 /******************************************************************************/
48 
49 #define IFXPSI5_NUM_CHANNELS 3
50 
51 #define IFXPSI5_STEP_RANGE 1024
52 
53 #define IFXPSI5_WDT_COUNT 7
54 
55 #define IFXPSI5_SLOT_COUNT 6
56 
57 #define IFXPSI5_ENABLE_CHANNELTRIGGER (1 << 8)
58 
59 #define IFXPSI5_ENABLE_CHANNEL (1 << 16)
60 
61 #define IFXPSI5_DEFAULT_SLOWCLOCK_FREQ 4000000
62 
63 #define IFXPSI5_DEFAULT_FASTCLOCK_FREQ 6000000
64 
65 #define IFXPSI5_DEFAULT_TIMESTAMP_FREQ 1000000
66 
67 
68 
69 /******************************************************************************/
70 /*-------------------------------Enumerations---------------------------------*/
71 /******************************************************************************/
72 
73 /** \brief Channel Id
74  */
75 typedef enum
76 {
77  IfxPsi5_ChannelId_none = -1, /**< \brief None of the Ifx_PSI5 Channels */
78  IfxPsi5_ChannelId_0 = 0, /**< \brief Specifies PSI5 channel 0 */
79  IfxPsi5_ChannelId_1 = 1, /**< \brief Specifies PSI5 channel 1 */
80  IfxPsi5_ChannelId_2 = 2, /**< \brief Specifies PSI5 channel 2 */
82 
83 
84 #endif /* IFXPSI5_CFG_H */