Subversion Repositories HomeAutomation

Rev

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

Rev Author Line No. Line
181 andfri 1
#ifndef BIOS_FUNS_H_
2
#define BIOS_FUNS_H_
3
 
4
#define BIOS_BUILDTYPE_BIOS
223 andfri 5
#define BIOS_VERSION 0x1002
181 andfri 6
 
223 andfri 7
#define UART_RX_BUFFER_SIZE 16
8
#define UART_TX_BUFFER_SIZE 16
9
 
181 andfri 10
#include "bios.h"
11
 
12
//---------------------------------------------------------------------------
13
// Function prototypes for the exported interface
14
 
223 andfri 15
static void reset(void);
16
static void bios_putchar(char c);
17
static char bios_getchar(void);
18
static long timebase_get(void);
181 andfri 19
 
20
static bios_t bios_functions = {
223 andfri 21
    BIOS_VERSION,
22
    reset,
181 andfri 23
    bios_putchar,
24
    bios_getchar,
223 andfri 25
    timebase_get
181 andfri 26
};
27
 
28
//---------------------------------------------------------------------------
29
// Function prototypes for flash modifying functions
223 andfri 30
// TODO: These must be located above boot loader section limit even if bios
31
// size grows larger than that.
181 andfri 32
 
223 andfri 33
void flash_flush_buffer(void);
34
void flash_load_buffer(uint16_t addr);
35
void flash_write_word(uint16_t addr, uint16_t word);
36
void flash_init(void);
181 andfri 37
 
38
#endif /*BIOS_FUNS_H_*/