aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/board.c24
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/board.h36
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/clock_config.c32
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/clock_config.h31
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/peripherals.c28
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/peripherals.h31
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/pin_mux.c27
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/pin_mux.h33
8 files changed, 242 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/board.c b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/board.c
new file mode 100644
index 000000000..30bda70e0
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/board.c
@@ -0,0 +1,24 @@
1/*
2 * Copyright 201, NXP
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8/**
9 * @file board.c
10 * @brief Board initialization file.
11 */
12
13/* This is an empty template for board specific configuration.*/
14
15#include <stdint.h>
16#include "board.h"
17
18/**
19 * @brief Set up and initialize all required blocks and functions related to the board hardware.
20 */
21void BOARD_InitDebugConsole(void)
22{
23 /* The user initialization should be placed here */
24}
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/board.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/board.h
new file mode 100644
index 000000000..b3b5ef0f5
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/board.h
@@ -0,0 +1,36 @@
1/*
2 * Copyright 2017, NXP
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8/**
9 * @file board.h
10 * @brief Board initialization header file.
11 */
12
13/* This is an empty template for board specific configuration.*/
14
15#ifndef _BOARD_H_
16#define _BOARD_H_
17
18/**
19 * @brief The board name
20 */
21#define BOARD_NAME "board"
22
23#if defined(__cplusplus)
24extern "C" {
25#endif /* __cplusplus */
26
27/**
28 * @brief Initialize board specific settings.
29 */
30void BOARD_InitDebugConsole(void);
31
32#if defined(__cplusplus)
33}
34#endif /* __cplusplus */
35
36#endif /* _BOARD_H_ */
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/clock_config.c b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/clock_config.c
new file mode 100644
index 000000000..8e5b03871
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/clock_config.c
@@ -0,0 +1,32 @@
1/*
2 * Copyright 2017, NXP
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
9!!GlobalInfo
10product: Clocks v4.0
11* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
12
13/**
14 * @file clock_config.c
15 * @brief Board clocks initialization file.
16 */
17
18/* This is a empty template for board specific configuration.*/
19
20#include "fsl_common.h"
21#include "clock_config.h"
22
23/**
24 * @brief Set up and initialize all required blocks and functions related to the board hardware.
25 */
26void BOARD_InitBootClocks(void)
27{
28 /* The user initialization should be placed here */
29
30 /* Read core clock setting. */
31 SystemCoreClockUpdate();
32}
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/clock_config.h
new file mode 100644
index 000000000..b706c0dd1
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/clock_config.h
@@ -0,0 +1,31 @@
1/*
2 * Copyright 2017, NXP
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8/**
9 * @file clock_config.h
10 * @brief Board clocks header file.
11 */
12
13/* This is an empty template for board specific configuration.*/
14
15#ifndef _CLOCK_CONFIG_H_
16#define _CLOCK_CONFIG_H_
17
18#if defined(__cplusplus)
19extern "C" {
20#endif /* __cplusplus */
21
22/**
23 * @brief Initialize board clocks.
24 */
25void BOARD_InitBootClocks(void);
26
27#if defined(__cplusplus)
28}
29#endif /* __cplusplus */
30
31#endif /* _CLOCK_CONFIG_H_ */
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/peripherals.c b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/peripherals.c
new file mode 100644
index 000000000..118cdef04
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/peripherals.c
@@ -0,0 +1,28 @@
1/*
2 * Copyright 2017, NXP
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
9!!GlobalInfo
10product: Peripherals v1.0
11* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
12
13/**
14 * @file peripherals.c
15 * @brief Peripherals initialization file.
16 */
17
18/* This is an empty template for board specific configuration.*/
19
20#include "peripherals.h"
21
22/**
23 * @brief Set up and initialize all required blocks and functions related to the peripherals hardware.
24 */
25void BOARD_InitBootPeripherals(void)
26{
27 /* The user initialization should be placed here */
28}
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/peripherals.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/peripherals.h
new file mode 100644
index 000000000..9180d4d63
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/peripherals.h
@@ -0,0 +1,31 @@
1/*
2 * Copyright 2017, NXP
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8/**
9 * @file peripherals.h
10 * @brief Peripherals initialization header file.
11 */
12
13/* This is an empty template for board specific configuration.*/
14
15#ifndef _PERIPHERALS_H_
16#define _PERIPHERALS_H_
17
18#if defined(__cplusplus)
19extern "C" {
20#endif /* __cplusplus */
21
22/**
23 * @brief Initialize peripherals specific settings.
24 */
25void BOARD_InitBootPeripherals(void);
26
27#if defined(__cplusplus)
28}
29#endif /* __cplusplus */
30
31#endif /* _PERIPHERALS_H_ */
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/pin_mux.c b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/pin_mux.c
new file mode 100644
index 000000000..010927e2f
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/pin_mux.c
@@ -0,0 +1,27 @@
1/*
2 * Copyright 2017, NXP
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
9!!GlobalInfo
10product: Pins v4.0
11* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********/
12
13/**
14 * @file pin_mux.c
15 * @brief Board pins file.
16 */
17
18/* This is an empty template for board specific configuration.*/
19
20#include "pin_mux.h"
21
22/**
23 * @brief Set up and initialize all required blocks and functions related to the board hardware.
24 */
25void BOARD_InitBootPins(void) {
26 /* The user initialization should be placed here */
27}
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/pin_mux.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/pin_mux.h
new file mode 100644
index 000000000..13f807dbb
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMX8MN1/project_template/pin_mux.h
@@ -0,0 +1,33 @@
1/*
2 * Copyright 2017, NXP
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8/**
9 * @file pin_mux.h
10 * @brief Board pins header file.
11 */
12
13/* This is an empty template for board specific configuration.*/
14
15#ifndef _PIN_MUX_H_
16#define _PIN_MUX_H_
17
18#if defined(__cplusplus)
19extern "C" {
20#endif /* __cplusplus */
21
22/**
23 * @brief Initialize board pins.
24 */
25void BOARD_InitBootPins(void);
26
27#if defined(__cplusplus)
28}
29#endif /* __cplusplus */
30
31#endif /* _PIN_MUX_H_ */
32
33