From 55eb5fb5468cf75df10de6e980030890190677ef Mon Sep 17 00:00:00 2001 From: Todd Fleming Date: Wed, 4 Jan 2017 22:00:27 -0500 Subject: [PATCH] cli(), sei() --- smoother/avr/interrupt.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/smoother/avr/interrupt.h b/smoother/avr/interrupt.h index b90688e..ddbc245 100644 --- a/smoother/avr/interrupt.h +++ b/smoother/avr/interrupt.h @@ -1,5 +1,7 @@ #pragma once +#include + #define ISR(f) void f() -inline void cli() {} -inline void sei() {} +inline void cli() {__disable_irq();} +inline void sei() {__enable_irq();}