diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l3a6/project_template/cm4/peripherals.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l3a6/project_template/cm4/peripherals.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l3a6/project_template/cm4/peripherals.h b/lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l3a6/project_template/cm4/peripherals.h new file mode 100644 index 000000000..f80a41c4d --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l3a6/project_template/cm4/peripherals.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | * Copyright 2019 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 _PERIPHERALS_H_ | ||
14 | #define _PERIPHERALS_H_ | ||
15 | |||
16 | /*********************************************************************************************************************** | ||
17 | * Included files | ||
18 | **********************************************************************************************************************/ | ||
19 | #include "fsl_common.h" | ||
20 | #include "fsl_clock.h" | ||
21 | #include "fsl_lpi2c.h" | ||
22 | #include "fsl_lpuart.h" | ||
23 | |||
24 | #if defined(__cplusplus) | ||
25 | extern "C" { | ||
26 | #endif /* __cplusplus */ | ||
27 | |||
28 | /*********************************************************************************************************************** | ||
29 | * Definitions | ||
30 | **********************************************************************************************************************/ | ||
31 | /* Definitions for BOARD_InitPeripherals_cm4 functional group */ | ||
32 | /* BOARD_InitPeripherals_cm4 defines for LPI2C3 */ | ||
33 | /* Definition of peripheral ID */ | ||
34 | #define ACCEL_PERIPHERAL LPI2C3 | ||
35 | /* Definition of clock source */ | ||
36 | #define ACCEL_CLOCK_FREQ CLOCK_GetIpFreq(kCLOCK_Lpi2c3) | ||
37 | /* Transfer buffer size */ | ||
38 | #define ACCEL_MASTER_BUFFER_SIZE 1 | ||
39 | /* Definition of peripheral ID */ | ||
40 | #define DEBUG_UART_PERIPHERAL LPUART0 | ||
41 | /* Definition of the clock source frequency */ | ||
42 | #define DEBUG_UART_CLOCK_SOURCE 48000000UL | ||
43 | |||
44 | /*********************************************************************************************************************** | ||
45 | * Global variables | ||
46 | **********************************************************************************************************************/ | ||
47 | extern const lpi2c_master_config_t ACCEL_masterConfig; | ||
48 | extern lpi2c_master_transfer_t ACCEL_masterTransfer; | ||
49 | extern uint8_t ACCEL_masterBuffer[ACCEL_MASTER_BUFFER_SIZE]; | ||
50 | extern lpi2c_master_handle_t ACCEL_masterHandle; | ||
51 | extern const lpuart_config_t DEBUG_UART_config; | ||
52 | |||
53 | /*********************************************************************************************************************** | ||
54 | * Initialization functions | ||
55 | **********************************************************************************************************************/ | ||
56 | void BOARD_InitPeripherals_cm4(void); | ||
57 | |||
58 | /*********************************************************************************************************************** | ||
59 | * BOARD_InitBootPeripherals function | ||
60 | **********************************************************************************************************************/ | ||
61 | void BOARD_InitBootPeripherals(void); | ||
62 | |||
63 | #if defined(__cplusplus) | ||
64 | } | ||
65 | #endif | ||
66 | |||
67 | #endif /* _PERIPHERALS_H_ */ | ||