source: firmware/FSC/usb_src/application.h@ 13414

Last change on this file since 13414 was 10237, checked in by neise, 14 years ago
File size: 1.4 KB
Line 
1#ifndef __APPLICATION_H
2#define __APPLICATION_H
3//-----------------------------------------------------------------------------
4
5#include "typedefs.h"
6//-----------------------------------------------------------------------------
7
8#define USART_RX_BUFFER_SIZE 32 // Receive buffer size
9#define USART_TX_BUFFER_SIZE 5 // Receive buffer size. MUST not be larger 255
10
11#define USART_BAUDRATE 9600 // USART baudrate original
12#define USART_USE_TX // Transmitter used?
13#define USART_USE_RX // Receiver used?
14//#define USART_USE_RX_IRQ // RX interrupt used?
15#define USART_USE_UPPERCASE // Convert received chars to uppercase?
16//-----------------------------------------------------------------------------
17
18// SPI DEFINITIONS
19// Port Definitions
20#define SPI_PRT PORTB
21#define SPI_DDR DDRB
22
23// Bit Definitions
24#define SPI_SCLK PB7
25#define SPI_MOSI PB5
26#define SPI_MISO PB6
27
28#define SPI_E_CS PB4
29#define SPI_AD_CS PD3
30#define SPI_M_CS PD4
31#define SPI_A_CS PD5
32
33
34
35
36//-----------------------------------------------------------------------------
37extern volatile U08 app_reset_source;
38//-----------------------------------------------------------------------------
39
40void app_init(void); // Initialize application
41void app_set_watchdog_prescaler(tWDT_PRESCALE wdt_prescale); // Set watchdog prescale
42//-----------------------------------------------------------------------------
43
44#endif
Note: See TracBrowser for help on using the repository browser.