diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/LPC802/drivers/fsl_swm_connections.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/LPC802/drivers/fsl_swm_connections.h | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC802/drivers/fsl_swm_connections.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC802/drivers/fsl_swm_connections.h new file mode 100644 index 000000000..4662f4e94 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC802/drivers/fsl_swm_connections.h | |||
@@ -0,0 +1,131 @@ | |||
1 | /* | ||
2 | * Copyright 2017 NXP | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * | ||
6 | * SPDX-License-Identifier: BSD-3-Clause | ||
7 | */ | ||
8 | |||
9 | #ifndef _FSL_SWM_CONNECTIONS_ | ||
10 | #define _FSL_SWM_CONNECTIONS_ | ||
11 | |||
12 | #include "fsl_common.h" | ||
13 | |||
14 | /******************************************************************************* | ||
15 | * Definitions | ||
16 | ******************************************************************************/ | ||
17 | /* Component ID definition, used by tools. */ | ||
18 | #ifndef FSL_COMPONENT_ID | ||
19 | #define FSL_COMPONENT_ID "platform.drivers.swm_connections" | ||
20 | #endif | ||
21 | |||
22 | /*! | ||
23 | * @addtogroup swm | ||
24 | * @{ | ||
25 | */ | ||
26 | |||
27 | /*! | ||
28 | * @name swm connections | ||
29 | * @{ | ||
30 | */ | ||
31 | |||
32 | /*! @brief SWM port_pin number */ | ||
33 | typedef enum _swm_port_pin_type_t | ||
34 | { | ||
35 | kSWM_PortPin_P0_0 = 0U, /*!< port_pin number P0_0. */ | ||
36 | kSWM_PortPin_P0_1 = 1U, /*!< port_pin number P0_1. */ | ||
37 | kSWM_PortPin_P0_2 = 2U, /*!< port_pin number P0_2. */ | ||
38 | kSWM_PortPin_P0_3 = 3U, /*!< port_pin number P0_3. */ | ||
39 | kSWM_PortPin_P0_4 = 4U, /*!< port_pin number P0_4. */ | ||
40 | kSWM_PortPin_P0_5 = 5U, /*!< port_pin number P0_5. */ | ||
41 | kSWM_PortPin_P0_6 = 6U, /*!< port_pin number P0_6. */ | ||
42 | kSWM_PortPin_P0_7 = 7U, /*!< port_pin number P0_7. */ | ||
43 | kSWM_PortPin_P0_8 = 8U, /*!< port_pin number P0_8. */ | ||
44 | kSWM_PortPin_P0_9 = 9U, /*!< port_pin number P0_9. */ | ||
45 | kSWM_PortPin_P0_10 = 10U, /*!< port_pin number P0_10. */ | ||
46 | kSWM_PortPin_P0_11 = 11U, /*!< port_pin number P0_11. */ | ||
47 | kSWM_PortPin_P0_12 = 12U, /*!< port_pin number P0_12. */ | ||
48 | kSWM_PortPin_P0_13 = 13U, /*!< port_pin number P0_13. */ | ||
49 | kSWM_PortPin_P0_14 = 14U, /*!< port_pin number P0_14. */ | ||
50 | kSWM_PortPin_P0_15 = 15U, /*!< port_pin number P0_15. */ | ||
51 | kSWM_PortPin_P0_16 = 16U, /*!< port_pin number P0_16. */ | ||
52 | kSWM_PortPin_P0_17 = 16U, /*!< port_pin number P0_17. */ | ||
53 | kSWM_PortPin_Reset = 0xffU /*!< port_pin reset number. */ | ||
54 | } swm_port_pin_type_t; | ||
55 | |||
56 | /*! @brief SWM movable selection */ | ||
57 | typedef enum _swm_select_movable_t | ||
58 | { | ||
59 | kSWM_USART0_TXD = 0U, /*!< Movable function as USART0_TXD. */ | ||
60 | kSWM_USART0_RXD = 1U, /*!< Movable function as USART0_RXD. */ | ||
61 | kSWM_USART0_RTS = 2U, /*!< Movable function as USART0_RTS. */ | ||
62 | kSWM_USART0_CTS = 3U, /*!< Movable function as USART0_CTS. */ | ||
63 | kSWM_USART0_SCLK = 4U, /*!< Movable function as USART0_SCLK. */ | ||
64 | |||
65 | kSWM_USART1_TXD = 5U, /*!< Movable function as USART1_TXD. */ | ||
66 | kSWM_USART1_RXD = 6U, /*!< Movable function as USART1_RXD. */ | ||
67 | kSWM_USART1_SCLK = 7U, /*!< Movable function as USART1_SCLK. */ | ||
68 | |||
69 | kSWM_SPI0_SCK = 8U, /*!< Movable function as SPI0_SCK. */ | ||
70 | kSWM_SPI0_MOSI = 9U, /*!< Movable function as SPI0_MOSI. */ | ||
71 | kSWM_SPI0_MISO = 10U, /*!< Movable function as SPI0_MISO. */ | ||
72 | kSWM_SPI0_SSEL0 = 11U, /*!< Movable function as SPI0_SSEL0. */ | ||
73 | kSWM_SPI0_SSEL1 = 12U, /*!< Movable function as SPI0_SSEL1. */ | ||
74 | |||
75 | kSWM_T0_CAP_CHN0 = 13U, /*!< Movable function as Timer Capture Channel 0. */ | ||
76 | kSWM_T0_CAP_CHN1 = 14U, /*!< Movable function as Timer Capture Channel 1. */ | ||
77 | kSWM_T0_CAP_CHN2 = 15U, /*!< Movable function as Timer Capture Channel 2. */ | ||
78 | kSWM_T0_MAT_CHN0 = 16U, /*!< Movable function as Timer Match Channel 0. */ | ||
79 | kSWM_T0_MAT_CHN1 = 17U, /*!< Movable function as Timer Match Channel 1. */ | ||
80 | kSWM_T0_MAT_CHN2 = 18U, /*!< Movable function as Timer Match Channel 2. */ | ||
81 | kSWM_T0_MAT_CHN3 = 19U, /*!< Movable function as Timer Match Channel 3. */ | ||
82 | |||
83 | kSWM_I2C0_SDA = 20U, /*!< Movable function as I2C1_SDA. */ | ||
84 | kSWM_I2C0_SCL = 21U, /*!< Movable function as I2C1_SCL. */ | ||
85 | |||
86 | kSWM_ACMP_OUT = 22U, /*!< Movable function as ACMP_OUT. */ | ||
87 | kSWM_CLKOUT = 23U, /*!< Movable function as CLKOUT. */ | ||
88 | kSWM_GPIO_INT_BMAT = 24U, /*!< Movable function as GPIO_INT_BMAT. */ | ||
89 | |||
90 | kSWM_LVLSHFT_IN0 = 25U, /*!< Movable function as LVLSHFT_IN0. */ | ||
91 | kSWM_LVLSHFT_IN1 = 26U, /*!< Movable function as LVLSHFT_IN1. */ | ||
92 | kSWM_LVLSHFT_OUT0 = 27U, /*!< Movable function as LVLSHFT_OUT0. */ | ||
93 | kSWM_LVLSHFT_OUT1 = 28U, /*!< Movable function as LVLSHFT_OUT1. */ | ||
94 | |||
95 | kSWM_MOVABLE_NUM_FUNCS = 29U, /*!< Movable function number. */ | ||
96 | } swm_select_movable_t; | ||
97 | |||
98 | /*! @brief SWM fixed pin selection */ | ||
99 | typedef enum _swm_select_fixed_pin_t | ||
100 | { | ||
101 | kSWM_ACMP_INPUT1 = SWM_PINENABLE0_ACMP_I1_MASK, /*!< Fixed-pin function as ACMP_INPUT1. */ | ||
102 | kSWM_ACMP_INPUT2 = SWM_PINENABLE0_ACMP_I2_MASK, /*!< Fixed-pin function as ACMP_INPUT2. */ | ||
103 | kSWM_ACMP_INPUT3 = SWM_PINENABLE0_ACMP_I3_MASK, /*!< Fixed-pin function as ACMP_INPUT3. */ | ||
104 | kSWM_ACMP_INPUT4 = SWM_PINENABLE0_ACMP_I4_MASK, /*!< Fixed-pin function as ACMP_INPUT4. */ | ||
105 | kSWM_SWCLK = SWM_PINENABLE0_SWCLK_MASK, /*!< Fixed-pin function as SWCLK. */ | ||
106 | kSWM_SWDIO = SWM_PINENABLE0_SWDIO_MASK, /*!< Fixed-pin function as SWDIO. */ | ||
107 | kSWM_RESETN = SWM_PINENABLE0_RESETN_MASK, /*!< Fixed-pin function as RESETN. */ | ||
108 | kSWM_CLKIN = SWM_PINENABLE0_CLKIN_MASK, /*!< Fixed-pin function as CLKIN. */ | ||
109 | kSWM_WKCLKIN = SWM_PINENABLE0_WKCLKIN_MASK, /*!< Fixed-pin function as CLKIN. */ | ||
110 | kSWM_VDDCMP = SWM_PINENABLE0_VDDCMP_MASK, /*!< Fixed-pin function as VDDCMP. */ | ||
111 | kSWM_ADC_CHN0 = SWM_PINENABLE0_ADC_0_MASK, /*!< Fixed-pin function as ADC_CHN0. */ | ||
112 | kSWM_ADC_CHN1 = SWM_PINENABLE0_ADC_1_MASK, /*!< Fixed-pin function as ADC_CHN1. */ | ||
113 | kSWM_ADC_CHN2 = SWM_PINENABLE0_ADC_2_MASK, /*!< Fixed-pin function as ADC_CHN2. */ | ||
114 | kSWM_ADC_CHN3 = SWM_PINENABLE0_ADC_3_MASK, /*!< Fixed-pin function as ADC_CHN3. */ | ||
115 | kSWM_ADC_CHN4 = SWM_PINENABLE0_ADC_4_MASK, /*!< Fixed-pin function as ADC_CHN4. */ | ||
116 | kSWM_ADC_CHN5 = SWM_PINENABLE0_ADC_5_MASK, /*!< Fixed-pin function as ADC_CHN5. */ | ||
117 | kSWM_ADC_CHN6 = SWM_PINENABLE0_ADC_6_MASK, /*!< Fixed-pin function as ADC_CHN6. */ | ||
118 | kSWM_ADC_CHN7 = SWM_PINENABLE0_ADC_7_MASK, /*!< Fixed-pin function as ADC_CHN7. */ | ||
119 | kSWM_ADC_CHN8 = SWM_PINENABLE0_ADC_8_MASK, /*!< Fixed-pin function as ADC_CHN8. */ | ||
120 | kSWM_ADC_CHN9 = SWM_PINENABLE0_ADC_9_MASK, /*!< Fixed-pin function as ADC_CHN9. */ | ||
121 | kSWM_ADC_CHN10 = SWM_PINENABLE0_ADC_10_MASK, /*!< Fixed-pin function as ADC_CHN10. */ | ||
122 | kSWM_ADC_CHN11 = SWM_PINENABLE0_ADC_11_MASK, /*!< Fixed-pin function as ADC_CHN11. */ | ||
123 | |||
124 | kSWM_FIXEDPIN_NUM_FUNCS = 0x200001U, /*!< Fixed-pin function number. */ | ||
125 | } swm_select_fixed_pin_t; | ||
126 | |||
127 | /*@}*/ | ||
128 | |||
129 | /*@}*/ | ||
130 | |||
131 | #endif /* _FSL_SWM_CONNECTIONS_ */ | ||