common.h

Go to the documentation of this file.
00001 /*
00002  * File:        common.h
00003  * Purpose:     Common defines
00004  * Author:      Peter Ivanov
00005  * Modified by:
00006  * Created:     2007-05-19 11:29:32
00007  * Last modify: 2007-10-21 08:08:01 ivanovp {Time-stamp}
00008  * Copyright:   (C) Peter Ivanov, 2007
00009  * Licence:     GPL
00010  */
00011 /**
00012  * \file common.h
00013  * \brief Common defines
00014  * \author Peter Ivanov
00015  */
00016 #ifndef __INCLUDE_COMMON_H
00017 #define __INCLUDE_COMMON_H
00018 
00019 #define FLL_DIV0            0x01            /* FLL+ Divide Px.x/ACLK 0 */
00020 #define FLL_DIV1            0x02            /* FLL+ Divide Px.x/ACLK 1 */
00021 
00022 #define BTN1                (BIT4)
00023 #define BTN2                (BIT5)
00024 #define BTN3                (BIT6)
00025 #define BTN4                (BIT7)
00026 #define BTN_MASK            (BTN1 | BTN2 | BTN3 | BTN4)
00027 // Button aliases
00028 #define BTN_UP              (BTN1)
00029 #define BTN_DOWN            (BTN2)
00030 #define BTN_LEFT            (BTN3)
00031 #define BTN_RIGHT           (BTN4)
00032 #define BTN_QUIT            (BTN3)
00033 #define BTN_OK              (BTN4)
00034 
00035 #define STATUS_LED          (BIT3)            //STATUS_LED - P1.3
00036 #define DALLAS              (P2IN & BIT7)     //P2.7 - DALLAS
00037 
00038 #ifndef bool_t
00039 typedef char bool_t;
00040 #endif
00041 #ifndef TRUE
00042 #define TRUE                1
00043 #endif
00044 #ifndef FALSE
00045 #define FALSE               0
00046 #endif
00047 
00048 void delay (unsigned int a);
00049 void delayX (unsigned int b);
00050 
00051 #endif // __INCLUDE_COMMON_H

Generated on Thu Dec 27 14:21:51 2007 for Sample MSP430-449STK2 project by  doxygen 1.5.1