source: firmware/MSR/src/application.h@ 18066

Last change on this file since 18066 was 10588, checked in by neise, 14 years ago
added MSR Firmware MSR is the little brother of FSC
File size: 1.9 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_MOSI PB5
25#define SPI_MISO PB6
26#define SPI_SCLK PB7
27
28
29#define SPI_E_CS PB3
30#define SPI_AD_CS PB4
31
32
33//-----------------------------------------------------------------------------
34extern volatile U08 app_reset_source;
35//-----------------------------------------------------------------------------
36
37void app_init(void); // Initialize application
38void app_set_watchdog_prescaler(tWDT_PRESCALE wdt_prescale); // Set watchdog prescale
39
40//methods in main ... declared here ... don't ask why ...
41// definition of some functions:
42// these function are implemented in this file, this is not doog coding style.
43// sooner or later, they will be moved into more apropriate files.
44//void set_adc_enable_register();
45//void set_ad7719_enable_register();
46//U08 increase_adc (U08 channel);
47//U08 increase_ad7719 (U08 channel);
48//void check_what_measurement_was_finished() ;
49// end of function definition:
50//-----------------------------------------------------------------------------
51
52
53
54//-----------------------------------------------------------------------------
55
56#endif
Note: See TracBrowser for help on using the repository browser.