Subversion Repositories HomeAutomation

Rev

Details | Last modification | View Log | SVN | RSS feed

Rev Author Line No. Line
181 andfri 1
#ifndef BIOS_H_
2
#define BIOS_H_
3
 
4
#define F_CPU 16000000UL
5
#define F_BAUD  31250UL
6
 
7
#include <stdio.h>
8
 
9
//---------------------------------------------------------------------------
10
// Public function structure definition and declaration
11
 
12
typedef struct bios{
13
    int (*put_char)(char c, FILE *stream);
14
    int (*get_char)(FILE *stream);
15
    void (*reset)(void);
16
    unsigned (*version)(void);
17
} bios_t;
18
 
19
static bios_t bios_functions __attribute__ ((section (".bios_interface")));
20
 
21
//#ifndef BIOS_BUILDTYPE_BIOS
22
static bios_t *bios = (bios_t*)&bios_functions;
23
//#endif
24
 
25
#endif /*BIOS_H_*/