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