freemyipod r252 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r251‎ | r252 | r253 >
Date:21:28, 4 November 2010
Author:theseven
Status:new
Tags:
Comment:
Kill some Evil Tabs(tm)
Modified paths:
  • /embios/trunk/target/ipodnano2g/interrupt.c (modified) (history)

Diff [purge]

Index: embios/trunk/target/ipodnano2g/interrupt.c
@@ -132,20 +132,20 @@
133133
134134 void interrupt_enable(int irq, bool state)
135135 {
136 - if (state) INTMSK |= 1 << irq;
137 - else INTMSK &= ~(1 << irq);
 136+ if (state) INTMSK |= 1 << irq;
 137+ else INTMSK &= ~(1 << irq);
138138 }
139139
140140 void interrupt_set_handler(int irq, void* handler)
141141 {
142 - if (handler) irqvector[irq] = handler;
143 - else irqvector[irq] = unhandled_irq;
 142+ if (handler) irqvector[irq] = handler;
 143+ else irqvector[irq] = unhandled_irq;
144144 }
145145
146146 void int_timer_set_handler(int timer, void* handler)
147147 {
148 - if (handler) timervector[timer] = handler;
149 - else timervector[timer] = unhandled_irq;
 148+ if (handler) timervector[timer] = handler;
 149+ else timervector[timer] = unhandled_irq;
150150 }
151151
152152 void interrupt_init(void)