1 //------------------------------------------------------------------------------
2 // Copyright 2012 (c) Silicon Laboratories Inc.
3 //
4 // SPDX-License-Identifier: Zlib
5 //
6 // This siHAL software is provided 'as-is', without any express or implied
7 // warranty. In no event will the authors be held liable for any damages
8 // arising from the use of this software.
9 //
10 // Permission is granted to anyone to use this software for any purpose,
11 // including commercial applications, and to alter it and redistribute it
12 // freely, subject to the following restrictions:
13 //
14 // 1. The origin of this software must not be misrepresented; you must not
15 //    claim that you wrote the original software. If you use this software
16 //    in a product, an acknowledgment in the product documentation would be
17 //    appreciated but is not required.
18 // 2. Altered source versions must be plainly marked as such, and must not be
19 //    misrepresented as being the original software.
20 // 3. This notice may not be removed or altered from any source distribution.
21 //------------------------------------------------------------------------------
22 //
23 // This file applies to the SIM3L1XX_PBCFG_A module
24 //
25 // Version: 1
26 
27 #ifndef __SI32_PBCFG_A_SUPPORT_H__
28 #define __SI32_PBCFG_A_SUPPORT_H__
29 
30 #include <stdint.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 //-----------------------------------------------------------------------------
37 // Define crossbar0 masks
38 
39 #define SI32_PBCFG_A_XBAR0_USART0EN            0x00000001
40 #define SI32_PBCFG_A_XBAR0_USART0FCEN          0x00000002
41 #define SI32_PBCFG_A_XBAR0_USART0CEN           0x00000004
42 #define SI32_PBCFG_A_XBAR0_DMATRIG0EN          0x00000008
43 #define SI32_PBCFG_A_XBAR0_DMATRIG1EN          0x00000010
44 #define SI32_PBCFG_A_XBAR0_IDAC0TRIGEN         0x00000020
45 #define SI32_PBCFG_A_XBAR0_SPI0EN              0x00000040
46 #define SI32_PBCFG_A_XBAR0_SPI0NSSEN           0x00000080
47 #define SI32_PBCFG_A_XBAR0_EECI0EN             0x00000800
48 #define SI32_PBCFG_A_XBAR0_I2C0EN              0x00001000
49 #define SI32_PBCFG_A_XBAR0_CMP0SEN             0x00002000
50 #define SI32_PBCFG_A_XBAR0_CMP0AEN             0x00004000
51 #define SI32_PBCFG_A_XBAR0_CMP1SEN             0x00008000
52 #define SI32_PBCFG_A_XBAR0_CMP1AEN             0x00010000
53 #define SI32_PBCFG_A_XBAR0_TMR0CTEN            0x00020000
54 #define SI32_PBCFG_A_XBAR0_TMR0EXEN            0x00040000
55 #define SI32_PBCFG_A_XBAR0_TMR1CTEN            0x00080000
56 #define SI32_PBCFG_A_XBAR0_TMR1EXEN            0x00100000
57 #define SI32_PBCFG_A_XBAR0_CNVSTREN            0x00200000
58 #define SI32_PBCFG_A_XBAR0_AHBEN               0x00400000
59 #define SI32_PBCFG_A_XBAR0_XBAR0EN             0x80000000
60 
61 //-----------------------------------------------------------------------------
62 // Define crossbar0 signal parameter values
63 
64 typedef enum SI32_PBCFG_A_XBAR0_Enum
65 {
66     SI32_XBAR0_USART0       = 0x00,
67     SI32_XBAR0_USART0FC     = 0x01,
68     SI32_XBAR0_USART0C      = 0x02,
69     SI32_XBAR0_DMATRIG0     = 0x03,
70     SI32_XBAR0_DMATRIG1     = 0x04,
71     SI32_XBAR0_IDAC0TRIG    = 0x05,
72     SI32_XBAR0_SPI0         = 0x06,
73     SI32_XBAR0_SPI0NSS      = 0x07,
74     SI32_XBAR0_EECI0        = 0x0B,
75     SI32_XBAR0_I2C0         = 0x0C,
76     SI32_XBAR0_CMP0S        = 0x0D,
77     SI32_XBAR0_CMP0A        = 0x0E,
78     SI32_XBAR0_CMP1S        = 0x0F,
79     SI32_XBAR0_CMP1A        = 0x10,
80     SI32_XBAR0_TMR0CT       = 0x11,
81     SI32_XBAR0_TMR0EX       = 0x12,
82     SI32_XBAR0_TMR1CT       = 0x13,
83     SI32_XBAR0_TMR1EX       = 0x14,
84     SI32_XBAR0_CNVSTR       = 0x15,
85     SI32_XBAR0_AHB          = 0x16,
86 
87     SI32_XBAR0_EPCA0_CEX0   = 0x81,
88     SI32_XBAR0_EPCA0_CEX0_1 = 0x82,
89     SI32_XBAR0_EPCA0_CEX0_2 = 0x83,
90     SI32_XBAR0_EPCA0_CEX0_3 = 0x84,
91     SI32_XBAR0_EPCA0_CEX0_4 = 0x85,
92     SI32_XBAR0_EPCA0_CEX0_5 = 0x86
93 }
94 SI32_PBCFG_A_XBAR0_Enum_Type;
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #endif // __SI32_PBCFG_A_SUPPORT_H__
101 
102 //-eof--------------------------------------------------------------------------
103