msp430.h File Reference

Description : definig the I/Os. More...

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

Go to the source code of this file.

Defines

#define __SR_DCO_OFF   __SR_SCG1
#define __SR_SMCLK_OFF   __SR_SCG0
#define CCCCA   4
#define CCCS   0
#define CCFIFO   2
#define CCFIFOP   3
#define CCRESET   1
#define CCS0   2
#define CCSCLK   3
#define CCSFD   6
#define CCSI   1
#define CCVEN   0
#define CSN_OFF   P5OUT&=(~BIT0)
#define CSN_ON   P5OUT|=BIT0
#define ETAT_B1_BAS   (P1IN&BIT4 == (~BIT4))
#define ETAT_B2_BAS   (P1IN&BIT5 == (~BIT5))
#define ETAT_B3_BAS   (P1IN&BIT6 == (~BIT6))
#define ETAT_B4_BAS   (P1IN&BIT7 == (~BIT7))
#define ETAT_BOUTON1   (P1IN&BIT4)
#define ETAT_BOUTON2   (P1IN&BIT5)
#define ETAT_BOUTON3   (P1IN&BIT6)
#define ETAT_BOUTON4   (P1IN&BIT7)
#define FALSE   0
#define FIFO   ((P2IN&BIT2)==BIT2)
#define FIFOP   ((P2IN&BIT3)==BIT3)
#define LED1   0
#define LED2   1
#define LED3   2
#define LED4   3
#define LED_PATH0_OFF   P6OUT&=(~BIT0)
#define LED_PATH0_ON   P6OUT|=BIT0
#define LED_PATH0_TOG   P6OUT^=BIT0
#define LED_PATH10_OFF   P4OUT&=(~BIT2)
#define LED_PATH10_ON   P4OUT|=BIT2
#define LED_PATH10_TOG   P4OUT^=BIT2
#define LED_PATH11_OFF   P4OUT&=(~BIT3)
#define LED_PATH11_ON   P4OUT|=BIT3
#define LED_PATH11_TOG   P4OUT^=BIT3
#define LED_PATH12_OFF   P4OUT&=(~BIT4)
#define LED_PATH12_ON   P4OUT|=BIT4
#define LED_PATH12_TOG   P4OUT^=BIT4
#define LED_PATH13_OFF   P4OUT&=(~BIT5)
#define LED_PATH13_ON   P4OUT|=BIT5
#define LED_PATH13_TOG   P4OUT^=BIT5
#define LED_PATH14_OFF   P4OUT&=(~BIT6)
#define LED_PATH14_ON   P4OUT|=BIT6
#define LED_PATH14_TOG   P4OUT^=BIT6
#define LED_PATH15_OFF   P4OUT&=(~BIT7)
#define LED_PATH15_ON   P4OUT|=BIT7
#define LED_PATH15_TOG   P4OUT^=BIT7
#define LED_PATH1_OFF   P6OUT&=(~BIT1)
#define LED_PATH1_ON   P6OUT|=BIT1
#define LED_PATH1_TOG   P6OUT^=BIT1
#define LED_PATH2_OFF   P6OUT&=(~BIT2)
#define LED_PATH2_ON   P6OUT|=BIT2
#define LED_PATH2_TOG   P6OUT^=BIT2
#define LED_PATH3_OFF   P6OUT&=(~BIT3)
#define LED_PATH3_ON   P6OUT|=BIT3
#define LED_PATH3_TOG   P6OUT^=BIT3
#define LED_PATH4_OFF   P6OUT&=(~BIT4)
#define LED_PATH4_ON   P6OUT|=BIT4
#define LED_PATH4_TOG   P6OUT^=BIT4
#define LED_PATH5_OFF   P6OUT&=(~BIT5)
#define LED_PATH5_ON   P6OUT|=BIT5
#define LED_PATH5_TOG   P6OUT^=BIT5
#define LED_PATH6_OFF   P6OUT&=(~BIT6)
#define LED_PATH6_ON   P6OUT|=BIT6
#define LED_PATH6_TOG   P6OUT^=BIT6
#define LED_PATH7_OFF   P6OUT&=(~BIT7)
#define LED_PATH7_ON   P6OUT|=BIT7
#define LED_PATH7_TOG   P6OUT^=BIT7
#define LED_PATH8_OFF   P4OUT&=(~BIT0)
#define LED_PATH8_ON   P4OUT|=BIT0
#define LED_PATH8_TOG   P4OUT^=BIT0
#define LED_PATH9_OFF   P4OUT&=(~BIT1)
#define LED_PATH9_ON   P4OUT|=BIT1
#define LED_PATH9_TOG   P4OUT^=BIT1
#define LED_TEST1_OFF   P1OUT&=(~BIT0)
#define LED_TEST1_ON   P1OUT|=BIT0
#define LED_TEST1_TOG   P1OUT^=BIT0
#define LED_TEST2_OFF   P1OUT&=(~BIT1)
#define LED_TEST2_ON   P1OUT|=BIT1
#define LED_TEST2_TOG   P1OUT^=BIT1
#define LED_TEST3_OFF   P1OUT&=(~BIT2)
#define LED_TEST3_ON   P1OUT|=BIT2
#define LED_TEST3_TOG   P1OUT^=BIT2
#define LED_TEST4_OFF   P1OUT&=(~BIT3)
#define LED_TEST4_ON   P1OUT|=BIT3
#define LED_TEST4_TOG   P1OUT^=BIT3
#define P4_OFF   P4OUT&=(~BIT0)
#define P4_ON   P4OUT|=BIT0
#define PATH0   0
#define PATH1   1
#define PATH10   2
#define PATH11   3
#define PATH12   4
#define PATH13   5
#define PATH14   6
#define PATH15   7
#define PATH2   2
#define PATH3   3
#define PATH4   4
#define PATH5   5
#define PATH6   6
#define PATH7   7
#define PATH8   0
#define PATH9   1
#define PONOFF   0
#define PONOFF_OFF   P3OUT&=(~BIT0)
#define PONOFF_ON   P3OUT|=BIT0
#define RXD0   5
#define SCLK_H   P5OUT|=BIT3
#define SCLK_L   P5OUT&=(~BIT3)
#define SET_RESET_ACTIVE()   ( P2OUT &= ~BM(CCRESET) )
#define SET_RESET_INACTIVE()   ( P2OUT |= BM(CCRESET) )
#define SET_VREG_ACTIVE()   ( P2OUT |= BM(CCVEN) )
#define SET_VREG_INACTIVE()   ( P2OUT &= ~BM(CCVEN) )
#define SI_H   P5OUT|=BIT1
#define SI_L   P5OUT&=(~BIT1)
#define SO   ((P5IN&BIT2)==BIT2)
#define SPI_DISABLE()   ( CSN_ON )
#define SPI_ENABLE()   ( CSN_OFF )
#define STATE_CCCCA_DISABLE   (P2IN&BIT4==(~BIT4))
#define STATE_CCCCA_ENABLE   (P2IN&BIT4==(BIT4))
#define SW1   4
#define SW2   5
#define SW3   6
#define SW4   7
#define TIME_CONSTANT   1000
#define TRUE   1
#define TXD0   4
#define WDT_CLEAR   WDTCTL = WDTPW+WDTCNTCL+WDTSSEL+WDTIS1;
#define WDT_DISABLE   WDTCTL = WDTPW|WDTHOLD;


