Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // mspgcc version is 4.5.3
- // msp430-gcc -E -mmcu=msp430f235 toggle.c
- # 1 "toggle.c"
- # 1 "<built-in>"
- # 1 "<command-line>"
- # 1 "toggle.c"
- # 1 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430.h" 1 3
- # 24 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430.h" 3
- typedef enum msp430_cpu_e
- {
- MSP430_CPU_MSP430 = 0x0000,
- MSP430_CPU_MSP430X = 0x0002,
- MSP430_CPU_MSP430XV2 = 0x0003,
- MSP430_CPU = 0x0003
- } msp430_cpu_e;
- typedef enum msp430_mpy_e
- {
- MSP430_MPY_NONE = 0x0000,
- MSP430_MPY_TYPE_16 = 0x0010,
- MSP430_MPY_TYPE_32 = 0x0020,
- MSP430_MPY_TYPE_ANY = 0x0030,
- MSP430_MPY_HAS_SE = 0x0001,
- MSP430_MPY_HAS_DW = 0x0002,
- MSP430_MPY_16 = MSP430_MPY_TYPE_16,
- MSP430_MPY_16SE = MSP430_MPY_16 | MSP430_MPY_HAS_SE,
- MSP430_MPY_32 = MSP430_MPY_TYPE_32 | MSP430_MPY_HAS_SE,
- MSP430_MPY_32DW = MSP430_MPY_32 | MSP430_MPY_HAS_DW,
- } msp430_mpy_e;
- # 492 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430.h" 3
- # 1 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 1 3
- # 60 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- # 1 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/iomacros.h" 1 3
- # 61 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 2 3
- # 114 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- # 1 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/in430.h" 1 3
- # 43 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/in430.h" 3
- void __nop (void);
- void __dint (void);
- void __eint (void);
- unsigned int __read_status_register (void);
- void __write_status_register (unsigned int sr);
- void *__read_stack_pointer (void);
- void __write_stack_pointer (void *sp);
- void __bic_status_register (unsigned int bits);
- void __bis_status_register (unsigned int bits);
- void __bic_status_register_on_exit (unsigned int bits);
- void __bis_status_register_on_exit (unsigned int bits);
- void *__builtin_frame_address (int zero);
- void *__builtin_return_address (int zero);
- # 115 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 2 3
- # 137 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern volatile unsigned char IE1 asm("__" "IE1");
- extern volatile unsigned char IFG1 asm("__" "IFG1");
- extern volatile unsigned char IE2 asm("__" "IE2");
- # 161 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern volatile unsigned char IFG2 asm("__" "IFG2");
- # 175 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern volatile unsigned int ADC12CTL0 asm("__" "ADC12CTL0");
- extern volatile unsigned int ADC12CTL1 asm("__" "ADC12CTL1");
- extern volatile unsigned int ADC12IFG asm("__" "ADC12IFG");
- extern volatile unsigned int ADC12IE asm("__" "ADC12IE");
- extern volatile unsigned int ADC12IV asm("__" "ADC12IV");
- # 192 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern volatile unsigned int ADC12MEM0 asm("__" "ADC12MEM0");
- extern volatile unsigned int ADC12MEM1 asm("__" "ADC12MEM1");
- extern volatile unsigned int ADC12MEM2 asm("__" "ADC12MEM2");
- extern volatile unsigned int ADC12MEM3 asm("__" "ADC12MEM3");
- extern volatile unsigned int ADC12MEM4 asm("__" "ADC12MEM4");
- extern volatile unsigned int ADC12MEM5 asm("__" "ADC12MEM5");
- extern volatile unsigned int ADC12MEM6 asm("__" "ADC12MEM6");
- extern volatile unsigned int ADC12MEM7 asm("__" "ADC12MEM7");
- extern volatile unsigned int ADC12MEM8 asm("__" "ADC12MEM8");
- extern volatile unsigned int ADC12MEM9 asm("__" "ADC12MEM9");
- extern volatile unsigned int ADC12MEM10 asm("__" "ADC12MEM10");
- extern volatile unsigned int ADC12MEM11 asm("__" "ADC12MEM11");
- extern volatile unsigned int ADC12MEM12 asm("__" "ADC12MEM12");
- extern volatile unsigned int ADC12MEM13 asm("__" "ADC12MEM13");
- extern volatile unsigned int ADC12MEM14 asm("__" "ADC12MEM14");
- extern volatile unsigned int ADC12MEM15 asm("__" "ADC12MEM15");
- # 231 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern volatile unsigned char ADC12MCTL0 asm("__" "ADC12MCTL0");
- extern volatile unsigned char ADC12MCTL1 asm("__" "ADC12MCTL1");
- extern volatile unsigned char ADC12MCTL2 asm("__" "ADC12MCTL2");
- extern volatile unsigned char ADC12MCTL3 asm("__" "ADC12MCTL3");
- extern volatile unsigned char ADC12MCTL4 asm("__" "ADC12MCTL4");
- extern volatile unsigned char ADC12MCTL5 asm("__" "ADC12MCTL5");
- extern volatile unsigned char ADC12MCTL6 asm("__" "ADC12MCTL6");
- extern volatile unsigned char ADC12MCTL7 asm("__" "ADC12MCTL7");
- extern volatile unsigned char ADC12MCTL8 asm("__" "ADC12MCTL8");
- extern volatile unsigned char ADC12MCTL9 asm("__" "ADC12MCTL9");
- extern volatile unsigned char ADC12MCTL10 asm("__" "ADC12MCTL10");
- extern volatile unsigned char ADC12MCTL11 asm("__" "ADC12MCTL11");
- extern volatile unsigned char ADC12MCTL12 asm("__" "ADC12MCTL12");
- extern volatile unsigned char ADC12MCTL13 asm("__" "ADC12MCTL13");
- extern volatile unsigned char ADC12MCTL14 asm("__" "ADC12MCTL14");
- extern volatile unsigned char ADC12MCTL15 asm("__" "ADC12MCTL15");
- # 434 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern volatile unsigned char DCOCTL asm("__" "DCOCTL");
- extern volatile unsigned char BCSCTL1 asm("__" "BCSCTL1");
- extern volatile unsigned char BCSCTL2 asm("__" "BCSCTL2");
- extern volatile unsigned char BCSCTL3 asm("__" "BCSCTL3");
- # 519 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern volatile unsigned char CACTL1 asm("__" "CACTL1");
- extern volatile unsigned char CACTL2 asm("__" "CACTL2");
- extern volatile unsigned char CAPD asm("__" "CAPD");
- # 563 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern volatile unsigned int FCTL1 asm("__" "FCTL1");
- extern volatile unsigned int FCTL2 asm("__" "FCTL2");
- extern volatile unsigned int FCTL3 asm("__" "FCTL3");
- extern volatile unsigned int FCTL4 asm("__" "FCTL4");
- # 621 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern volatile unsigned int MPY asm("__" "MPY");
- extern volatile unsigned int MPYS asm("__" "MPYS");
- extern volatile unsigned int MAC asm("__" "MAC");
- extern volatile unsigned int MACS asm("__" "MACS");
- extern volatile unsigned int OP2 asm("__" "OP2");
- extern volatile unsigned int RESLO asm("__" "RESLO");
- extern volatile unsigned int RESHI asm("__" "RESHI");
- extern const volatile unsigned int SUMEXT asm("__" "SUMEXT");
- # 644 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern const volatile unsigned char P1IN asm("__" "P1IN");
- extern volatile unsigned char P1OUT asm("__" "P1OUT");
- extern volatile unsigned char P1DIR asm("__" "P1DIR");
- extern volatile unsigned char P1IFG asm("__" "P1IFG");
- extern volatile unsigned char P1IES asm("__" "P1IES");
- extern volatile unsigned char P1IE asm("__" "P1IE");
- extern volatile unsigned char P1SEL asm("__" "P1SEL");
- extern volatile unsigned char P1REN asm("__" "P1REN");
- extern const volatile unsigned char P2IN asm("__" "P2IN");
- extern volatile unsigned char P2OUT asm("__" "P2OUT");
- extern volatile unsigned char P2DIR asm("__" "P2DIR");
- extern volatile unsigned char P2IFG asm("__" "P2IFG");
- extern volatile unsigned char P2IES asm("__" "P2IES");
- extern volatile unsigned char P2IE asm("__" "P2IE");
- extern volatile unsigned char P2SEL asm("__" "P2SEL");
- extern volatile unsigned char P2REN asm("__" "P2REN");
- # 684 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern const volatile unsigned char P3IN asm("__" "P3IN");
- extern volatile unsigned char P3OUT asm("__" "P3OUT");
- extern volatile unsigned char P3DIR asm("__" "P3DIR");
- extern volatile unsigned char P3SEL asm("__" "P3SEL");
- extern volatile unsigned char P3REN asm("__" "P3REN");
- extern const volatile unsigned char P4IN asm("__" "P4IN");
- extern volatile unsigned char P4OUT asm("__" "P4OUT");
- extern volatile unsigned char P4DIR asm("__" "P4DIR");
- extern volatile unsigned char P4SEL asm("__" "P4SEL");
- extern volatile unsigned char P4REN asm("__" "P4REN");
- # 712 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern const volatile unsigned char P5IN asm("__" "P5IN");
- extern volatile unsigned char P5OUT asm("__" "P5OUT");
- extern volatile unsigned char P5DIR asm("__" "P5DIR");
- extern volatile unsigned char P5SEL asm("__" "P5SEL");
- extern volatile unsigned char P5REN asm("__" "P5REN");
- extern const volatile unsigned char P6IN asm("__" "P6IN");
- extern volatile unsigned char P6OUT asm("__" "P6OUT");
- extern volatile unsigned char P6DIR asm("__" "P6DIR");
- extern volatile unsigned char P6SEL asm("__" "P6SEL");
- extern volatile unsigned char P6REN asm("__" "P6REN");
- extern volatile unsigned char SVSCTL asm("__" "SVSCTL");
- # 759 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern const volatile unsigned int TAIV asm("__" "TAIV");
- extern volatile unsigned int TACTL asm("__" "TACTL");
- extern volatile unsigned int TACCTL0 asm("__" "TACCTL0");
- extern volatile unsigned int TACCTL1 asm("__" "TACCTL1");
- extern volatile unsigned int TACCTL2 asm("__" "TACCTL2");
- extern volatile unsigned int TAR asm("__" "TAR");
- extern volatile unsigned int TACCR0 asm("__" "TACCR0");
- extern volatile unsigned int TACCR1 asm("__" "TACCR1");
- extern volatile unsigned int TACCR2 asm("__" "TACCR2");
- # 861 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern const volatile unsigned int TBIV asm("__" "TBIV");
- extern volatile unsigned int TBCTL asm("__" "TBCTL");
- extern volatile unsigned int TBCCTL0 asm("__" "TBCCTL0");
- extern volatile unsigned int TBCCTL1 asm("__" "TBCCTL1");
- extern volatile unsigned int TBCCTL2 asm("__" "TBCCTL2");
- extern volatile unsigned int TBR asm("__" "TBR");
- extern volatile unsigned int TBCCR0 asm("__" "TBCCR0");
- extern volatile unsigned int TBCCR1 asm("__" "TBCCR1");
- extern volatile unsigned int TBCCR2 asm("__" "TBCCR2");
- # 943 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern volatile unsigned char UCA0CTL0 asm("__" "UCA0CTL0");
- extern volatile unsigned char UCA0CTL1 asm("__" "UCA0CTL1");
- extern volatile unsigned char UCA0BR0 asm("__" "UCA0BR0");
- extern volatile unsigned char UCA0BR1 asm("__" "UCA0BR1");
- extern volatile unsigned char UCA0MCTL asm("__" "UCA0MCTL");
- extern volatile unsigned char UCA0STAT asm("__" "UCA0STAT");
- extern const volatile unsigned char UCA0RXBUF asm("__" "UCA0RXBUF");
- extern volatile unsigned char UCA0TXBUF asm("__" "UCA0TXBUF");
- extern volatile unsigned char UCA0ABCTL asm("__" "UCA0ABCTL");
- extern volatile unsigned char UCA0IRTCTL asm("__" "UCA0IRTCTL");
- extern volatile unsigned char UCA0IRRCTL asm("__" "UCA0IRRCTL");
- extern volatile unsigned char UCB0CTL0 asm("__" "UCB0CTL0");
- extern volatile unsigned char UCB0CTL1 asm("__" "UCB0CTL1");
- extern volatile unsigned char UCB0BR0 asm("__" "UCB0BR0");
- extern volatile unsigned char UCB0BR1 asm("__" "UCB0BR1");
- extern volatile unsigned char UCB0I2CIE asm("__" "UCB0I2CIE");
- extern volatile unsigned char UCB0STAT asm("__" "UCB0STAT");
- extern const volatile unsigned char UCB0RXBUF asm("__" "UCB0RXBUF");
- extern volatile unsigned char UCB0TXBUF asm("__" "UCB0TXBUF");
- extern volatile unsigned int UCB0I2COA asm("__" "UCB0I2COA");
- extern volatile unsigned int UCB0I2CSA asm("__" "UCB0I2CSA");
- # 1160 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern volatile unsigned int WDTCTL asm("__" "WDTCTL");
- # 1212 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern const volatile unsigned int TLV_CHECKSUM asm("__" "TLV_CHECKSUM");
- extern const volatile unsigned char TLV_DCO_30_TAG asm("__" "TLV_DCO_30_TAG");
- extern const volatile unsigned char TLV_DCO_30_LEN asm("__" "TLV_DCO_30_LEN");
- extern const volatile unsigned char TLV_ADC12_1_TAG asm("__" "TLV_ADC12_1_TAG");
- extern const volatile unsigned char TLV_ADC12_1_LEN asm("__" "TLV_ADC12_1_LEN");
- # 1249 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430f235.h" 3
- extern const volatile unsigned char CALDCO_16MHZ asm("__" "CALDCO_16MHZ");
- extern const volatile unsigned char CALBC1_16MHZ asm("__" "CALBC1_16MHZ");
- extern const volatile unsigned char CALDCO_12MHZ asm("__" "CALDCO_12MHZ");
- extern const volatile unsigned char CALBC1_12MHZ asm("__" "CALBC1_12MHZ");
- extern const volatile unsigned char CALDCO_8MHZ asm("__" "CALDCO_8MHZ");
- extern const volatile unsigned char CALBC1_8MHZ asm("__" "CALBC1_8MHZ");
- extern const volatile unsigned char CALDCO_1MHZ asm("__" "CALDCO_1MHZ");
- extern const volatile unsigned char CALBC1_1MHZ asm("__" "CALBC1_1MHZ");
- # 493 "/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/msp430.h" 2 3
- # 2 "toggle.c" 2
- extern const volatile unsigned int BSLSKEY asm("__" "BSLSKEY");
- BSLSKEY = 0;
- void main(void)
- {
- WDTCTL = (0x5A00) + (0x0080);
- P6DIR |= 0x01;
- P6SEL &= ~0x01;
- for (;;)
- {
- volatile unsigned int i;
- P6OUT ^= 0x01;
- i = 50000;
- do (i--);
- while (i != 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement