diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/LPC51U68/project_template/pin_mux.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/LPC51U68/project_template/pin_mux.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC51U68/project_template/pin_mux.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC51U68/project_template/pin_mux.h new file mode 100644 index 000000000..b9e736ff0 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC51U68/project_template/pin_mux.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /* | ||
2 | * Copyright 2019 NXP. | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | */ | ||
7 | |||
8 | #ifndef _PIN_MUX_H_ | ||
9 | #define _PIN_MUX_H_ | ||
10 | |||
11 | |||
12 | /******************************************************************************* | ||
13 | * Definitions | ||
14 | ******************************************************************************/ | ||
15 | |||
16 | /*! @brief Direction type */ | ||
17 | typedef enum _pin_mux_direction | ||
18 | { | ||
19 | kPIN_MUX_DirectionInput = 0U, /* Input direction */ | ||
20 | kPIN_MUX_DirectionOutput = 1U, /* Output direction */ | ||
21 | kPIN_MUX_DirectionInputOrOutput = 2U /* Input or output direction */ | ||
22 | } pin_mux_direction_t; | ||
23 | |||
24 | /*! | ||
25 | * @addtogroup pin_mux | ||
26 | * @{ | ||
27 | */ | ||
28 | |||
29 | /******************************************************************************* | ||
30 | * API | ||
31 | ******************************************************************************/ | ||
32 | |||
33 | #if defined(__cplusplus) | ||
34 | extern "C" { | ||
35 | #endif | ||
36 | |||
37 | /*! | ||
38 | * @brief Calls initialization functions. | ||
39 | * | ||
40 | */ | ||
41 | void BOARD_InitBootPins(void); | ||
42 | |||
43 | /*! | ||
44 | * @brief Configures pin routing and optionally pin electrical features. | ||
45 | * | ||
46 | */ | ||
47 | void BOARD_InitPins(void); /* Function assigned for the Cortex-M0P */ | ||
48 | |||
49 | #if defined(__cplusplus) | ||
50 | } | ||
51 | #endif | ||
52 | |||
53 | /*! | ||
54 | * @} | ||
55 | */ | ||
56 | #endif /* _PIN_MUX_H_ */ | ||
57 | |||
58 | /******************************************************************************* | ||
59 | * EOF | ||
60 | ******************************************************************************/ | ||