source: firmware/FSC/src/application.h@ 10108

Last change on this file since 10108 was 10102, checked in by neise, 14 years ago
- still testing - AD7719 and ATmega ADC work muxers as well output via USB
File size: 1.7 KB
Line 
1#ifndef __APPLICATION_H
2#define __APPLICATION_H
3//-----------------------------------------------------------------------------
4
5#include "typedefs.h"
6//-----------------------------------------------------------------------------
7
8//#define F_CPU (_MCU_CLOCK_FREQUENCY_)
9#define F_CPU_KHZ (F_CPU / 1000)
10#define F_CPU_MHZ (F_CPU_KHZ / 1000)
11//-----------------------------------------------------------------------------
12
13// Definitions of hardware modules used by application
14// Comment out all unused hardware modules
15
16//#define USE_TWI // I2C module used?
17//#define USE_TIMER2 // Timer2 used?
18//#define USE_TIMER1 // Timer1 used?
19//#define USE_TIMER0 // Timer0 used?
20//#define USE_SPI // SPI used?
21//#define USE_USART // USART0 used?
22//#define USE_ADC // ADC used?
23//#define USE_ACO // Analog Comparator used?
24//#define USE_WATCHDOG // Comment out to disable watchdog timer
25//-----------------------------------------------------------------------------
26
27// USART0 definitions
28#define USART_RX_BUFFER_SIZE 64 // Receive buffer size
29
30#define USART_BAUDRATE 9600 // USART baudrate original
31
32#define USART_USE_TX // Transmitter used?
33#define USART_USE_RX // Receiver used?
34#define USART_USE_RX_IRQ // RX interrupt used?
35#define USART_USE_UPPERCASE // Convert received chars to uppercase?
36//-----------------------------------------------------------------------------
37
38extern volatile U08 app_reset_source;
39//-----------------------------------------------------------------------------
40
41void app_init(void); // Initialize application
42void app_set_watchdog_prescaler(tWDT_PRESCALE wdt_prescale); // Set watchdog prescale
43//-----------------------------------------------------------------------------
44
45#endif
Note: See TracBrowser for help on using the repository browser.