4 * This file is part of BeRTOS.
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.
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.
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
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.
29 * Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
30 * Copyright 2000 Bernardo Innocenti <bernie@codewiz.org>
34 * \brief Triface Bootloader.
38 * \author Stefano Fedrigo <aleph@develer.com>
39 * \author Francesco Sacchi <batt@develer.com>
40 * \author Daniele Basile <asterix@develer.com>
47 /// Enable watchdog timer.
48 #define CONFIG_WATCHDOG 0
51 * Serial port number for kdebug console
53 #define CONFIG_KDEBUG_PORT 1
56 * Serial port baud rate for kdebug console
58 #define CONFIG_KDEBUG_BAUDRATE 115200
61 * printf formatter confguration.
64 * \sa PRINTF_NOMODIFIERS
70 #define CONFIG_PRINTF PRINTF_NOMODIFIERS
73 * Bootloader section size.
74 * \note Remember to update this define when changing bootloader size fuses.
76 #define CONFIG_BOOT_SIZE 8192
79 * \name Xmodem parameters
82 #define CONFIG_XMODEM_RECV 1
83 #define CONFIG_XMODEM_SEND 0
84 #define CONFIG_XMODEM_1KCRC 0
88 * Multithreading kernel.
92 #define CONFIG_KERNEL 0
95 * \name Serial driver parameters
98 /** [bytes] Size of the outbound FIFO buffer for port 0. */
99 #define CONFIG_UART0_TXBUFSIZE 32
101 /** [bytes] Size of the inbound FIFO buffer for port 0. */
102 #define CONFIG_UART0_RXBUFSIZE 64
104 /** [bytes] Size of the outbound FIFO buffer for port 1. */
105 #define CONFIG_UART1_TXBUFSIZE 32
107 /** [bytes] Size of the inbound FIFO buffer for port 1. */
108 #define CONFIG_UART1_RXBUFSIZE 64
110 /** [bytes] Size of the outbound FIFO buffer for SPI port (AVR only). */
111 #define CONFIG_SPI_TXBUFSIZE 16
113 /** [bytes] Size of the inbound FIFO buffer for SPI port (AVR only). */
114 #define CONFIG_SPI_RXBUFSIZE 32
116 /** SPI data order (AVR only). */
117 #define CONFIG_SPI_DATA_ORDER SER_MSB_FIRST
119 /** SPI clock division factor (AVR only). */
120 #define CONFIG_SPI_CLOCK_DIV 16
122 /** SPI clock polarity: 0 = normal low, 1 = normal high (AVR only). */
123 #define CONFIG_SPI_CLOCK_POL 0
125 /** SPI clock phase: 0 = sample on first edge, 1 = sample on second clock edge (AVR only). */
126 #define CONFIG_SPI_CLOCK_PHASE 0
128 /** Default transmit timeout (ms). Set to -1 to disable timeout support */
129 #define CONFIG_SER_TXTIMEOUT 250
131 /** Default receive timeout (ms). Set to -1 to disable timeout support */
132 #define CONFIG_SER_RXTIMEOUT 250
134 /** Use RTS/CTS handshake */
135 #define CONFIG_SER_HWHANDSHAKE 0
137 /** Default baud rate (set to 0 to disable) */
138 #define CONFIG_SER_DEFBAUDRATE 0
140 /** Host Port Baud Rate */
141 #define CONFIG_SER_HOSTPORTBAUDRATE 115200
144 #define CONFIG_SER_HOSTPORT 0
146 /** Enable ser_gets() and ser_gets_echo() */
147 #define CONFIG_SER_GETS 1
149 /** Enable second serial port in emulator. */
150 #define CONFIG_EMUL_UART1 0
153 * Transmit always something on serial port 0 TX
154 * to avoid interference when sending burst of data,
155 * using AVR multiprocessor serial mode
157 #define CONFIG_SER_TXFILL 0
159 #define CONFIG_SER_STROBE 0
162 /// Hardware timer selection for drv/timer.c
163 #define CONFIG_TIMER TIMER_ON_OUTPUT_COMPARE0
166 #define CONFIG_TEST 0
167 #endif /* BOOT_CONFIG_H */