AVR: Add support for FAIL/SAIL AVR
This commit is contained in:
11
arch/avr/lib.c
Normal file
11
arch/avr/lib.c
Normal 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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user