config.h File Reference


Detailed Description

Copyright (c) 2005 Atmel.This module provide services to define config for AT90PWM3 only Describes the system dependant software configuration. This file is included by all source files in order to access to system wide configuration.

Version:
1.0 (CVS revision :
Revision
1.2
)
Date:
Date
2006/06/23 13:16:31
Author:
Author
raubree

Definition in file config.h.

#include "compiler.h"
#include "mcu.h"
#include "inavr.h"

Include dependency graph for config.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ADC_HIGH_SPEED_MODE   1
#define ADC_INTERNAL_VREF   1
 0: External Vref 1: Internal Vref 2: Vref is connected to Vcc
#define ADC_IT   1
 0: No ADC End of Conv IT 1: ADC End of conversion generates an IT
#define ADC_PRESCALER   4
 2, 4, 8, 16, 32, 64, 128 : The input ADC frequency is the system clock frequency divided by the const value
#define ADC_RIGHT_ADJUST_RESULT   0
 0: Result left adjusted 1: Result right adjusted
#define AMP1_CLOCK   1
 0: Internal Clock 1: PSC0 Clock 2: PSC1 Clock 3: PSC2 Clock
#define AMP1_GAIN   20
 5: Gain 5 10: Gain 10 20: Gain 20 40: Gain 40
#define AMP1_INPUT_SHUNT   0
 0: Disable Input Shunt 1: Enable Input Shunt
#define BAUDRATE   38400
#define BOARD_ID   1
#define COMPARATOR0_IT   1
 0: Disable Comparator Interrupt 1: Enable Comparator Interrupt
#define COMPARATOR0_IT_EVENT   0
 Comparator Interrupt on outut => 0: toggle 2: falling edge 3: rising edge.
#define COMPARATOR0_NEGATIVE_INPUT   3
 Comparator negative input selection => 0: vref/6.40 1: vref/3.20 2: vref/2.13 3: vref/1.60 4: ACMPM 5: DAC result.
#define COMPARATOR1_IT   1
 0: Disable Comparator Interrupt 1: Enable Comparator Interrupt
#define COMPARATOR1_IT_EVENT   0
 Comparator Interrupt on outut => 0: toggle 2: falling edge 3: rising edge.
#define COMPARATOR1_NEGATIVE_INPUT   3
 Comparator negative input selection => 0: vref/6.40 1: vref/3.20 2: vref/2.13 3: vref/1.60 4: ACMPM 5: DAC result.
#define COMPARATOR2_IT   1
 0: Disable Comparator Interrupt 1: Enable Comparator Interrupt
#define COMPARATOR2_IT_EVENT   0
 Comparator Interrupt on outut => 0: toggle 2: falling edge 3: rising edge.
#define COMPARATOR2_NEGATIVE_INPUT   3
 Comparator negative input selection => 0: vref/6.40 1: vref/3.20 2: vref/2.13 3: vref/1.60 4: ACMPM 5: DAC result.
#define DAC_INPUT_RIGHT_ADJUST   0
 0: Result left adjusted 1: Result right adjusted
#define DAC_INTERNAL_VREF   1
#define DAC_OUTPUT_DRIVER   1
#define FOSC   16000
#define MCU_REV_B
#define REV_ID   1
#define SOFT_ID   3
#define uart_putchar   putchar
#define USE_ADC
#define USE_AMP1
#define USE_COMP0
#define USE_COMP1
#define USE_COMP2
#define USE_DAC


Define Documentation

#define BAUDRATE   38400

Definition at line 39 of file config.h.

Referenced by uart_init().

#define BOARD_ID   1

Definition at line 27 of file config.h.

Referenced by ushell_task().

#define FOSC   16000

Definition at line 40 of file config.h.

#define MCU_REV_B

Definition at line 32 of file config.h.

#define REV_ID   1

Definition at line 29 of file config.h.

Referenced by ushell_task().

#define SOFT_ID   3

Definition at line 28 of file config.h.

Referenced by ushell_task().

#define uart_putchar   putchar

Definition at line 42 of file config.h.


Generated on Wed Jul 12 16:55:12 2006 for Atmel BLDC Sensorless on ATAVRMC100 by  doxygen 1.4.7