Remove deprecated boot.mk file. Now it's all in triface.mk
[bertos.git] / app / triface / boot / appconfig.h
1 /**
2  * \file
3  * <!--
4  * This file is part of BeRTOS.
5  *
6  * Bertos is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  * As a special exception, you may use this file as part of a free software
21  * library without restriction.  Specifically, if other files instantiate
22  * templates or use macros or inline functions from this file, or you compile
23  * this file and link it with other files to produce an executable, this
24  * file does not by itself cause the resulting executable to be covered by
25  * the GNU General Public License.  This exception does not however
26  * invalidate any other reasons why the executable file might be covered by
27  * the GNU General Public License.
28  *
29  * Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
30  * Copyright 2000 Bernardo Innocenti <bernie@codewiz.org>
31  *
32  * -->
33  *
34  * \brief Triface Bootloader.
35  *
36  * \version $Id$
37  *
38  * \author Stefano Fedrigo <aleph@develer.com>
39  * \author Francesco Sacchi <batt@develer.com>
40  * \author Daniele Basile <asterix@develer.com>
41  */
42
43
44 #ifndef BOOT_CONFIG_H
45 #define BOOT_CONFIG_H
46
47 /// Enable watchdog timer.
48 #define CONFIG_WATCHDOG  0
49
50 /**
51  * Serial port number for kdebug console
52  */
53 #define CONFIG_KDEBUG_PORT 1
54
55 /**
56  * Serial port baud rate for kdebug console
57  */
58 #define CONFIG_KDEBUG_BAUDRATE 115200
59
60 /**
61  * printf formatter confguration.
62  *
63  * \sa PRINTF_DISABLED
64  * \sa PRINTF_NOMODIFIERS
65  * \sa PRINTF_REDUCED
66  * \sa PRINTF_NOFLOAT
67  * \sa PRINTF_FULL
68  */
69 #undef CONFIG_PRINTF
70 #define CONFIG_PRINTF PRINTF_NOMODIFIERS
71
72 /**
73  * Bootloader section size.
74  * \note Remember to update this define when changing bootloader size fuses.
75  */
76 #define CONFIG_BOOT_SIZE 8192
77
78 /**
79  * \name Xmodem parameters
80  * \{
81  */
82 #define CONFIG_XMODEM_RECV  1
83 #define CONFIG_XMODEM_SEND  0
84 #define CONFIG_XMODEM_1KCRC 0
85 /* \} */
86
87 /**
88  * Multithreading kernel.
89  *
90  * \sa config_kern.h
91  */
92 #define CONFIG_KERNEL 0
93
94 /**
95  * \name Serial driver parameters
96  * \{
97  */
98         /** [bytes] Size of the outbound FIFO buffer for port 0. */
99         #define CONFIG_UART0_TXBUFSIZE  32
100
101         /** [bytes] Size of the inbound FIFO buffer for port 0. */
102         #define CONFIG_UART0_RXBUFSIZE  64
103
104         /** [bytes] Size of the outbound FIFO buffer for port 1. */
105         #define CONFIG_UART1_TXBUFSIZE  32
106
107         /** [bytes] Size of the inbound FIFO buffer for port 1. */
108         #define CONFIG_UART1_RXBUFSIZE  64
109
110         /** [bytes] Size of the outbound FIFO buffer for SPI port (AVR only). */
111         #define CONFIG_SPI_TXBUFSIZE    16
112
113         /** [bytes] Size of the inbound FIFO buffer for SPI port (AVR only). */
114         #define CONFIG_SPI_RXBUFSIZE    32
115
116         /** SPI data order (AVR only). */
117         #define CONFIG_SPI_DATA_ORDER   SER_MSB_FIRST
118
119         /** SPI clock division factor (AVR only). */
120         #define CONFIG_SPI_CLOCK_DIV    16
121
122         /** SPI clock polarity: 0 = normal low, 1 = normal high (AVR only). */
123         #define CONFIG_SPI_CLOCK_POL    0
124
125         /** SPI clock phase: 0 = sample on first edge, 1 = sample on second clock edge (AVR only). */
126         #define CONFIG_SPI_CLOCK_PHASE  0
127
128         /** Default transmit timeout (ms). Set to -1 to disable timeout support */
129         #define CONFIG_SER_TXTIMEOUT    250
130
131         /** Default receive timeout (ms). Set to -1 to disable timeout support */
132         #define CONFIG_SER_RXTIMEOUT    250
133
134         /** Use RTS/CTS handshake */
135         #define CONFIG_SER_HWHANDSHAKE   0
136
137         /** Default baud rate (set to 0 to disable) */
138         #define CONFIG_SER_DEFBAUDRATE   0
139
140         /** Host Port Baud Rate */
141         #define CONFIG_SER_HOSTPORTBAUDRATE     115200
142
143         /** Host Port */
144         #define CONFIG_SER_HOSTPORT 0
145
146         /** Enable ser_gets() and ser_gets_echo() */
147         #define CONFIG_SER_GETS          1
148
149         /** Enable second serial port in emulator. */
150         #define CONFIG_EMUL_UART1        0
151
152         /**
153          * Transmit always something on serial port 0 TX
154          * to avoid interference when sending burst of data,
155          * using AVR multiprocessor serial mode
156          */
157         #define CONFIG_SER_TXFILL        0
158
159         #define CONFIG_SER_STROBE        0
160 /*\}*/
161
162 /// Hardware timer selection for drv/timer.c
163 #define CONFIG_TIMER  TIMER_ON_OUTPUT_COMPARE0
164
165 /// Disable tests
166 #define CONFIG_TEST 0
167 #endif /* BOOT_CONFIG_H */