Rev 223 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 223 | Rev 228 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | #ifndef BIOS_FUNS_H_ |
1 | #ifndef BIOS_FUNS_H_ |
| 2 | #define BIOS_FUNS_H_ |
2 | #define BIOS_FUNS_H_ |
| 3 | 3 | ||
| 4 | #define BIOS_BUILDTYPE_BIOS |
4 | #define BIOS_BUILDTYPE_BIOS |
| 5 | #define BIOS_VERSION 0x1002 |
5 | #define BIOS_VERSION 0x1002 |
| 6 | - | ||
| 7 | #define UART_RX_BUFFER_SIZE 16 |
- | |
| 8 | #define UART_TX_BUFFER_SIZE 16 |
- | |
| 9 | 6 | ||
| 10 | #include "bios.h" |
7 | #include "bios.h" |
| 11 | 8 | ||
| 12 | //--------------------------------------------------------------------------- |
9 | //--------------------------------------------------------------------------- |
| 13 | // Function prototypes for the exported interface |
10 | // Function prototypes for the exported interface |
| 14 | 11 | ||
| 15 | static void reset(void); |
12 | static void reset(void); |
| 16 | static void bios_putchar(char c); |
13 | static void bios_putchar(char c); |
| 17 | static char bios_getchar(void); |
14 | static char bios_getchar(void); |
| 18 | static long timebase_get(void); |
15 | static long timebase_get(void); |
| Line 22... | Line 19... | ||
| 22 | reset, |
19 | reset, |
| 23 | bios_putchar, |
20 | bios_putchar, |
| 24 | bios_getchar, |
21 | bios_getchar, |
| 25 | timebase_get |
22 | timebase_get |
| 26 | }; |
23 | }; |
| 27 | - | ||
| 28 | //--------------------------------------------------------------------------- |
- | |
| 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. |
- | |
| 32 | - | ||
| 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); |
- | |
| 37 | 24 | ||
| 38 | #endif /*BIOS_FUNS_H_*/ |
25 | #endif /*BIOS_FUNS_H_*/ |