AVR: Add support for FAIL/SAIL AVR

This commit is contained in:
Christian Dietrich
2021-08-18 15:50:54 +02:00
parent ed94692a08
commit b60865d8c3
8 changed files with 162 additions and 9 deletions

11
arch/avr/lib.c Normal file
View File

@ -0,0 +1,11 @@
#pragma once
#define ARCH_ASM_CLOBBER_ALL "r0", "r1", "r2"
extern void os_main(void) __attribute__((noinline));
void main() {
os_main();
__asm__ volatile ("sleep");
}