21 lines
459 B
C
21 lines
459 B
C
#include <avr/io.h>
|
||
#include <util/delay.h>
|
||
#include <avr/interrupt.h> // https://www.nongnu.org/avr-libc/user-manual/group__avr__interrupts.html
|
||
|
||
#include "utils.h"
|
||
#include "bitmanip.h"
|
||
#include "timer.h"
|
||
#include "usart.h"
|
||
#include "interrupt.h"
|
||
|
||
|
||
// ask for username and password
|
||
int main() {
|
||
uart_init();
|
||
ask_for_username();
|
||
|
||
SREG |= ENABLE_GLOBAL_INTERRUPT; // 7.3.1 : Status Register, bit 7 : I – Global Interrupt Enable
|
||
|
||
while(1);
|
||
}
|