Detailed Description

Description : definig the I/Os.

Definition in file msp430.h.


Define Documentation

#define __SR_DCO_OFF   __SR_SCG1

Definition at line 32 of file msp430.h.

#define __SR_SMCLK_OFF   __SR_SCG0

Definition at line 31 of file msp430.h.

#define CCCCA   4

Definition at line 58 of file msp430.h.

#define CCCS   0

Definition at line 81 of file msp430.h.

#define CCFIFO   2

Definition at line 56 of file msp430.h.

#define CCFIFOP   3

Definition at line 57 of file msp430.h.

#define CCRESET   1

Definition at line 55 of file msp430.h.

#define CCS0   2

Definition at line 83 of file msp430.h.

#define CCSCLK   3

Definition at line 84 of file msp430.h.

#define CCSFD   6

Definition at line 59 of file msp430.h.

#define CCSI   1

Definition at line 82 of file msp430.h.

#define CCVEN   0

Definition at line 54 of file msp430.h.

#define CSN_OFF   P5OUT&=(~BIT0)

Definition at line 198 of file msp430.h.

#define CSN_ON   P5OUT|=BIT0

Definition at line 197 of file msp430.h.

#define ETAT_B1_BAS   (P1IN&BIT4 == (~BIT4))

Definition at line 186 of file msp430.h.

