Gast
#4601976
Hallo, CCSV6 Free license und full license -> Launchpad MSP430G2553 Hat jemand einen Tipp, warum DELAY_USEK(200); "wegcompiliert" wird? VG Walter #include <msp430.h> void clocksInit(void); void DELAY_USEK(unsigned int); // /* * main.c */ int main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer clocksInit(); P1DIR |= BIT0 ; // Set P1.0 to output direction for(;;) { P1OUT |= BIT0 ; // Set P1.0 to output direction DELAY_USEK(200); // !!!!!!!!!! ist im disasm. nicht vorhanden und wird auch nicht ausgeführt. P1OUT &= ~BIT0; DELAY_USEK(200); // !!!!!!!!!! breakpoint nicht möglich }; return 0; } void DELAY_USEK(unsigned int ui_lok) { while(ui_lok) { ui_lok--; } } void clocksInit(void) { BCSCTL1 = CALBC1_16MHZ; // Set DCO ~ 16 Mhz DCOCTL = CALDCO_16MHZ; BCSCTL1 |= DIVA_1; // ACLK/(0:1,1:2,2:4,3:8) BCSCTL3 |= LFXT1S_2; // LFXT1 = VLO } // ENDE code