fixed all exercices
This commit is contained in:
parent
5763bbb065
commit
2f91952d78
49 changed files with 3151 additions and 24 deletions
15
ex05/include/interupt.h
Normal file
15
ex05/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