#define ETAT_B2_BAS   (P1IN&BIT5 == (~BIT5))

Definition at line 189 of file msp430.h.

#define ETAT_B3_BAS   (P1IN&BIT6 == (~BIT6))

Definition at line 192 of file msp430.h.

#define ETAT_B4_BAS   (P1IN&BIT7 == (~BIT7))

Definition at line 195 of file msp430.h.

#define ETAT_BOUTON1   (P1IN&BIT4)

Definition at line 185 of file msp430.h.

Referenced by main(), and PT_THREAD().

#define ETAT_BOUTON2   (P1IN&BIT5)

Definition at line 188 of file msp430.h.

Referenced by main(), and PT_THREAD().

#define ETAT_BOUTON3   (P1IN&BIT6)

Definition at line 191 of file msp430.h.

Referenced by main(), and PT_THREAD().

#define ETAT_BOUTON4   (P1IN&BIT7)

Definition at line 194 of file msp430.h.

Referenced by main(), and PT_THREAD().

#define FALSE   0

Definition at line 27 of file msp430.h.

#define FIFO   ((P2IN&BIT2)==BIT2)

Definition at line 208 of file msp430.h.

Referenced by RecepFrame().

#define FIFOP   ((P2IN&BIT3)==BIT3)

Definition at line 207 of file msp430.h.

Referenced by RecepFrame().

#define LED1   0

Definition at line 42 of file msp430.h.

#define LED2   1

Definition at line 43 of file msp430.h.

#define LED3   2

Definition at line 44 of file msp430.h.

#define LED4   3

Definition at line 45 of file msp430.h.

#define LED_PATH0_OFF   P6OUT&=(~BIT0)

Definition at line 118 of file msp430.h.

#define LED_PATH0_ON   P6OUT|=BIT0

Definition at line 117 of file msp430.h.

#define LED_PATH0_TOG   P6OUT^=BIT0

Definition at line 119 of file msp430.h.

#define LED_PATH10_OFF   P4OUT&=(~BIT2)

Definition at line 158 of file msp430.h.

#define LED_PATH10_ON   P4OUT|=BIT2

Definition at line 157 of file msp430.h.

#define LED_PATH10_TOG   P4OUT^=BIT2

Definition at line 159 of file msp430.h.

#define LED_PATH11_OFF   P4OUT&=(~BIT3)

Definition at line 162 of file msp430.h.

#define LED_PATH11_ON   P4OUT|=BIT3

Definition at line 161 of file msp430.h.

#define LED_PATH11_TOG   P4OUT^=BIT3

Definition at line 163 of file msp430.h.

#define LED_PATH12_OFF   P4OUT&=(~BIT4)

Definition at line 166 of file msp430.h.

#define LED_PATH12_ON   P4OUT|=BIT4

Definition at line 165 of file msp430.h.

#define LED_PATH12_TOG   P4OUT^=BIT4

Definition at line 167 of file msp430.h.

#define LED_PATH13_OFF   P4OUT&=(~BIT5)

Definition at line 170 of file msp430.h.

#define LED_PATH13_ON   P4OUT|=BIT5

Definition at line 169 of file msp430.h.

#define LED_PATH13_TOG   P4OUT^=BIT5

Definition at line 171 of file msp430.h.

#define LED_PATH14_OFF   P4OUT&=(~BIT6)

Definition at line 174 of file msp430.h.

#define LED_PATH14_ON   P4OUT|=BIT6

Definition at line 173 of file msp430.h.

#define LED_PATH14_TOG   P4OUT^=BIT6

Definition at line 175 of file msp430.h.

#define LED_PATH15_OFF   P4OUT&=(~BIT7)

Definition at line 178 of file msp430.h.

#define LED_PATH15_ON   P4OUT|=BIT7

Definition at line 177 of file msp430.h.

#define LED_PATH15_TOG   P4OUT^=BIT7

Definition at line 179 of file msp430.h.

#define LED_PATH1_OFF   P6OUT&=(~BIT1)

Definition at line 122 of file msp430.h.

#define LED_PATH1_ON   P6OUT|=BIT1

Definition at line 121 of file msp430.h.

