summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/main.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2010-01-18 02:17:12 +0100
committerMichael Buesch <mb@bu3sch.de>2010-01-18 02:17:12 +0100
commita94521a4841cf17a22c8737bdd87f872318afe3f (patch)
treea7b7df2cb776eb26d484cc2c0a21921ded4cf65f /pressure_control/firmware/main.c
parent65447104d64adb99db9c862ed501e930d091fe15 (diff)
downloadcnc-a94521a4841cf17a22c8737bdd87f872318afe3f.tar.xz
cnc-a94521a4841cf17a22c8737bdd87f872318afe3f.zip
pressure_control: Fix IRQ memory barriers
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control/firmware/main.c')
-rw-r--r--pressure_control/firmware/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pressure_control/firmware/main.c b/pressure_control/firmware/main.c
index f0671b4..d947228 100644
--- a/pressure_control/firmware/main.c
+++ b/pressure_control/firmware/main.c
@@ -298,7 +298,7 @@ int main(void)
{
uint8_t mcucsr;
- cli();
+ irq_disable();
mcucsr = MCUCSR;
MCUCSR = 0;
wdt_disable();
@@ -328,7 +328,7 @@ int main(void)
eeprom_load_config();
system_timer_init();
- sei();
+ irq_enable();
print("Monitoring...\n");
remote_work();
bues.ch cgit interface