Subversion Repositories HomeAutomation

Rev

Rev 1868 | Rev 2034 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1868 Rev 2032
Line 1... Line 1...
1
/*
1
/*
2
 * $Id: bios.c 1868 2012-01-05 18:48:53Z arune $
2
 * $Id: bios.c 2032 2012-06-27 23:08:42Z pengi $
3
 */
3
 */
4
 
4
 
5
#include <inttypes.h>
5
#include <inttypes.h>
6
#include <avr/io.h>
6
#include <avr/io.h>
7
#include <avr/interrupt.h>
7
#include <avr/interrupt.h>
Line 101... Line 101...
101
        // NMT communication except reset is ignored.
101
        // NMT communication except reset is ignored.
102
        if (!(bios_msg_full)) {
102
        if (!(bios_msg_full)) {
103
            memcpy(bios_msg_ptr, msg, sizeof(Can_Message_t));
103
            memcpy(bios_msg_ptr, msg, sizeof(Can_Message_t));
104
            bios_msg_full = 1;
104
            bios_msg_full = 1;
105
        }
105
        }
-
 
106
    }
106
    } else if (BIOS_CanCallback) {
107
    if (BIOS_CanCallback) {
107
        //printf("Calling app callback.\n");
108
        //printf("Calling app callback.\n");
108
        BIOS_CanCallback(msg);
109
        BIOS_CanCallback(msg);
109
    }
110
    }
110
}
111
}
111
 
112