Subversion Repositories HomeAutomation

Rev

Rev 181 | Blame | Last modification | View Log | SVN | RSS feed

  1. #ifndef BIOS_FUNS_H_
  2. #define BIOS_FUNS_H_
  3.  
  4. #define BIOS_BUILDTYPE_BIOS
  5. #define BIOS_VERSION 0x1002
  6.  
  7. #define UART_RX_BUFFER_SIZE 16
  8. #define UART_TX_BUFFER_SIZE 16
  9.  
  10. #include "bios.h"
  11.  
  12. //---------------------------------------------------------------------------
  13. // Function prototypes for the exported interface
  14.  
  15. static void reset(void);
  16. static void bios_putchar(char c);
  17. static char bios_getchar(void);
  18. static long timebase_get(void);
  19.  
  20. static bios_t bios_functions = {
  21.     BIOS_VERSION,
  22.     reset,
  23.     bios_putchar,
  24.     bios_getchar,
  25.     timebase_get
  26. };
  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.  
  38. #endif /*BIOS_FUNS_H_*/
  39.