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 |
||
| 5 | #define BIOS_VERSION 0x1001 |
||
| 6 | |||
| 7 | #include <avr/boot.h> |
||
| 8 | #include "bios.h" |
||
| 9 | |||
| 10 | //--------------------------------------------------------------------------- |
||
| 11 | // Function prototypes for the exported interface |
||
| 12 | |||
| 13 | static int bios_putchar(char c, FILE *stream); |
||
| 14 | static int bios_getchar(FILE *stream); |
||
| 15 | static void bios_reset(void); |
||
| 16 | static unsigned bios_version(void); |
||
| 17 | |||
| 18 | static bios_t bios_functions = { |
||
| 19 | bios_putchar, |
||
| 20 | bios_getchar, |
||
| 21 | bios_reset, |
||
| 22 | bios_version |
||
| 23 | }; |
||
| 24 | |||
| 25 | //--------------------------------------------------------------------------- |
||
| 26 | // Function prototypes for flash modifying functions |
||
| 27 | |||
| 28 | //void program_page (uint32_t page, uint8_t *buf) BOOTLOADER_SECTION; |
||
| 29 | void program_page (uint32_t page, uint8_t *buf); |
||
| 30 | |||
| 31 | #endif /*BIOS_FUNS_H_*/ |