This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
mcuconf.h
81 lines (62 loc) · 2.29 KB
/
mcuconf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
ChibiOS/RT - Copyright (C) 2006-2014 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#define K20x_MCUCONF
/*
* HAL driver system settings.
*/
/*
* SERIAL driver system settings.
*/
#define KINETIS_SERIAL_USE_UART0 TRUE
#define KINETIS_SERIAL_USE_UART1 TRUE
#define KINETIS_SERIAL_USE_UART2 TRUE
/*
* USB driver settings
*/
#define KINETIS_USB_USE_USB0 TRUE
/*
* ADC
*/
#define KINETIS_ADC_USE_ADC1 TRUE
#define KINETIS_ADC_USE_ADC0 TRUE
/*
* SPI
*/
#define KINETIS_SPI_USE_SPI0 TRUE
// Must define
#define KINETIS_HAS_SERIAL1 TRUE
//#define KINETIS_SERIAL1_IRQ_VECTOR VectorFC
#define KINETIS_HAS_SERIAL2 TRUE
//#define KINETIS_SERIAL2_IRQ_VECTOR Vector104
#define KINETIS_GPT_USE_PIT0 TRUE
#define KINETIS_GPT_USE_PIT1 TRUE
#define KINETIS_GPT_USE_PIT2 TRUE
#define KINETIS_GPT_USE_PIT3 TRUE
#define KINETIS_GPT_PIT1_IRQ_PRIORITY 15
#define KINETIS_GPT_PIT2_IRQ_PRIORITY 15
#define KINETIS_GPT_PIT3_IRQ_PRIORITY 15
/*
* EXT driver system settings.
*/
#define KINETIS_EXTI_NUM_CHANNELS 2
#define KINETIS_EXT_PORTA_IRQ_PRIORITY 12
#define KINETIS_EXT_PORTB_IRQ_PRIORITY 12
#define KINETIS_EXT_PORTC_IRQ_PRIORITY 12
#define KINETIS_EXT_PORTD_IRQ_PRIORITY 12
#define KINETIS_EXT_PORTE_IRQ_PRIORITY 12
/* K20 64pin */
#define KINETIS_EXT_PORTA_WIDTH 20
#define KINETIS_EXT_PORTB_WIDTH 20
#define KINETIS_EXT_PORTC_WIDTH 12
#define KINETIS_EXT_PORTD_WIDTH 8
#define KINETIS_EXT_PORTE_WIDTH 2