feat(ex01): done
This commit is contained in:
parent
19a4f34b55
commit
e62f4ea7b1
20 changed files with 1371 additions and 0 deletions
15
ex01/include/interupt.h
Normal file
15
ex01/include/interupt.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef INTERUPT_H
|
||||
#define INTERUPT_H
|
||||
|
||||
#include <avr/io.h>
|
||||
#include "mystd.h"
|
||||
|
||||
static inline void my_sei(void) {
|
||||
SREG |= BV(SREG_I);
|
||||
}
|
||||
|
||||
static inline void my_cli(void) {
|
||||
SREG &= ~BV(SREG_I);
|
||||
}
|
||||
|
||||
#endif /* INTERUPT_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue