Header file

5339 palavras 22 páginas
msp430g2553 /******************************************************** ************ * * Standard register and bit definitions for the Texas Instruments * MSP430 microcontroller. * * This file supports assembler and C development for * MSP430G2553 devices. * * Texas Instruments, Version 1.0 * * Rev. 1.0, Setup * ********************************************************* ***********/ #ifndef __MSP430G2553 #define __MSP430G2553 #ifdef __cplusplus extern "C" { #endif /*---------------------------------------------------------------------------*/ /* PERIPHERAL FILE MAP */ /*---------------------------------------------------------------------------*/ /* External references resolved by a device-specific linker command file */ #define SFR_8BIT(address) extern volatile unsigned char address #define SFR_16BIT(address) extern volatile unsigned int address /******************************************************** **** * STANDARD BITS ********************************************************* ***/ #define BIT0 #define BIT1 (0x0001) (0x0002) Página 1

#define #define #define #define #define #define #define #define #define #define #define #define #define #define

BIT2 BIT3 BIT4 BIT5 BIT6 BIT7 BIT8 BIT9 BITA BITB BITC BITD BITE BITF

msp430g2553 (0x0004) (0x0008) (0x0010) (0x0020) (0x0040) (0x0080) (0x0100) (0x0200) (0x0400) (0x0800) (0x1000) (0x2000) (0x4000) (0x8000)

/******************************************************** **** * STATUS REGISTER BITS ********************************************************* ***/ #define #define #define #define #define #define #define #define #define C Z N V GIE CPUOFF OSCOFF SCG0 SCG1 (0x0001) (0x0002) (0x0004) (0x0100) (0x0008) (0x0010) (0x0020) (0x0040) (0x0080)

/* Low Power Modes coded with Bits 4-7 in SR */ #ifdef __ASM_HEADER__ /* Begin #defines for assembler */ #define LPM0 (CPUOFF) #define LPM1 (SCG0+CPUOFF) #define LPM2 (SCG1+CPUOFF) #define LPM3 (SCG1+SCG0+CPUOFF) #define LPM4 (SCG1+SCG0+OSCOFF+CPUOFF) /* End #defines for

Relacionados

  • Las - format
    4669 palavras | 19 páginas
  • Método Reflex 2d
    1798 palavras | 8 páginas
  • dicas de montagem programação
    1992 palavras | 8 páginas
  • List of abap functions
    4117 palavras | 17 páginas
  • Php cookbook
    40648 palavras | 163 páginas
  • Tcp ip
    1533 palavras | 7 páginas
  • Exercicios de word
    1450 palavras | 6 páginas
  • Asdf
    8263 palavras | 34 páginas
  • Engenharia
    55613 palavras | 223 páginas
  • Sistema de Arquivos HFS
    524 palavras | 3 páginas