diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/evkmimx8mn/project_template/pin_mux.c')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/boards/evkmimx8mn/project_template/pin_mux.c | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/evkmimx8mn/project_template/pin_mux.c b/lib/chibios-contrib/ext/mcux-sdk/boards/evkmimx8mn/project_template/pin_mux.c new file mode 100644 index 000000000..a8e7e0eaf --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/boards/evkmimx8mn/project_template/pin_mux.c | |||
@@ -0,0 +1,69 @@ | |||
1 | /* | ||
2 | * Copyright 2019 NXP | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | * | ||
7 | */ | ||
8 | |||
9 | |||
10 | /*********************************************************************************************************************** | ||
11 | * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file | ||
12 | * will be overwritten if the respective MCUXpresso Config Tools is used to update this file. | ||
13 | **********************************************************************************************************************/ | ||
14 | |||
15 | /* | ||
16 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
17 | !!GlobalInfo | ||
18 | product: Pins v6.0 | ||
19 | processor: MIMX8MN6xxxJZ | ||
20 | package_id: MIMX8MN6DVTJZ | ||
21 | mcu_data: ksdk2_0 | ||
22 | processor_version: 0.0.0 | ||
23 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
24 | */ | ||
25 | |||
26 | #include "fsl_common.h" | ||
27 | #include "fsl_iomuxc.h" | ||
28 | #include "pin_mux.h" | ||
29 | |||
30 | /* FUNCTION ************************************************************************************************************ | ||
31 | * | ||
32 | * Function Name : BOARD_InitBootPins | ||
33 | * Description : Calls initialization functions. | ||
34 | * | ||
35 | * END ****************************************************************************************************************/ | ||
36 | void BOARD_InitBootPins(void) | ||
37 | { | ||
38 | } | ||
39 | |||
40 | /* | ||
41 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
42 | BOARD_InitPins: | ||
43 | - options: {callFromInitBoot: 'false', coreID: m7} | ||
44 | - pin_list: | ||
45 | - {pin_num: F19, peripheral: UART4, signal: uart_rx, pin_signal: UART4_RXD, PE: Disabled, FSEL: FAST0, DSE: X6_0} | ||
46 | - {pin_num: F18, peripheral: UART4, signal: uart_tx, pin_signal: UART4_TXD, PE: Disabled, FSEL: FAST0, DSE: X6_0} | ||
47 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
48 | */ | ||
49 | |||
50 | /* FUNCTION ************************************************************************************************************ | ||
51 | * | ||
52 | * Function Name : BOARD_InitPins | ||
53 | * Description : Configures pin routing and optionally pin electrical features. | ||
54 | * | ||
55 | * END ****************************************************************************************************************/ | ||
56 | void BOARD_InitPins(void) { /*!< Function assigned for the core: Cortex-M7F[m7] */ | ||
57 | IOMUXC_SetPinMux(IOMUXC_UART4_RXD_UART4_RX, 0U); | ||
58 | IOMUXC_SetPinConfig(IOMUXC_UART4_RXD_UART4_RX, | ||
59 | IOMUXC_SW_PAD_CTL_PAD_DSE(6U) | | ||
60 | IOMUXC_SW_PAD_CTL_PAD_FSEL(2U)); | ||
61 | IOMUXC_SetPinMux(IOMUXC_UART4_TXD_UART4_TX, 0U); | ||
62 | IOMUXC_SetPinConfig(IOMUXC_UART4_TXD_UART4_TX, | ||
63 | IOMUXC_SW_PAD_CTL_PAD_DSE(6U) | | ||
64 | IOMUXC_SW_PAD_CTL_PAD_FSEL(2U)); | ||
65 | } | ||
66 | |||
67 | /*********************************************************************************************************************** | ||
68 | * EOF | ||
69 | **********************************************************************************************************************/ | ||