1234567891011121314151617181920212223 |
- #include <msp430g2553.h>
-
- #define LED1 BIT6
- #define LED0 BIT0
-
- void delay_cycles(unsigned long long delay) {
- volatile unsigned long long i;
- for (i = 0; i < delay; i++);
- }
-
- int main(void)
- {
-
- P1DIR |= (LED1 | LED0);
- P1OUT &= (LED1 | LED0);
- while (1){
- P1OUT ^= (LED1 | LED0);
- delay_cycles(1000000000000);
- }
- return 0;
- }
|