iLLD_TC27xD  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_1_0_0_11_0
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 PSI5
25  * \ingroup IfxLld
26  * \defgroup IfxLld_Psi5_Impl Implementation
27  * \ingroup IfxLld_Psi5
28  * \defgroup IfxLld_Psi5_Std Standard Driver
29  * \ingroup IfxLld_Psi5
30  * \defgroup IfxLld_Psi5_Impl_Enumerations Enumerations
31  * \ingroup IfxLld_Psi5_Impl
32  */
33 
34 #ifndef IFXPSI5_CFG_H
35 #define IFXPSI5_CFG_H 1
36 
37 /******************************************************************************/
38 /*----------------------------------Includes----------------------------------*/
39 /******************************************************************************/
40 
41 
42 /******************************************************************************/
43 /*-----------------------------------Macros-----------------------------------*/
44 /******************************************************************************/
45 
46 #define IFXPSI5_STEP_RANGE 1024
47 
48 #define IFXPSI5_NUM_WDTS 7
49 
50 #define IFXPSI5_NUM_SLOTS 6
51 
52 #define IFXPSI5_ENABLE_CHANNELTRIGGER (1 << 8)
53 
54 #define IFXPSI5_ENABLE_CHANNEL (1 << 16)
55 
56 #define IFXPSI5_DEFAULT_SLOWCLOCK_FREQ 4000000
57 
58 #define IFXPSI5_DEFAULT_FASTCLOCK_FREQ 6000000
59 
60 #define IFXPSI5_DEFAULT_TIMESTAMP_FREQ 1000000
61 
62 #define IFXPSI5_NUM_CHANNELS 3
63 
64 
65 
66 /******************************************************************************/
67 /*-------------------------------Enumerations---------------------------------*/
68 /******************************************************************************/
69 
70 /** \brief Channel Id
71  */
72 typedef enum
73 {
74  IfxPsi5_ChannelId_none = -1, /**< \brief None of the Ifx_PSI5 Channels */
75  IfxPsi5_ChannelId_0 = 0, /**< \brief Specifies PSI5 channel 0 */
76  IfxPsi5_ChannelId_1 = 1, /**< \brief Specifies PSI5 channel 1 */
77  IfxPsi5_ChannelId_2 = 2 /**< \brief Specifies PSI5 channel 2 */
79 
80 
81 #endif /* IFXPSI5_CFG_H */