Subversion Repositories HomeAutomation

Rev

Rev 228 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 228 Rev 250
Line 2... Line 2...
2
#define BIOS_H_
2
#define BIOS_H_
3
 
3
 
4
#define F_CPU 16000000UL
4
#define F_CPU 8000000UL
5
#define F_BAUD  31250UL
5
#define F_BAUD  31250UL
6
 
6
 
7
#include <stdio.h>
7
#include "can.h"
8
 
8
 
9
//---------------------------------------------------------------------------
9
//---------------------------------------------------------------------------
10
// Public function structure definition and declaration
10
// Public function structure definition and declaration
11
 
11
 
12
typedef struct bios{
12
typedef struct bios{
13
    unsigned version;
13
    unsigned version;
14
    void (*reset)(void);
14
    void (*reset)(void);
-
 
15
    Can_Return_t (*can_send)(Can_Message_t* msg);
-
 
16
    void (*can_callback)(Can_Message_t *msg);
15
    void (*can_send)(char c);
17
    void (*debug_putchar)(char c);
16
    char (*can_receive)(void);
18
    char (*debug_getchar)(void);
17
    long (*timebase_get)(void);
19
    long (*timebase_get)(void);
18
} bios_t;
20
} bios_t;
19
 
21
 
20
static bios_t bios_functions __attribute__ ((section (".bios_interface")));
22
static bios_t bios_functions __attribute__ ((section (".bios_interface")));
21
 
23