#define LED_PATH1_TOG   P6OUT^=BIT1

Definition at line 123 of file msp430.h.

#define LED_PATH2_OFF   P6OUT&=(~BIT2)

Definition at line 126 of file msp430.h.

#define LED_PATH2_ON   P6OUT|=BIT2

Definition at line 125 of file msp430.h.

#define LED_PATH2_TOG   P6OUT^=BIT2

Definition at line 127 of file msp430.h.

#define LED_PATH3_OFF   P6OUT&=(~BIT3)

Definition at line 130 of file msp430.h.

#define LED_PATH3_ON   P6OUT|=BIT3

Definition at line 129 of file msp430.h.

#define LED_PATH3_TOG   P6OUT^=BIT3

Definition at line 131 of file msp430.h.

#define LED_PATH4_OFF   P6OUT&=(~BIT4)

Definition at line 134 of file msp430.h.

#define LED_PATH4_ON   P6OUT|=BIT4

Definition at line 133 of file msp430.h.

#define LED_PATH4_TOG   P6OUT^=BIT4

Definition at line 135 of file msp430.h.

#define LED_PATH5_OFF   P6OUT&=(~BIT5)

Definition at line 138 of file msp430.h.

#define LED_PATH5_ON   P6OUT|=BIT5

Definition at line 137 of file msp430.h.

#define LED_PATH5_TOG   P6OUT^=BIT5

Definition at line 139 of file msp430.h.

#define LED_PATH6_OFF   P6OUT&=(~BIT6)

Definition at line 142 of file msp430.h.

#define LED_PATH6_ON   P6OUT|=BIT6

Definition at line 141 of file msp430.h.

#define LED_PATH6_TOG   P6OUT^=BIT6

Definition at line 143 of file msp430.h.

#define LED_PATH7_OFF   P6OUT&=(~BIT7)

Definition at line 146 of file msp430.h.

#define LED_PATH7_ON   P6OUT|=BIT7

Definition at line 145 of file msp430.h.

#define LED_PATH7_TOG   P6OUT^=BIT7

Definition at line 147 of file msp430.h.

#define LED_PATH8_OFF   P4OUT&=(~BIT0)

Definition at line 150 of file msp430.h.

#define LED_PATH8_ON   P4OUT|=BIT0

Definition at line 149 of file msp430.h.

#define LED_PATH8_TOG   P4OUT^=BIT0

Definition at line 151 of file msp430.h.

#define LED_PATH9_OFF   P4OUT&=(~BIT1)

Definition at line 154 of file msp430.h.

#define LED_PATH9_ON   P4OUT|=BIT1

Definition at line 153 of file msp430.h.

#define LED_PATH9_TOG   P4OUT^=BIT1

Definition at line 155 of file msp430.h.

#define LED_TEST1_OFF   P1OUT&=(~BIT0)

Definition at line 101 of file msp430.h.

Referenced by main(), and RecepFrame().

#define LED_TEST1_ON   P1OUT|=BIT0

Definition at line 100 of file msp430.h.

Referenced by init(), main(), and RecepFrame().

#define LED_TEST1_TOG   P1OUT^=BIT0

Definition at line 102 of file msp430.h.

Referenced by main().

#define LED_TEST2_OFF   P1OUT&=(~BIT1)

Definition at line 105 of file msp430.h.

Referenced by fifo_interrupt(), main(), and sendFrame().

#define LED_TEST2_ON   P1OUT|=BIT1

Definition at line 104 of file msp430.h.

Referenced by fifo_interrupt(), main(), and sendFrame().

#define LED_TEST2_TOG   P1OUT^=BIT1

Definition at line 106 of file msp430.h.

#define LED_TEST3_OFF   P1OUT&=(~BIT2)

Definition at line 109 of file msp430.h.

Referenced by fifo_interrupt().

#define LED_TEST3_ON   P1OUT|=BIT2

Definition at line 108 of file msp430.h.

Referenced by fifo_interrupt(), and main().

#define LED_TEST3_TOG   P1OUT^=BIT2

Definition at line 110 of file msp430.h.

#define LED_TEST4_OFF   P1OUT&=(~BIT3)

Definition at line 113 of file msp430.h.

#define LED_TEST4_ON   P1OUT|=BIT3

Definition at line 112 of file msp430.h.

