aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/testhal/MSP430X/EXP430FR5969/ADC/mcuconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/testhal/MSP430X/EXP430FR5969/ADC/mcuconf.h')
-rw-r--r--lib/chibios-contrib/testhal/MSP430X/EXP430FR5969/ADC/mcuconf.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/lib/chibios-contrib/testhal/MSP430X/EXP430FR5969/ADC/mcuconf.h b/lib/chibios-contrib/testhal/MSP430X/EXP430FR5969/ADC/mcuconf.h
new file mode 100644
index 000000000..fcc140754
--- /dev/null
+++ b/lib/chibios-contrib/testhal/MSP430X/EXP430FR5969/ADC/mcuconf.h
@@ -0,0 +1,68 @@
1/*
2 ChibiOS - Copyright (C) 2016 Andrew Wygle aka awygle
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17#ifndef MCUCONF_H
18#define MCUCONF_H
19
20/*
21 * MSP430X drivers configuration.
22 * The following settings override the default settings present in
23 * the various device driver implementation headers.
24 * Note that the settings for each driver only have effect if the driver
25 * is enabled in halconf.h.
26 *
27 */
28
29#define MSP430X_MCUCONF
30
31/* HAL driver system settings */
32#define MSP430X_ACLK_SRC MSP430X_VLOCLK
33#define MSP430X_LFXTCLK_FREQ 0
34#define MSP430X_HFXTCLK_FREQ 0
35#define MSP430X_DCOCLK_FREQ 8000000
36#define MSP430X_MCLK_DIV 1
37#define MSP430X_SMCLK_DIV 32
38
39/*
40 * SERIAL driver system settings.
41 */
42#define MSP430X_SERIAL_USE_USART0 TRUE
43#define MSP430X_USART0_CLK_SRC MSP430X_SMCLK_SRC
44#define MSP430X_SERIAL_USE_USART1 FALSE
45#define MSP430X_SERIAL_USE_USART2 FALSE
46#define MSP430X_SERIAL_USE_USART3 FALSE
47
48/*
49 * ST driver system settings.
50 */
51#define MSP430X_ST_CLK_SRC MSP430X_SMCLK_SRC
52#define MSP430X_ST_TIMER_TYPE B
53#define MSP430X_ST_TIMER_INDEX 0
54
55/*
56 * SPI driver system settings.
57 */
58#define MSP430X_SPI_USE_SPIA1 FALSE
59#define MSP430X_SPI_USE_SPIB0 FALSE
60#define MSP430X_SPI_EXCLUSIVE_DMA TRUE
61
62/*
63 * ADC driver system settings
64 */
65#define MSP430X_ADC_EXCLUSIVE_DMA TRUE
66#define MSP430X_ADC1_FREQ 5000000 / 256
67
68#endif /* _MCUCONF_H_ */