Prosthetic Device Communication Protocol
MICROCONTROLLER_MASKING_FILE.h File Reference

Contains all needed macros masking port, registers etc. for masking architecture differences.
. More...

#include <avr/io.h>
#include <avr/interrupt.h>

Go to the source code of this file.

Defines

INTERRUPT AVR lib
#define USE_AVR_LIB   1
#define DONT_USE_AVR_LIB   0
#define LIBRARY_MODE   USE_AVR_LIB
#define USE_AT90USB1287   1
#define MICROCONTROLLER   USE_AT90USB1287
#define USE_INT_EEPROM   1
#define USE_EXT_EEPROM   0
#define EEPROM_TYPE   USE_INT_EEPROM
#define INT_ENABLE()   (__asm__ __volatile__ ("sei" ::))
#define INT_DISABLE   ( cli() )

Detailed Description

Contains all needed macros masking port, registers etc. for masking architecture differences.
.

This file consists of macros of registers and addresses of used microcontroller family.
Depending on microcontroller family software aplication designer is asked to adjust
preprocessor directives #define. Before that designer HAS TO check whether proper header file
with register addresses and all needed other stuff was included (look at section Includes).
This file should be included whether by programming application or by a designer by hand.
Such a solution increases portability of implemented libraries for PDCP, because of need
to change data only inside this file and whole interface should work properly.

This file was filled with macros for AT90USB1287 (AVR platform)!

In case of processor change aplication designer has to be aware of the need of refreshing data
in this file. It can be associated with some more serious changes in this code below.

APPLICATION DESIGNER IS STRONGLY RECOMMENDED NOT TO CHANGE ANYTHING ELSE
INSIDE OF OTHER PDCP FILES

Author:
Andrzej Zamojski
NTNU in Trondheim (NORWAY)
TU of Lodz (POLAND)
Date:
13. February. 2012
Version:
1.0

Define Documentation

#define USE_AVR_LIB   1

Decide whether use or not use AVR library

 All Classes Files Functions Enumerations Enumerator Defines