#define LED_TEST4_TOG   P1OUT^=BIT3

Definition at line 114 of file msp430.h.

Referenced by main().

#define P4_OFF   P4OUT&=(~BIT0)

Definition at line 231 of file msp430.h.

#define P4_ON   P4OUT|=BIT0

Definition at line 230 of file msp430.h.

#define PATH0   0

Definition at line 89 of file msp430.h.

#define PATH1   1

Definition at line 90 of file msp430.h.

#define PATH10   2

Definition at line 71 of file msp430.h.

#define PATH11   3

Definition at line 72 of file msp430.h.

#define PATH12   4

Definition at line 73 of file msp430.h.

#define PATH13   5

Definition at line 74 of file msp430.h.

#define PATH14   6

Definition at line 75 of file msp430.h.

#define PATH15   7

Definition at line 76 of file msp430.h.

#define PATH2   2

Definition at line 91 of file msp430.h.

#define PATH3   3

Definition at line 92 of file msp430.h.

#define PATH4   4

Definition at line 93 of file msp430.h.

#define PATH5   5

Definition at line 94 of file msp430.h.

#define PATH6   6

Definition at line 95 of file msp430.h.

#define PATH7   7

Definition at line 96 of file msp430.h.

#define PATH8   0

Definition at line 69 of file msp430.h.

#define PATH9   1

Definition at line 70 of file msp430.h.

#define PONOFF   0

Definition at line 62 of file msp430.h.

#define PONOFF_OFF   P3OUT&=(~BIT0)

Definition at line 212 of file msp430.h.

#define PONOFF_ON   P3OUT|=BIT0

Definition at line 211 of file msp430.h.

#define RXD0   5

Definition at line 64 of file msp430.h.

#define SCLK_H   P5OUT|=BIT3

Definition at line 202 of file msp430.h.

#define SCLK_L   P5OUT&=(~BIT3)

Definition at line 203 of file msp430.h.

 
#define SET_RESET_ACTIVE (  )     ( P2OUT &= ~BM(CCRESET) )

Definition at line 219 of file msp430.h.

Referenced by setup_cc2420().

 
#define SET_RESET_INACTIVE (  )     ( P2OUT |= BM(CCRESET) )

Definition at line 218 of file msp430.h.

Referenced by setup_cc2420().

 
#define SET_VREG_ACTIVE (  )     ( P2OUT |= BM(CCVEN) )

Definition at line 222 of file msp430.h.

Referenced by cc2420_Init().

 
#define SET_VREG_INACTIVE (  )     ( P2OUT &= ~BM(CCVEN) )

Definition at line 223 of file msp430.h.

#define SI_H   P5OUT|=BIT1

Definition at line 204 of file msp430.h.

#define SI_L   P5OUT&=(~BIT1)

Definition at line 205 of file msp430.h.

#define SO   ((P5IN&BIT2)==BIT2)

Definition at line 206 of file msp430.h.

 
#define SPI_DISABLE (  )     ( CSN_ON )

Definition at line 215 of file msp430.h.

 
#define SPI_ENABLE (  )     ( CSN_OFF )

Definition at line 214 of file msp430.h.

#define STATE_CCCCA_DISABLE   (P2IN&BIT4==(~BIT4))

Definition at line 183 of file msp430.h.

#define STATE_CCCCA_ENABLE   (P2IN&BIT4==(BIT4))

Definition at line 182 of file msp430.h.

#define SW1   4

Definition at line 46 of file msp430.h.

#define SW2   5

Definition at line 47 of file msp430.h.

#define SW3   6

Definition at line 48 of file msp430.h.

#define SW4   7

Definition at line 49 of file msp430.h.

#define TIME_CONSTANT   1000

Definition at line 29 of file msp430.h.

Referenced by init(), and setup_cc2420().

#define TRUE   1

Definition at line 28 of file msp430.h.

#define TXD0   4

Definition at line 63 of file msp430.h.

#define WDT_CLEAR   WDTCTL = WDTPW+WDTCNTCL+WDTSSEL+WDTIS1;

Definition at line 226 of file msp430.h.

#define WDT_DISABLE   WDTCTL = WDTPW|WDTHOLD;

Definition at line 227 of file msp430.h.


Generated on Wed Jun 3 12:05:56 2009 for PowWow v1.0 by  doxygen 1.5.6