12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
-
- #include <stdlib.h>
- #include <stdint.h>
- #include <avr/io.h>
- #include <util/delay.h>
- #include "uart.h"
- #include "cube.h"
-
- #ifndef F_CPU
- #define F_CPU 16000000L
- #endif
-
- int main(void) {
-
- init();
- uart_init(UART_BAUD_SELECT(19200, 16000000L));
-
-
- while (1) {
- PORTB |= (1 << PB0);
- _delay_ms(1000);
- PORTB &= ~(1 << PB0);
- _delay_ms(1000);
- }
-
- close();
- return 0;
- }
|