Statistiques
| Branche: | Révision:

root / Version 1.9 / RS232_MUX.X / parameters.h @ master

Historique | Voir | Annoter | Télécharger (2,11 ko)

1
/* Microchip Technology Inc. and its subsidiaries.  You may use this software 
2
 * and any derivatives exclusively with Microchip products. 
3
 * 
4
 * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS".  NO WARRANTIES, WHETHER 
5
 * EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED 
6
 * WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A 
7
 * PARTICULAR PURPOSE, OR ITS INTERACTION WITH MICROCHIP PRODUCTS, COMBINATION 
8
 * WITH ANY OTHER PRODUCTS, OR USE IN ANY APPLICATION. 
9
 *
10
 * IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, 
11
 * INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND 
12
 * WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS 
13
 * BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE.  TO THE 
14
 * FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS 
15
 * IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF 
16
 * ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
17
 *
18
 * MICROCHIP PROVIDES THIS SOFTWARE CONDITIONALLY UPON YOUR ACCEPTANCE OF THESE 
19
 * TERMS. 
20
 */
21

    
22
/* 
23
 * File: parameters.h
24
 * Author: Enzo Niro
25
 * Comments: App. parameters
26
 * Revision history: 1.2
27
 */
28

    
29
// This is a guard condition so that contents of this file are not included
30
// more than once.  
31
#ifndef PARAMETERS_H
32
#define        PARAMETERS_H
33

    
34
#include <xc.h> // include processor files - each processor file is guarded.  
35

    
36

    
37

    
38
//////////////////////////////////
39
//TL16C Setup
40

    
41
//Set XTal used with the IC
42

    
43
//#define TL16C_8MHZ_CLK
44
#define TL16C_16MHZ_CLK
45
//#define TL16C_24MHZ_CLK
46

    
47
//////////////////////////////////
48

    
49
//////////////////////////////////
50
//AVR32 UART PORT Setup
51

    
52
//Choose master port
53

    
54
//#define USE_PORT_1
55
#define USE_PORT_2
56
//#define USE_PORT_3
57
//#define USE_PORT_4
58

    
59

    
60
//////////////////////////////////
61

    
62
#define MAX_VCOM_PORTS                  4
63

    
64
//How much count we need to send buffer ? (Each count made every TIMEBASE_COUNT in ms)
65
#define SERIAL_PORT_TIMEOUT_COUNT       5
66

    
67
#define TIMEBASE_COUNT                  1 //in ms -> Increment counters of ports' timeout
68

    
69
#endif        /* XC_HEADER_TEMPLATE_H */
70