Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <avr/io.h>
- #include <util/delay.h>
- #include "MKUART/mkuart.h"
- #include <avr/interrupt.h>
- #define LED_PIN (1<<PA0)
- #define LED_ON PORTA &= ~LED_PIN
- #define LED_OFF PORTA |= LED_PIN
- #define LED_TOG PORTA ^= LED_PIN
- int main(void)
- {
- DDRA |= LED_PIN;
- PORTA =0x00;
- USART_Init( __UBRR );
- sei();
- while(1)
- {
- if(0x0000000){
- LED_ON;
- }else{
- LED_OFF;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement