BSP430
20141115
Board Support Package for MSP430 microcontrollers
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
include
bsp430
platform
wolverine
bsp430_config.h
Go to the documentation of this file.
1
/* Copyright 2012-2014, Peter A. Bigot
2
*
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions are met:
7
*
8
* * Redistributions of source code must retain the above copyright notice,
9
* this list of conditions and the following disclaimer.
10
*
11
* * Redistributions in binary form must reproduce the above copyright notice,
12
* this list of conditions and the following disclaimer in the documentation
13
* and/or other materials provided with the distribution.
14
*
15
* * Neither the name of the software nor the names of its contributors may be
16
* used to endorse or promote products derived from this software without
17
* specific prior written permission.
18
*
19
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
* POSSIBILITY OF SUCH DAMAGE.
30
*/
31
39
#ifndef BSP430_PLATFORM_WOLVERINE_BSP430_CONFIG_H
40
#define BSP430_PLATFORM_WOLVERINE_BSP430_CONFIG_H
41
44
/* Use native EUSCI for genericized serial port unless told not to */
45
#ifndef configBSP430_SERIAL_USE_EUSCI
46
#define configBSP430_SERIAL_USE_EUSCI 1
47
#endif
/* configBSP430_SERIAL_USE_EUSCI */
48
49
/* Enable buttons as requested */
50
#if (configBSP430_PLATFORM_BUTTON0 - 0)
51
#if !defined(configBSP430_HAL_PORT1)
52
#define configBSP430_HAL_PORT1 1
53
#else
/* configBSP430_HAL_PORT1 */
54
#if (configBSP430_PLATFORM_BUTTON0 - 0) && ! defined(configBSP430_HPL_PORT1)
55
#define configBSP430_HPL_PORT1 1
56
#endif
/* BUTTON0 */
57
#endif
/* configBSP430_HAL_PORT1 */
58
#endif
/* configBSP430_PLATFORM_BUTTON0 */
59
60
/* What to use as a console */
61
#if (configBSP430_CONSOLE - 0)
62
#ifndef BSP430_CONSOLE_SERIAL_PERIPH_CPPID
63
#define BSP430_CONSOLE_SERIAL_PERIPH_CPPID BSP430_PERIPH_CPPID_EUSCI_A1
64
#endif
/* BSP430_CONSOLE_SERIAL_PERIPH_CPPID */
65
#endif
/* configBSP430_CONSOLE */
66
67
/* How to use ACLK as a capture/compare input source */
68
/* Settings for TA1: T1A2 ccis=1 ; clk P1.1 ; cc0 P1.7 ; cc1 P1.2 */
69
#if (configBSP430_TIMER_CCACLK - 0)
70
#ifndef BSP430_TIMER_CCACLK_PERIPH_CPPID
71
#define BSP430_TIMER_CCACLK_PERIPH_CPPID BSP430_PERIPH_CPPID_TA1
72
#endif
/* BSP430_TIMER_CCACLK_PERIPH_CPPID */
73
#ifndef BSP430_TIMER_CCACLK_CLK_PORT_PERIPH_CPPID
74
#define BSP430_TIMER_CCACLK_CLK_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
75
#endif
/* BSP430_TIMER_CCACLK_CLK_PORT_PERIPH_CPPID */
76
#ifndef BSP430_TIMER_CCACLK_CC0_PORT_PERIPH_CPPID
77
#define BSP430_TIMER_CCACLK_CC0_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
78
#endif
/* BSP430_TIMER_CCACLK_CC0_PORT_PERIPH_CPPID */
79
#ifndef BSP430_TIMER_CCACLK_CC1_PORT_PERIPH_CPPID
80
#define BSP430_TIMER_CCACLK_CC1_PORT_PERIPH_CPPID BSP430_PERIPH_CPPID_PORT1
81
#endif
/* BSP430_TIMER_CCACLK_CC1_PORT_PERIPH_CPPID */
82
#endif
/* configBSP430_TIMER_CCACLK */
83
86
#endif
/* BSP430_PLATFORM_WOLVERINE_BSP430_CONFIG_H */
Generated on Sat Nov 15 2014 11:27:13 for BSP430 by
1.8.8