init module03

This commit is contained in:
hugo LAMY
2025-03-10 09:41:23 +01:00
parent d83dd6a533
commit 7459a2155c
7 changed files with 163 additions and 0 deletions

20
module03/ex00/main.c Normal file
View File

@@ -0,0 +1,20 @@
#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);
}