aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/boards/frdmke04z/project_template/pin_mux.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/frdmke04z/project_template/pin_mux.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/boards/frdmke04z/project_template/pin_mux.h166
1 files changed, 166 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/frdmke04z/project_template/pin_mux.h b/lib/chibios-contrib/ext/mcux-sdk/boards/frdmke04z/project_template/pin_mux.h
new file mode 100644
index 000000000..031817148
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/boards/frdmke04z/project_template/pin_mux.h
@@ -0,0 +1,166 @@
1/*
2 * Copyright 2018 NXP.
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8/***********************************************************************************************************************
9 * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
10 * will be overwritten if the respective MCUXpresso Config Tools is used to update this file.
11 **********************************************************************************************************************/
12
13#ifndef _PIN_MUX_H_
14#define _PIN_MUX_H_
15
16/*!
17 * @addtogroup pin_mux
18 * @{
19 */
20
21/***********************************************************************************************************************
22 * API
23 **********************************************************************************************************************/
24
25#if defined(__cplusplus)
26extern "C" {
27#endif
28
29/*!
30 * @brief Calls initialization functions.
31 *
32 */
33void BOARD_InitBootPins(void);
34
35/*!
36 * @brief Configures pin routing and optionally pin electrical features.
37 *
38 */
39void BOARD_InitPins(void);
40
41/*! @name PORTB3 (number 13), J1[10]/J2[10]/J4[3]/D4[3]/PTB3_D12_SPI0_MOSI/PTB3_BLUE
42 @{ */
43#define BOARD_INITLEDSPINS_LED_BLUE_GPIO GPIOA /*!<@brief GPIO device name: GPIOA */
44#define BOARD_INITLEDSPINS_LED_BLUE_GPIO_PORT kGPIO_PORTB /*!<@brief PORTA GPIO port: PORTA */
45#define BOARD_INITLEDSPINS_LED_BLUE_PORT PORTB /*!<@brief PORT device name: PORTB */
46#define BOARD_INITLEDSPINS_LED_BLUE_PIN 3U /*!<@brief PORTB pin index: 3 */
47 /* @} */
48
49/*! @name PORTC4 (number 2), J1[8]/D4[4]/PTC4_GREEN
50 @{ */
51#define BOARD_INITLEDSPINS_LED_GREEN_GPIO GPIOA /*!<@brief GPIO device name: GPIOA */
52#define BOARD_INITLEDSPINS_LED_GREEN_GPIO_PORT kGPIO_PORTC /*!<@brief PORTA GPIO port: PORTA */
53#define BOARD_INITLEDSPINS_LED_GREEN_PORT PORTC /*!<@brief PORT device name: PORTC */
54#define BOARD_INITLEDSPINS_LED_GREEN_PIN 4U /*!<@brief PORTC pin index: 4 */
55 /* @} */
56
57/*! @name PORTC5 (number 1), J1[12]/D4[1]/PTC5_RED
58 @{ */
59#define BOARD_INITLEDSPINS_LED_RED_GPIO GPIOA /*!<@brief GPIO device name: GPIOA */
60#define BOARD_INITLEDSPINS_LED_RED_GPIO_PORT kGPIO_PORTC /*!<@brief PORTA GPIO port: PORTA */
61#define BOARD_INITLEDSPINS_LED_RED_PORT PORTC /*!<@brief PORT device name: PORTC */
62#define BOARD_INITLEDSPINS_LED_RED_PIN 5U /*!<@brief PORTC pin index: 5 */
63 /* @} */
64
65/*!
66 * @brief Configures pin routing and optionally pin electrical features.
67 *
68 */
69void BOARD_InitLEDsPins(void);
70
71/*! @name PORTB5 (number 7), J2[6]/PTB5_TSI
72 @{ */
73#define BOARD_INITTOUCHPINS_PTB5_TSI_GPIO GPIOA /*!<@brief GPIO device name: GPIOA */
74#define BOARD_INITTOUCHPINS_PTB5_TSI_GPIO_PORT kGPIO_PORTB /*!<@brief PORTA GPIO port: PORTA */
75#define BOARD_INITTOUCHPINS_PTB5_TSI_PORT PORTB /*!<@brief PORT device name: PORTB */
76#define BOARD_INITTOUCHPINS_PTB5_TSI_PIN 5U /*!<@brief PORTB pin index: 5 */
77 /* @} */
78
79/*! @name PORTC1 (number 11), J2[3]/PTC1_TSI/PTC1_PWM1
80 @{ */
81#define BOARD_INITTOUCHPINS_PTC1_TSI_GPIO GPIOA /*!<@brief GPIO device name: GPIOA */
82#define BOARD_INITTOUCHPINS_PTC1_TSI_GPIO_PORT kGPIO_PORTC /*!<@brief PORTA GPIO port: PORTA */
83#define BOARD_INITTOUCHPINS_PTC1_TSI_PORT PORTC /*!<@brief PORT device name: PORTC */
84#define BOARD_INITTOUCHPINS_PTC1_TSI_PIN 1U /*!<@brief PORTC pin index: 1 */
85 /* @} */
86
87/*!
88 * @brief Configures pin routing and optionally pin electrical features.
89 *
90 */
91void BOARD_InitTOUCHPins(void);
92
93/*! @name PORTB0 (number 16), J1[2]/UART0_RX_TGTMCU
94 @{ */
95#define BOARD_INITDEBUG_UARTPINS_DEBUG_UART_RX_PORT PORTB /*!<@brief PORT device name: PORTB */
96#define BOARD_INITDEBUG_UARTPINS_DEBUG_UART_RX_PIN 0U /*!<@brief PORTB pin index: 0 */
97 /* @} */
98
99/*! @name PORTB1 (number 15), J1[4]/PTB1_IRTX/UART0_TX_TGTMCU
100 @{ */
101#define BOARD_INITDEBUG_UARTPINS_DEBUG_UART_TX_PORT PORTB /*!<@brief PORT device name: PORTB */
102#define BOARD_INITDEBUG_UARTPINS_DEBUG_UART_TX_PIN 1U /*!<@brief PORTB pin index: 1 */
103 /* @} */
104
105/*!
106 * @brief Configures pin routing and optionally pin electrical features.
107 *
108 */
109void BOARD_InitDEBUG_UARTPins(void);
110
111/*! @name PORTA3 (number 19), J2[20]/J4[7]/PTA3_D15_ANB0/PTA3_ACCEL_SCL
112 @{ */
113#define BOARD_INITACCELPINS_ACCEL_SCL_PORT PORTA /*!<@brief PORT device name: PORTA */
114#define BOARD_INITACCELPINS_ACCEL_SCL_PIN 3U /*!<@brief PORTA pin index: 3 */
115 /* @} */
116
117/*! @name PORTA2 (number 20), J1[11]/J2[18]/PTA2_D14_T2/PTA2_ACCEL_SDA
118 @{ */
119#define BOARD_INITACCELPINS_ACCEL_SDA_PORT PORTA /*!<@brief PORT device name: PORTA */
120#define BOARD_INITACCELPINS_ACCEL_SDA_PIN 2U /*!<@brief PORTA pin index: 2 */
121 /* @} */
122
123/*! @name PORTC0 (number 12), J2[4]/PTC0_ACCEL_INT1
124 @{ */
125#define BOARD_INITACCELPINS_ACCEL_INT1_GPIO GPIOA /*!<@brief GPIO device name: GPIOA */
126#define BOARD_INITACCELPINS_ACCEL_INT1_GPIO_PORT kGPIO_PORTC /*!<@brief PORTA GPIO port: PORTA */
127#define BOARD_INITACCELPINS_ACCEL_INT1_PORT PORTC /*!<@brief PORT device name: PORTC */
128#define BOARD_INITACCELPINS_ACCEL_INT1_PIN 0U /*!<@brief PORTC pin index: 0 */
129 /* @} */
130
131/*!
132 * @brief Configures pin routing and optionally pin electrical features.
133 *
134 */
135void BOARD_InitACCELPins(void);
136
137/*! @name PORTB7 (number 5), J1[9]/PTB7_GPIO/EXTAL
138 @{ */
139#define BOARD_INITOSCPINS_EXTAL_PORT PORTB /*!<@brief PORT device name: PORTB */
140#define BOARD_INITOSCPINS_EXTAL_PIN 7U /*!<@brief PORTB pin index: 7 */
141 /* @} */
142
143/*! @name PORTB6 (number 6), J1[15]/PTB6_LED3/XTAL
144 @{ */
145#define BOARD_INITOSCPINS_XTAL_PORT PORTB /*!<@brief PORT device name: PORTB */
146#define BOARD_INITOSCPINS_XTAL_PIN 6U /*!<@brief PORTB pin index: 6 */
147 /* @} */
148
149/*!
150 * @brief Configures pin routing and optionally pin electrical features.
151 *
152 */
153void BOARD_InitOSCPins(void);
154
155#if defined(__cplusplus)
156}
157#endif
158
159/*!
160 * @}
161 */
162#endif /* _PIN_MUX_H_ */
163
164/***********************************************************************************************************************
165 * EOF
166 **********************************************************************************************************************/