]> git.zerfleddert.de Git - rsbs2/commitdiff
enable interrupts earlier
authorMichael Gernoth <michael@gernoth.net>
Mon, 23 Aug 2010 18:09:41 +0000 (20:09 +0200)
committerMichael Gernoth <michael@gernoth.net>
Mon, 23 Aug 2010 18:09:41 +0000 (20:09 +0200)
bmc/bmc.c

index dcdeb775dc2c3d9396c0882a1440ecf0e84e6fa7..e3690a47b5eef72f953e745e0cc88248bacb36af 100644 (file)
--- a/bmc/bmc.c
+++ b/bmc/bmc.c
@@ -16,13 +16,12 @@ int main(void)
        unsigned char buf[24];
        unsigned int len;
 
        unsigned char buf[24];
        unsigned int len;
 
-       chassis_init();
-       usart_init();
-       i2c_init();
-
        set_sleep_mode(SLEEP_MODE_IDLE);
 
        set_sleep_mode(SLEEP_MODE_IDLE);
 
+       chassis_init();
+       usart_init();
        sei();
        sei();
+       i2c_init();
 
        while(1) {
                cli();
 
        while(1) {
                cli();
Impressum, Datenschutz