LEDComm  1.0
ledcommconf.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013, 2014 Kevin L. Pauba
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without modification,
6  * are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  * this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright notice,
11  * this list of conditions and the following disclaimer in the documentation
12  * and/or other materials provided with the distribution.
13  * 3. The name of the author may not be used to endorse or promote products
14  * derived from this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19  * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
21  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
25  * OF SUCH DAMAGE.
26  *
27  * This file is part of the LEDComm Driver for ChibiOS/RT.
28  *
29  * Author: Kevin L. Pauba <klpauba@gmail.com>
30  *
31  */
32 
33 /**
34  * @file ledcommconf.h
35  * @brief LEDComm configuration header.
36  * @details LEDComm configuration file, this file allows to enable or disable the
37  * various settings for the LEDComm device drivers from your application. You may also use
38  * this file in order to override the device drivers default settings.
39  *
40  * @defgroup LEDComm_Config LEDComm Configuration
41  * @brief Configuration settings for the LEDComm Driver
42  * @{
43  */
44 #ifndef _LEDCOMMCONF_H_
45 #define _LEDCOMMCONF_H_
46 
47 /**
48  * @brief Enable LED communication on LCOM1 device if TRUE.
49  */
50 #define LEDCOMM_USE_LCOM1 FALSE
51 
52 /**
53  * @brief Enable LED communication on LCOM2 device if TRUE.
54  */
55 #define LEDCOMM_USE_LCOM2 TRUE
56 
57 /**
58  * @brief Use GPT1 for the LEDComm Driver
59  * @note Set only one of <TT>LEDCOMM_USE_GPT1</TT> or <TT>LEDCOMM_USE_GPT2</TT> to TRUE.
60  */
61 #define LEDCOMM_USE_GPTD1 FALSE
62 /**
63  * @brief Use GPT2 for the LEDComm Driver
64  * @note Set only one of <TT>LEDCOMM_USE_GPT1</TT> or <TT>LEDCOMM_USE_GPT2</TT> to TRUE.
65  */
66 #define LEDCOMM_USE_GPTD2 TRUE
67 
68 /**
69  * @brief Use EXT1 for the LEDComm Driver.
70  * @note Set only one of <TT>LEDCOMM_USE_EXTD1</TT> or <TT>LEDCOMM_USE_EXTD2</TT> to TRUE.
71  */
72 #define LEDCOMM_USE_EXTD1 TRUE
73 
74 /**
75  * @brief Use EXT2 for the LEDComm Driver.
76  * @note Set only one of <TT>LEDCOMM_USE_EXTD1</TT> or <TT>LEDCOMM_USE_EXTD2</TT> to TRUE.
77  */
78 #define LEDCOMM_USE_EXTD2 FALSE
79 
80 /**
81  * @brief Use a thread to process the driver logic.
82  * @details If set to TRUE, the LEDComm Driver will spend the minimum
83  * time in the ISR and perform most of the processing in a
84  * separate thread. If set to FALSE, all of the processing
85  * is done in the ISR.
86  */
87 #define LEDCOMM_THREADED FALSE
88 
89 /**
90  * @brief The size of the input and output queues.
91  */
92 #define LEDCOMM_BUFFERS_SIZE 16
93 
94 #endif /* _LEDCOMMCONF_H_ */
95 
96 /** @} */